diff --git a/src/lib/server/db/schema/tasks.ts b/src/lib/server/db/schema/tasks.ts index ea2e3f6..b22adc1 100644 --- a/src/lib/server/db/schema/tasks.ts +++ b/src/lib/server/db/schema/tasks.ts @@ -30,8 +30,8 @@ export const tasks = sqliteTable("tasks", { description: text("description"), type: int("type").references(() => taskTypes.id), subtype: text("subtype"), - openDate: text("open_date").$type(), - closeDate: text("close_date").$type(), + openDate: int("open_date", { mode: "timestamp" }), + closeDate: int("close_date", { mode: "timestamp" }), status: text("status"), priority: text("priority"), parent: int("parent").references((): AnySQLiteColumn => tasks.id),