dumb refactor but sunk cost is to great keep pushing
This commit is contained in:
@@ -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>(),
|
||||
})
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user