feat : update
This commit is contained in:
+1
-9
@@ -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 }),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user