import { index, sqliteTable, text } from "drizzle-orm/sqlite-core";

/**
 * Core `genres` lookup table.
 *
 * Source: AmqAnimeSchema.genres (string[])
 */
export const genres = sqliteTable(
	"genres",
	{
		/** Primary key is the genre string itself */
		name: text("name").notNull().primaryKey(),
	},
	(t) => ({
		nameIndex: index("genres_name_idx").on(t.name),
	}),
);
