feat: add progress to tasks

This commit is contained in:
2025-01-12 01:26:46 +01:00
parent 5bdf575245
commit 4722de19a0
2 changed files with 3 additions and 1 deletions

View File

@@ -4,6 +4,8 @@ import { integer, pgTable, serial, timestamp, varchar } from 'drizzle-orm/pg-cor
export const tasks = pgTable('tasks', {
id: serial('id').primaryKey(),
name: varchar('name', { length: 256 }),
currentPoints: integer('current_points').default(0),
totalPoints: integer('total_points').default(1),
createdAt: timestamp('created_at').defaultNow(),
updatedAt: timestamp('updated_at').defaultNow()
});