© 2026 Hedgehog Software, LLC
const validStatuses = ["claimed", "confirmed", "started"] as const; const statusEnum = pgEnum("status", validStatuses); export type SessionStatus = typeof validStatuses[number]; export const trainingsTable = pgTable("training", { date: text("date").primaryKey(), host: text("host").notNull(), status: statusEnum("status").notNull(), notificationID: text("notification_id"), notificationDeletionDate: timestamp("notification_deletion_date") });
drizzle-kit push --config=src/db/config.ts
error: type "status" does not exist