2022-06-22 00:30:11 +03:00
|
|
|
// This is your Prisma schema file,
|
|
|
|
// learn more about it in the docs: https://pris.ly/d/prisma-schema
|
|
|
|
|
|
|
|
generator client {
|
|
|
|
provider = "prisma-client-js"
|
|
|
|
}
|
|
|
|
|
|
|
|
datasource db {
|
|
|
|
provider = "sqlite"
|
|
|
|
url = env("DATABASE_URL")
|
|
|
|
}
|
|
|
|
|
|
|
|
model EncryptedNote {
|
|
|
|
id String @id @default(cuid())
|
|
|
|
insert_time DateTime @default(now())
|
2022-06-29 15:17:38 +03:00
|
|
|
expire_time DateTime @default(now())
|
2022-06-22 00:30:11 +03:00
|
|
|
ciphertext String
|
|
|
|
hmac String
|
|
|
|
}
|
2022-08-08 23:46:50 +03:00
|
|
|
|
|
|
|
model event {
|
|
|
|
id Int @id @default(autoincrement())
|
|
|
|
time DateTime @default(now())
|
|
|
|
type String
|
|
|
|
success Boolean
|
|
|
|
size_bytes Int?
|
|
|
|
purge_count Int?
|
|
|
|
host String?
|
|
|
|
error String?
|
|
|
|
expire_window_days Int?
|
|
|
|
}
|