更新 database/schema/project.db.ts

This commit is contained in:
2026-01-05 06:40:35 +00:00
parent a20d191d92
commit 4a0541aef3

View File

@@ -39,10 +39,10 @@ import { id, createdAt, updatedAt } from "../common";
import { user } from "./auth.db"; import { user } from "./auth.db";
// Enums // Enums
const difficultyEnum = pgEnum('difficulty', ['easy', 'medium', 'hard']); export const difficultyEnum = pgEnum('difficulty', ['easy', 'medium', 'hard']);
const levelTypeEnum = pgEnum('level_type', ['drag_drop', 'puzzle']); export const levelTypeEnum = pgEnum('level_type', ['drag_drop', 'puzzle']);
const progressStatusEnum = pgEnum('progress_status', ['not_started', 'in_progress', 'completed']); export const progressStatusEnum = pgEnum('progress_status', ['not_started', 'in_progress', 'completed']);
const rewardTypeEnum = pgEnum('reward_type', ['badge', 'points', 'certificate']); export const rewardTypeEnum = pgEnum('reward_type', ['badge', 'points', 'certificate']);
// Tables // Tables
export const levels = pgTable("levels", { export const levels = pgTable("levels", {