export const deckInfo = sqliteTable(
'deck_info',
{
id: integer().primaryKey(),
deckId: text().notNull(),
name: text().notNull(),
description: text(),
ownerUserId: text().notNull(),
color: integer().notNull(),
createdAt: integer({ mode: 'timestamp' }).notNull(),
updatedAt: integer({ mode: 'timestamp' }).notNull(),
aiAssisted: integer({ mode: 'boolean' }).notNull().default(false) // Whether AI was used at any point in making the deck
},
(table) => [check('singleton', sql`${table.id} = 1`)]
)
export const deckInfo = sqliteTable(
'deck_info',
{
id: integer().primaryKey(),
deckId: text().notNull(),
name: text().notNull(),
description: text(),
ownerUserId: text().notNull(),
color: integer().notNull(),
createdAt: integer({ mode: 'timestamp' }).notNull(),
updatedAt: integer({ mode: 'timestamp' }).notNull(),
aiAssisted: integer({ mode: 'boolean' }).notNull().default(false) // Whether AI was used at any point in making the deck
},
(table) => [check('singleton', sql`${table.id} = 1`)]
)