| gio | 5f2f100 | 2025-03-20 18:38:48 +0400 | [diff] [blame] | 1 | // This is your Prisma schema file, |
| 2 | // learn more about it in the docs: https://pris.ly/d/prisma-schema |
| 3 | |
| 4 | // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? |
| 5 | // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init |
| 6 | |
| 7 | generator client { |
| 8 | provider = "prisma-client-js" |
| 9 | } |
| 10 | |
| 11 | datasource db { |
| 12 | provider = "sqlite" |
| gio | 376a81d | 2025-05-20 06:42:01 +0000 | [diff] [blame] | 13 | url = env("DATABASE_URL") |
| gio | 5f2f100 | 2025-03-20 18:38:48 +0400 | [diff] [blame] | 14 | } |
| 15 | |
| 16 | model Project { |
| gio | 6914832 | 2025-06-19 23:16:12 +0400 | [diff] [blame] | 17 | id Int @id @default(autoincrement()) |
| 18 | userId String |
| 19 | name String |
| 20 | state String? |
| 21 | draft String? |
| 22 | instanceId String? |
| 23 | deployKey String? |
| gio | a71316d | 2025-05-24 09:41:36 +0400 | [diff] [blame] | 24 | deployKeyPublic String? |
| gio | 6914832 | 2025-06-19 23:16:12 +0400 | [diff] [blame] | 25 | githubToken String? |
| 26 | access String? |
| gio | 69ff759 | 2025-07-03 06:27:21 +0000 | [diff] [blame^] | 27 | geminiApiKey String? |
| 28 | anthropicApiKey String? |
| gio | 40c0c99 | 2025-07-02 13:18:05 +0000 | [diff] [blame] | 29 | logs Log[] |
| 30 | } |
| 31 | |
| 32 | model Log { |
| 33 | id Int @id @default(autoincrement()) |
| 34 | projectId Int |
| 35 | project Project @relation(fields: [projectId], references: [id]) |
| 36 | timestampMilli BigInt |
| 37 | contents String |
| 38 | commit String? |
| 39 | serviceName String |
| 40 | workerId String |
| 41 | runId String |
| gio | 5f2f100 | 2025-03-20 18:38:48 +0400 | [diff] [blame] | 42 | } |