db: remove table suffix from schemas
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user