@campus-labs/prisma-client 0.18.0 → 0.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +10 -4
- package/.claude/settings.local.json +0 -11
- package/prisma/seed2.ts +0 -3044
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -116,6 +116,7 @@ model initiatives {
|
|
|
116
116
|
title String @db.VarChar(100)
|
|
117
117
|
description String @db.VarChar(3000)
|
|
118
118
|
img Json[]
|
|
119
|
+
img_header Json?
|
|
119
120
|
inscription_deadline DateTime @db.Timestamp(6)
|
|
120
121
|
start_date DateTime @db.Timestamp(6)
|
|
121
122
|
end_date DateTime @db.Timestamp(6)
|
|
@@ -675,15 +676,18 @@ model projects {
|
|
|
675
676
|
version Int @default(1)
|
|
676
677
|
current_state Json
|
|
677
678
|
repository_ai_badges Json[]
|
|
679
|
+
head_patch_id Int? @unique
|
|
678
680
|
initiatives initiatives[]
|
|
679
681
|
patches patches[]
|
|
680
682
|
|
|
681
|
-
authors
|
|
682
|
-
editors
|
|
683
|
-
snapshots
|
|
683
|
+
authors users @relation("ProjectAuthor", fields: [author_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
684
|
+
editors users? @relation("ProjectEditor", fields: [editor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
685
|
+
snapshots snapshots[]
|
|
686
|
+
head_patch patches? @relation("ProjectHead", fields: [head_patch_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
684
687
|
|
|
685
688
|
@@index([author_id], map: "idx_projects_author")
|
|
686
689
|
@@index([editor_id], map: "idx_projects_designer")
|
|
690
|
+
@@index([head_patch_id], map: "idx_projects_head_patch")
|
|
687
691
|
}
|
|
688
692
|
|
|
689
693
|
model patches {
|
|
@@ -698,8 +702,10 @@ model patches {
|
|
|
698
702
|
created_at DateTime @default(now()) @db.Timestamp(6)
|
|
699
703
|
updated_at DateTime @default(now()) @db.Timestamp(6)
|
|
700
704
|
deleted_at DateTime? @db.Timestamp(6)
|
|
705
|
+
origin String @default("DRAFT") @db.VarChar(20)
|
|
701
706
|
|
|
702
|
-
projects
|
|
707
|
+
projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
708
|
+
head_of projects? @relation("ProjectHead")
|
|
703
709
|
|
|
704
710
|
@@index([project_id], map: "idx_patches_project")
|
|
705
711
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(ls -la /Users/nunomatos/Desktop/SerMais/prisma/.env*)",
|
|
5
|
-
"Bash(git check-ignore -v /Users/nunomatos/Desktop/SerMais/prisma/.env.staging)",
|
|
6
|
-
"Bash(git check-ignore -v .env.staging)",
|
|
7
|
-
"Bash(ls -la /Users/nunomatos/Desktop/SerMais/prisma/*.ts /Users/nunomatos/Desktop/SerMais/prisma/*.js)",
|
|
8
|
-
"Bash(grep -r \"\\\\.password\" /Users/nunomatos/Desktop/SerMais --include=\"*.ts\" --include=\"*.js\" ! -path \"*/node_modules/*\" ! -path \"*/.next/*\" ! -path \"*/dist/*\")"
|
|
9
|
-
]
|
|
10
|
-
}
|
|
11
|
-
}
|