This commit is contained in:
9
server/db/schema.ts
Normal file
9
server/db/schema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { sqliteTable, text, integer } from 'drizzle-orm/sqlite-core'
|
||||
|
||||
export const todos = sqliteTable('todos', {
|
||||
id: integer('id').primaryKey(),
|
||||
userId: integer('user_id').notNull(), // GitHub Id
|
||||
title: text('title').notNull(),
|
||||
completed: integer('completed').notNull().default(0),
|
||||
createdAt: integer('created_at', { mode: 'timestamp' }).notNull()
|
||||
})
|
||||
Reference in New Issue
Block a user