fix: make github issue creation creator-restricted and easier for others

This commit is contained in:
2024-12-23 23:28:47 +01:00
parent 22d3437694
commit 5b24b0078d
8 changed files with 163 additions and 141 deletions

View File

@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Project" ADD COLUMN "githubInstallationId" TEXT,
ALTER COLUMN "inviteCode" SET DEFAULT floor(random() * 90000000 + 10000000)::text;

View File

@@ -33,15 +33,16 @@ model Session {
}
model Project {
id String @id @default(cuid())
name String
description String
github String?
customData String[]
rateLimitReq Int @default(5)
rateLimitTime Int @default(60)
id String @id @default(cuid())
name String
description String
github String?
githubInstallationId String?
customData String[]
rateLimitReq Int @default(5)
rateLimitTime Int @default(60)
// 8 digit random number
inviteCode String @unique @default(dbgenerated("floor(random() * 90000000 + 10000000)::text"))
inviteCode String @unique @default(dbgenerated("floor(random() * 90000000 + 10000000)::text"))
users User[] @relation("UserProjects")
feedback Feedback[]