Build business demand registration workspace from SOP

This commit is contained in:
Codex committed 2026-09-16 14:46:32 +08:00
commit 2149aeb6ed
126 files changed
+25399

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
import { sqliteTable, text, integer, index } from 'drizzle-orm/sqlite-core';
export const demands = sqliteTable('demands', {
id: text('id').primaryKey(), ownerId: text('owner_id').notNull(), payload: text('payload').notNull(),
revision: integer('revision').notNull().default(1), updatedAt: text('updated_at').notNull(),
}, table => [index('idx_demands_owner_updated').on(table.ownerId, table.updatedAt)]);