tasks can be added to db

This commit is contained in:
CoGomu
2025-06-14 17:42:31 +02:00
committed by quirinecker
parent aed6e88011
commit 65107ea969
4 changed files with 57 additions and 25 deletions

View File

@@ -10,3 +10,15 @@ export const event = sqliteTable('event', {
created_at: text().notNull().default(new Date().toISOString()),
updated_at: text().notNull().default(new Date().toISOString())
})
export const task = sqliteTable('task', {
id: int().primaryKey({ autoIncrement: true }),
userid: text().notNull(),
title: text().notNull(),
description: text().notNull(),
done: int().notNull(),
estimated_time: int().notNull(),
due_date: text().notNull(),
created_at: text().notNull().default(new Date().toISOString()),
updated_at: text().notNull().default(new Date().toISOString())
})