feat(db): export all schema types

Add missing type exports for Class, ItemTransaction, Quest,
UserQuest, UserTimer, and Lootdrop tables. All tables now
have consistent type exports available for import.
This commit is contained in:
syntaxbullet
2026-02-12 12:12:49 +01:00
parent 553b9b4952
commit f575588b9a

View File

@@ -16,10 +16,16 @@ import {
import { relations, sql, type InferSelectModel } from 'drizzle-orm'; import { relations, sql, type InferSelectModel } from 'drizzle-orm';
export type User = InferSelectModel<typeof users>; export type User = InferSelectModel<typeof users>;
export type Class = InferSelectModel<typeof classes>;
export type Transaction = InferSelectModel<typeof transactions>; export type Transaction = InferSelectModel<typeof transactions>;
export type ItemTransaction = InferSelectModel<typeof itemTransactions>;
export type ModerationCase = InferSelectModel<typeof moderationCases>; export type ModerationCase = InferSelectModel<typeof moderationCases>;
export type Item = InferSelectModel<typeof items>; export type Item = InferSelectModel<typeof items>;
export type Inventory = InferSelectModel<typeof inventory>; export type Inventory = InferSelectModel<typeof inventory>;
export type Quest = InferSelectModel<typeof quests>;
export type UserQuest = InferSelectModel<typeof userQuests>;
export type UserTimer = InferSelectModel<typeof userTimers>;
export type Lootdrop = InferSelectModel<typeof lootdrops>;
// --- TABLES --- // --- TABLES ---