Compare commits

..

No commits in common. "758678b729b88341821181b121d598cb15bd8fad" and "30bd11e23969abf9277496d442f81dab75716372" have entirely different histories.

62 changed files with 0 additions and 75 deletions

0
.vscode/settings.json vendored Executable file → Normal file
View File

View File

View File

View File

View File

View File

0
apps/server/src/models/position/dailyTrain.module.ts Executable file → Normal file
View File

0
apps/server/src/models/position/dailyTrain.router.ts Executable file → Normal file
View File

0
apps/server/src/models/position/dailyTrain.service.ts Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
apps/web/src/app/main/daily/page.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/layout/MainHeader.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/layout/MainLayout.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/layout/MainProvider.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/layout/NavigationMenu.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/plan/monthplan/page.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/plan/page.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/plan/weekplan/page.tsx Executable file → Normal file
View File

View File

0
apps/web/src/app/main/sport/page.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/sport/sportPageModal.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/sport/sportPageProvider.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/sport/sportUpdateModal.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/staffpage/page.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/staffpage/staffmodal/page.tsx Executable file → Normal file
View File

0
apps/web/src/app/main/staffpage/stafftable/page.tsx Executable file → Normal file
View File

View File

View File

View File

View File

View File

View File

View File

View File

0
packages/client/src/api/hooks/useSport.ts Executable file → Normal file
View File

0
packages/client/src/api/hooks/useTrainSituation.ts Executable file → Normal file
View File

View File

@ -45,10 +45,6 @@ model Term {
depts Department[] @relation("department_term")
hasChildren Boolean? @default(false) @map("has_children")
posts Post[] @relation("post_term")
Plan Plan? @relation(fields: [planId], references: [id])
planId String?
Subject Subject? @relation(fields: [subjectId], references: [id])
subjectId String?
@@index([name]) // 对name字段建立索引以加快基于name的查找速度
@@index([parentId]) // 对parentId字段建立索引以加快基于parentId的查找速度
@ -424,9 +420,6 @@ model Department {
// watchedPost Post[] @relation("post_watch_dept")
hasChildren Boolean? @default(false) @map("has_children")
planId String?
Plan Plan? @relation(fields: [planId], references: [id])
@@index([parentId])
@@index([isDomain])
@@index([name])
@ -472,7 +465,6 @@ model Staff {
enrollments Enrollment[]
teachedPosts PostInstructor[]
ownedResources Resource[]
Plan Plan[]
@@index([officerId])
@@index([deptId])
@ -537,70 +529,3 @@ model SportStandard {
@@unique([projectId, gender, personType], name: "projectId_gender_personType")
@@map("sport_standard")
}
model Plan {
id String @id @default(cuid())
authorId String? @map("author_id")
author Staff? @relation(fields: [authorId], references: [id]) // 帖子作者,关联 Staff 模型
createdAt DateTime @default(now()) @map("created_at")
publishedAt DateTime? @map("published_at") // 发布时间
updatedAt DateTime @map("updated_at")
deletedAt DateTime? @map("deleted_at") // 删除时间,可为空
terms Term[] @relation("plan_term")
month DateTime @map("month")
week DateTime @map("week")
checked Boolean @default(false) @map("checked")
depts Department[] @relation("plan_dept")
meta Json? @map("meta") // 计划表
@@map("plan")
}
model Subject {
id String @id @default(cuid())
name String @map("name")
terms Term[] @relation("subject_term")
parentId String? @map("parent_id")
parent Subject? @relation("SubjectChildren", fields: [parentId], references: [id]) // 父级帖子,关联 Post 模型
children Subject[] @relation("SubjectChildren") // 子级帖子列表,关联 Post 模型
ancestors SubjectAncestry[] @relation("DescendantToAncestor")
descendants SubjectAncestry[] @relation("AncestorToDescendant")
@@map("subject")
}
model SubjectAncestry {
id String @id @default(cuid())
relDepth Int @map("rel_depth")
ancestorId String? @map("ancestor_id")
ancestor Subject? @relation("DescendantToAncestor", fields: [ancestorId], references: [id])
descendantId String @map("descendant_id")
descendant Subject @relation("AncestorToDescendant", fields: [descendantId], references: [id])
@@index([ancestorId])
@@index([descendantId])
@@index([ancestorId, descendantId])
@@map("subject_ancestry")
}

0
packages/common/src/models/train.ts Executable file → Normal file
View File

0
packages/utils/src/safePrismaQuery.ts Executable file → Normal file
View File