mirror of
https://github.com/SrIzan10/echospace.git
synced 2026-06-06 00:56:54 +00:00
feat: initial github integration
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "User" ADD COLUMN "installations" TEXT[];
|
||||
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "Project" ALTER COLUMN "github" DROP NOT NULL;
|
||||
@@ -14,11 +14,12 @@ datasource db {
|
||||
}
|
||||
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
githubId String @unique
|
||||
username String
|
||||
projects Project[]
|
||||
sessions Session[]
|
||||
id String @id @default(cuid())
|
||||
githubId String @unique
|
||||
username String
|
||||
installations String[]
|
||||
projects Project[]
|
||||
sessions Session[]
|
||||
}
|
||||
|
||||
model Session {
|
||||
@@ -32,7 +33,7 @@ model Project {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
description String
|
||||
github String
|
||||
github String?
|
||||
customData String[]
|
||||
rateLimitReq Int @default(5)
|
||||
rateLimitTime Int @default(60)
|
||||
|
||||
Reference in New Issue
Block a user