feat: add guide page

This commit is contained in:
2026-03-19 01:03:23 +07:00 Unverified
parent c39675e184
commit 04058d1776
17 changed files with 480 additions and 25 deletions
+15
View File
@@ -326,6 +326,21 @@ export const tierlistStates = tierlist.table("states", {
//#endregion
//#region Guide
export const guides = pgTable("guides", {
id: text().primaryKey().$defaultFn(uuidv7),
image: text().references(() => cdn.id, {
onDelete: "set null",
onUpdate: "cascade",
}),
order: integer().notNull(),
link: text().notNull(),
hidden: boolean().notNull().default(false),
name: text().notNull(),
});
//#endregion
//#region Better Auth
export const user = pgTable("user", {
id: text("id").primaryKey(),