db field tweaks

This commit is contained in:
James Long
2026-03-23 19:50:38 -04:00
parent d59a9c9817
commit 0bc79a8a65
5 changed files with 131 additions and 57 deletions
+1 -1
View File
@@ -11,6 +11,6 @@ export const EventTable = sqliteTable("event", {
.notNull()
.references(() => EventSequenceTable.aggregate_id, { onDelete: "cascade" }),
seq: integer().notNull(),
name: text().notNull(),
type: text().notNull(),
data: text({ mode: "json" }).$type<Record<string, unknown>>().notNull(),
})
+1 -1
View File
@@ -133,7 +133,7 @@ export namespace SyncEvent {
id: event.id,
seq: event.seq,
aggregate_id: event.aggregateID,
name: versionedType(def.type, def.version),
type: versionedType(def.type, def.version),
data: event.data as Record<string, unknown>,
})
.run()