mirror of
https://github.com/SrIzan10/echospace.git
synced 2026-06-06 00:56:54 +00:00
fix: make github issue creation creator-restricted and easier for others
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Project" ADD COLUMN "githubInstallationId" TEXT,
|
||||
ALTER COLUMN "inviteCode" SET DEFAULT floor(random() * 90000000 + 10000000)::text;
|
||||
@@ -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[]
|
||||
|
||||
Reference in New Issue
Block a user