Rename criticalToStory to content enum

This commit is contained in:
Zoe Roux
2026-04-03 19:26:21 +02:00
parent c7003d4bd8
commit d1aeadacee
15 changed files with 62 additions and 22 deletions
+8 -2
View File
@@ -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(),