CoreControl/prisma/schema.prisma

34 lines
884 B
Plaintext
Raw Normal View History

2025-04-11 16:51:50 +02:00
// 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())
2025-04-12 13:19:52 +02:00
serverId Int @default(1)
2025-04-11 16:51:50 +02:00
name String
description String?
icon String
publicURL String
localURL String?
createdAt DateTime @default(now())
2025-04-12 12:33:37 +02:00
}
model server {
id Int @id @default(autoincrement())
name String
os String?
ip String?
url String?
2025-04-11 16:51:50 +02:00
}