mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-04-20 14:38:58 -04:00
35 lines
610 B
Plaintext
35 lines
610 B
Plaintext
// This is your Prisma schema file,
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
datasource db {
|
|
provider = "sqlite"
|
|
url = "file:dev.db"
|
|
}
|
|
|
|
generator client {
|
|
provider = "cargo prisma"
|
|
output = "../src/prisma.rs"
|
|
}
|
|
|
|
generator sync {
|
|
provider = "cargo run -p prisma-cli --bin sync --"
|
|
output = "../src/prisma_sync.rs"
|
|
}
|
|
|
|
/// @owned
|
|
model FilePath {
|
|
id Bytes @id
|
|
path String
|
|
|
|
object Object? @relation(fields: [object_id], references: [id])
|
|
object_id Bytes?
|
|
}
|
|
|
|
/// @shared
|
|
model Object {
|
|
id Bytes @id
|
|
name String
|
|
|
|
paths FilePath[] @relation()
|
|
}
|