blob: 3eb8df9725bf9aae9103235e17848ccfa2c874eb [file] [log] [blame]
gio5f2f1002025-03-20 18:38:48 +04001// 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
7generator client {
8 provider = "prisma-client-js"
9}
10
11datasource db {
12 provider = "sqlite"
gio376a81d2025-05-20 06:42:01 +000013 url = env("DATABASE_URL")
gio5f2f1002025-03-20 18:38:48 +040014}
15
16model Project {
gio69148322025-06-19 23:16:12 +040017 id Int @id @default(autoincrement())
18 userId String
19 name String
20 state String?
21 draft String?
22 instanceId String?
23 deployKey String?
gioa71316d2025-05-24 09:41:36 +040024 deployKeyPublic String?
gioe085d5b2025-07-08 07:51:36 +000025 envVars String?
gio69148322025-06-19 23:16:12 +040026 githubToken String?
27 access String?
gio69ff7592025-07-03 06:27:21 +000028 geminiApiKey String?
29 anthropicApiKey String?
gio40c0c992025-07-02 13:18:05 +000030 logs Log[]
31}
32
33model Log {
34 id Int @id @default(autoincrement())
35 projectId Int
giob0dc2d12025-07-07 08:28:48 +000036 project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
gio40c0c992025-07-02 13:18:05 +000037 timestampMilli BigInt
38 contents String
39 commit String?
40 serviceName String
41 workerId String
42 runId String
gio5f2f1002025-03-20 18:38:48 +040043}