blob: cee6787109fc9bb139d70cd1f2fd8c1f91dff1ef [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?
gio69148322025-06-19 23:16:12 +040025 githubToken String?
26 access String?
gio69ff7592025-07-03 06:27:21 +000027 geminiApiKey String?
28 anthropicApiKey String?
gio40c0c992025-07-02 13:18:05 +000029 logs Log[]
30}
31
32model 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
gio5f2f1002025-03-20 18:38:48 +040042}