@campus-labs/prisma-client 0.16.0 → 0.17.1
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 +26 -13
- package/.claude/settings.local.json +0 -11
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -369,6 +369,7 @@ model users {
|
|
|
369
369
|
expelled_user_initiatives user_initiative[] @relation("UserInitiativeExpeller")
|
|
370
370
|
authors projects[] @relation("ProjectAuthor")
|
|
371
371
|
editors projects[] @relation("ProjectEditor")
|
|
372
|
+
users_ai_requests users_ai_requests[]
|
|
372
373
|
|
|
373
374
|
@@index([role_platform_id], map: "idx_users_role")
|
|
374
375
|
@@index([points(sort: Desc)], map: "idx_users_points")
|
|
@@ -662,19 +663,20 @@ model initiatives_tags {
|
|
|
662
663
|
}
|
|
663
664
|
|
|
664
665
|
model projects {
|
|
665
|
-
id
|
|
666
|
-
is_draft
|
|
667
|
-
is_pending
|
|
668
|
-
is_published
|
|
669
|
-
author_id
|
|
670
|
-
editor_id
|
|
671
|
-
created_at
|
|
672
|
-
updated_at
|
|
673
|
-
deleted_at
|
|
674
|
-
version
|
|
675
|
-
current_state
|
|
676
|
-
|
|
677
|
-
|
|
666
|
+
id Int @id @default(autoincrement())
|
|
667
|
+
is_draft Boolean @default(true)
|
|
668
|
+
is_pending Boolean @default(false)
|
|
669
|
+
is_published Boolean @default(false)
|
|
670
|
+
author_id String @db.VarChar(50)
|
|
671
|
+
editor_id String? @db.VarChar(50)
|
|
672
|
+
created_at DateTime @default(now()) @db.Timestamp(6)
|
|
673
|
+
updated_at DateTime @default(now()) @db.Timestamp(6)
|
|
674
|
+
deleted_at DateTime? @db.Timestamp(6)
|
|
675
|
+
version Int @default(1)
|
|
676
|
+
current_state Json
|
|
677
|
+
repository_ai_badges Json[]
|
|
678
|
+
initiatives initiatives[]
|
|
679
|
+
patches patches[]
|
|
678
680
|
|
|
679
681
|
authors users @relation("ProjectAuthor", fields: [author_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
680
682
|
editors users? @relation("ProjectEditor", fields: [editor_id], references: [id], onDelete: SetNull, onUpdate: Cascade)
|
|
@@ -700,4 +702,15 @@ model patches {
|
|
|
700
702
|
projects projects @relation(fields: [project_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
701
703
|
|
|
702
704
|
@@index([project_id], map: "idx_patches_project")
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
model users_ai_requests {
|
|
708
|
+
user_id String @db.VarChar(50) @unique
|
|
709
|
+
available Int @default(10)
|
|
710
|
+
total Int @default(0)
|
|
711
|
+
last_updated DateTime @default(now()) @db.Timestamp(6)
|
|
712
|
+
|
|
713
|
+
users users @relation(fields: [user_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
|
|
714
|
+
|
|
715
|
+
@@index([user_id], map: "idx_users_ai_requests_user")
|
|
703
716
|
}
|
|
@@ -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
|
-
}
|