WIP - initial UI for comments and semantic links

This commit is contained in:
Francisco Gaona
2026-04-11 22:14:24 +02:00
parent dc18b08a3a
commit 12b0a0881e
5 changed files with 437 additions and 3 deletions

View File

@@ -52,11 +52,11 @@ exports.up = async function (knex) {
await knex.schema.createTable('semantic_links', (table) => {
table.uuid('id').primary().defaultTo(knex.raw('(UUID())'));
table.string('source_entity_type').notNullable();
table.string('source_entity_type', 100).notNullable();
table.uuid('source_entity_id').notNullable();
table.string('target_entity_type').notNullable();
table.string('target_entity_type', 100).notNullable();
table.uuid('target_entity_id').notNullable();
table.string('link_type').notNullable().defaultTo('related_to');
table.string('link_type', 100).notNullable().defaultTo('related_to');
table.string('status').notNullable().defaultTo('suggested');
table.string('origin').notNullable().defaultTo('semantic');
table.decimal('confidence', 5, 4).notNullable().defaultTo(0);