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

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