diff options
Diffstat (limited to 'src/server/db/schema-crdt.ts')
| -rw-r--r-- | src/server/db/schema-crdt.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/db/schema-crdt.ts b/src/server/db/schema-crdt.ts index 2567609..c5ed4bc 100644 --- a/src/server/db/schema-crdt.ts +++ b/src/server/db/schema-crdt.ts @@ -15,10 +15,11 @@ import { integer, pgTable, timestamp, + uniqueIndex, uuid, varchar, } from "drizzle-orm/pg-core"; -import { users } from "./schema.js"; +import { users } from "./schema"; /** * Valid entity types for CRDT documents @@ -70,7 +71,7 @@ export const crdtDocuments = pgTable( }, (table) => [ // Unique constraint on (user_id, entity_type, entity_id) - index("crdt_documents_user_entity_idx").on( + uniqueIndex("crdt_documents_user_entity_idx").on( table.userId, table.entityType, table.entityId, |
