db: remove table suffix from schemas

This commit is contained in:
2026-02-05 19:28:30 -08:00
parent 88218b3567
commit 53f91facc9
18 changed files with 249 additions and 279 deletions

View File

@@ -5,7 +5,7 @@ import {
text,
uniqueIndex,
} from "drizzle-orm/sqlite-core";
import { animeTable } from "./anime";
import { anime } from "./anime";
/**
* Additional localized/alternative names for an anime.
@@ -14,14 +14,14 @@ import { animeTable } from "./anime";
* - language: "EN" | "JA" (per source)
* - name: string
*/
export const animeNamesTable = sqliteTable(
export const animeNames = sqliteTable(
"anime_names",
{
id: integer("id").notNull().primaryKey({ autoIncrement: true }),
annId: integer("ann_id")
.notNull()
.references(() => animeTable.annId, { onDelete: "cascade" }),
.references(() => anime.annId, { onDelete: "cascade" }),
/** "EN" | "JA" per source */
language: text("language").notNull(),