feat : update

This commit is contained in:
2026-09-30 19:34:28 +07:00 Unverified
parent 69a4d34b97
commit da3d7d84ac
30 changed files with 10724 additions and 883 deletions
+1 -9
View File
@@ -14,8 +14,6 @@ import {
uuid,
varchar,
} from "drizzle-orm/pg-core";
import { sql } from "drizzle-orm";
import type {
CatalogAscensionGroup,
CatalogBaseStat,
@@ -288,14 +286,8 @@ export const stygianSchedules = guidesSchema.table(
scheduleStartTime: timestamp("schedule_start_time", { withTimezone: true }).notNull(),
scheduleEndTime: timestamp("schedule_end_time", { withTimezone: true }).notNull(),
version: integer("version").default(1).notNull(),
isActive: boolean("is_active").default(false).notNull(),
activatedAt: timestamp("activated_at", { withTimezone: true }),
...timestamps,
},
(table) => [
index("stygian_schedule_active_idx").on(table.isActive),
uniqueIndex("stygian_schedule_single_active_idx").on(table.isActive).where(sql`${table.isActive} = true`),
],
);
export const stygianBosses = guidesSchema.table(
@@ -339,7 +331,7 @@ export const stygianRecommendationItems = guidesSchema.table(
catalogKey: varchar("catalog_key", { length: 64 }),
weaponKey: varchar("weapon_key", { length: 64 }),
artifactKey: varchar("artifact_key", { length: 64 }),
characterKey: varchar("character_key", { length: 64 }),
refinement: integer("refinement"),
constellationLevel: integer("constellation_level"),
element: varchar("element", { length: 24 }),
},