feat: add prototype-based annotation view with single-choice rating

This commit is contained in:
smaubio
2026-03-13 16:03:23 +01:00
parent d645f87f8e
commit 0d7e6ed19f
8 changed files with 779 additions and 126 deletions

View File

@@ -15,14 +15,7 @@ export const annotation = sqliteTable(
createdAt: integer('created_at', { mode: 'timestamp' })
.notNull()
.default(sql`(unixepoch())`),
},
(table) => [
uniqueIndex('annotation_user_entry_dialect_idx').on(
table.userId,
table.datasetEntryId,
table.dialectLabel
),
]
}
);
export const annotationRelations = relations(annotation, ({ one }) => ({