Files
spacedrive/crates/sync/example/prisma/schema.prisma
2023-01-04 23:11:55 -08:00

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()
}