mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-04 21:35:19 -04:00
Use string for date & datetime
This commit is contained in:
@@ -37,8 +37,8 @@ export const entries = schema.table(
|
||||
|
||||
externalId: jsonb().notNull().default({}),
|
||||
|
||||
createdAt: timestamp({ withTimezone: true }).defaultNow(),
|
||||
nextRefresh: timestamp({ withTimezone: true }),
|
||||
createdAt: timestamp({ withTimezone: true, mode: "string" }).defaultNow(),
|
||||
nextRefresh: timestamp({ withTimezone: true, mode: "string" }),
|
||||
},
|
||||
(t) => ({
|
||||
// episodeKey: unique().on(t.showId, t.seasonNumber, t.episodeNumber),
|
||||
|
||||
@@ -56,14 +56,16 @@ export const shows = schema.table(
|
||||
rating: smallint(),
|
||||
runtime: integer(),
|
||||
status: showStatus().notNull(),
|
||||
startAir: date({ mode: "date" }),
|
||||
endAir: date({ mode: "date" }),
|
||||
startAir: date(),
|
||||
endAir: date(),
|
||||
originalLanguage: language(),
|
||||
|
||||
externalId: externalid(),
|
||||
|
||||
createdAt: timestamp({ withTimezone: true }).notNull().defaultNow(),
|
||||
nextRefresh: timestamp({ withTimezone: true }).notNull(),
|
||||
createdAt: timestamp({ withTimezone: true, mode: "string" })
|
||||
.notNull()
|
||||
.defaultNow(),
|
||||
nextRefresh: timestamp({ withTimezone: true, mode: "string" }).notNull(),
|
||||
},
|
||||
(t) => ({
|
||||
ratingValid: check(
|
||||
|
||||
Reference in New Issue
Block a user