add 2025-0122-0340

This commit is contained in:
ditiqi 2025-01-22 15:40:22 +08:00
parent cac7fea6e4
commit ad5fb5038d
2 changed files with 34 additions and 44 deletions

View File

@ -10,6 +10,7 @@
"generate": "pnpm prisma generate",
"build": "pnpm generate && tsup",
"dev": "pnpm generate && tsup --watch ",
"dev-static": "pnpm generate && tsup --no-watch ",
"studio": "pnpm prisma studio",
"db:clear": "rm -rf prisma/migrations && pnpm prisma migrate dev --name init",
"postinstall": "pnpm generate"

View File

@ -5,10 +5,6 @@ import type {
Message,
Post,
RoleMap,
Section,
Lecture,
Course,
Enrollment,
} from "@prisma/client";
import { SocketMsgType, RolePerms } from "./enum";
import { RowRequestSchema } from "./schema";
@ -156,13 +152,6 @@ export type DepartmentDto = Department & {
export type RoleMapDto = RoleMap & {
staff: StaffDto;
};
export type SectionDto = Section & {
lectures: Lecture[];
};
export type CourseDto = Course & {
enrollments: Enrollment[];
sections: SectionDto[];
};
export interface BaseSetting {
appConfig?: {
splashScreen?: string;