10 lines
276 B
TypeScript
10 lines
276 B
TypeScript
import { integer, sqliteTable, text } from 'drizzle-orm/sqlite-core';
|
|
|
|
export const task = sqliteTable('task', {
|
|
id: text('id')
|
|
.primaryKey()
|
|
.$defaultFn(() => crypto.randomUUID()),
|
|
title: text('title').notNull(),
|
|
priority: integer('priority').notNull().default(1)
|
|
});
|