mirror of
https://github.com/zoriya/Kyoo.git
synced 2026-06-07 23:05:15 -04:00
Rename criticalToStory to content enum
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { relations, sql } from "drizzle-orm";
|
||||
import {
|
||||
boolean,
|
||||
check,
|
||||
date,
|
||||
index,
|
||||
@@ -25,6 +24,13 @@ export const entryType = schema.enum("entry_type", [
|
||||
"extra",
|
||||
]);
|
||||
|
||||
export const entryContent = schema.enum("entry_content", [
|
||||
"story",
|
||||
"recap",
|
||||
"filler",
|
||||
"ova",
|
||||
]);
|
||||
|
||||
export const entry_extid = () =>
|
||||
jsonb()
|
||||
.$type<
|
||||
@@ -69,7 +75,7 @@ export const entries = schema.table(
|
||||
airDate: date(),
|
||||
runtime: integer(),
|
||||
thumbnail: image(),
|
||||
criticalToStory: boolean().notNull(),
|
||||
content: entryContent().notNull(),
|
||||
|
||||
externalId: entry_extid(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user