feat: initial github integration

This commit is contained in:
2024-12-20 16:40:13 +01:00
parent d421278224
commit 861311d6ac
22 changed files with 1189 additions and 60 deletions

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "User" ADD COLUMN "installations" TEXT[];

View File

@@ -0,0 +1,2 @@
-- AlterTable
ALTER TABLE "Project" ALTER COLUMN "github" DROP NOT NULL;

View File

@@ -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)