aboutsummaryrefslogtreecommitdiff
path: root/src/lib/server/db/schema.ts
blob: 403ef51e1b07829e0b58dcaaa0515f5087754bb2 (plain) (blame)
1
2
3
4
5
6
7
8

import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core';

export const groceries = sqliteTable('groceries', {
	id: integer('id').primaryKey({ autoIncrement: true }),
	name: text('name').notNull().unique(),
	checked: integer('checked', { mode: 'boolean' }).notNull().default(false),
	createdAt: text('created_at').notNull(),
});