mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-17 15:36:50 +00:00
45 lines
1.0 KiB
Plaintext
45 lines
1.0 KiB
Plaintext
|
|
// This is your Prisma schema file,
|
||
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
||
|
|
|
||
|
|
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
|
||
|
|
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
|
||
|
|
|
||
|
|
generator client {
|
||
|
|
provider = "prisma-client-js"
|
||
|
|
output = "../lib/generated/prisma"
|
||
|
|
}
|
||
|
|
|
||
|
|
datasource db {
|
||
|
|
provider = "postgresql"
|
||
|
|
url = env("DATABASE_URL")
|
||
|
|
}
|
||
|
|
|
||
|
|
model application {
|
||
|
|
id Int @id @default(autoincrement())
|
||
|
|
serverId Int @default(1)
|
||
|
|
name String
|
||
|
|
description String?
|
||
|
|
icon String
|
||
|
|
publicURL String
|
||
|
|
localURL String?
|
||
|
|
createdAt DateTime @default(now())
|
||
|
|
online Boolean @default(true)
|
||
|
|
}
|
||
|
|
|
||
|
|
model server {
|
||
|
|
id Int @id @default(autoincrement())
|
||
|
|
name String
|
||
|
|
os String?
|
||
|
|
ip String?
|
||
|
|
url String?
|
||
|
|
cpu String?
|
||
|
|
gpu String?
|
||
|
|
ram String?
|
||
|
|
disk String?
|
||
|
|
}
|
||
|
|
|
||
|
|
model settings {
|
||
|
|
id Int @id @default(autoincrement())
|
||
|
|
uptime_checks Boolean @default(true)
|
||
|
|
}
|