dumb refactor but sunk cost is to great keep pushing

This commit is contained in:
2025-08-03 22:53:52 +02:00
parent 2816842b5d
commit e74b30e04c
35 changed files with 621 additions and 1287 deletions

View File

@@ -33,16 +33,16 @@ export const cvEntry = createTable(
(d) => ({
id: d.uuid().primaryKey().notNull(),
categoryId: d.uuid('category_id'),
fromTime: d.date().notNull(),
toTime: d.date().notNull(),
fromTime: d.timestamp().notNull().$type<Date>(),
toTime: d.timestamp().notNull().$type<Date>(),
title: d.varchar({length:50}).notNull(),
description: d.text(),
hideDates: d.boolean(),
createdAt: d
.timestamp({ withTimezone: true })
.default(sql`CURRENT_TIMESTAMP`)
.notNull(),
updatedAt: d.timestamp({ withTimezone: true }).$onUpdate(() => new Date()),
.notNull().$type<Date>(),
updatedAt: d.timestamp({ withTimezone: true }).$onUpdate(() => new Date()).$type<Date>(),
})
)