diff --git a/packages/db/src/schema.ts b/packages/db/src/schema.ts index 1669a82..af5ad4e 100644 --- a/packages/db/src/schema.ts +++ b/packages/db/src/schema.ts @@ -67,6 +67,9 @@ export const whatsappAccounts = pgTable( * 0002). Powers fuzzy search via the * `name % term` operator in O(log n). */ +export const whatsappGroups = pgTable( + "whatsapp_groups", + { id: uuid("id").primaryKey().defaultRandom(), accountId: uuid("account_id").notNull().references(() => whatsappAccounts.id, { onDelete: "cascade" }), waGroupJid: text("wa_group_jid").notNull(),