Refactor event queue to allow multiple types of events
This commit is contained in:
@@ -5,6 +5,7 @@ export async function up(db: Kysely<any>): Promise<void> {
|
||||
// TABLE: EVENTS
|
||||
await db.schema.createTable("events")
|
||||
.$call(addDefaultColumns)
|
||||
.addColumn("group", "text", (cb) => cb.notNull())
|
||||
.addColumn("type", "text", (cb) => cb.notNull())
|
||||
.addColumn("source", "text", (cb) => cb.notNull())
|
||||
.addColumn("payload", "jsonb", (cb) => cb.notNull())
|
||||
|
||||
Reference in New Issue
Block a user