Update the admin revision on password change

+ Update type of revision to DateTime
This commit is contained in:
Stephan
2022-04-28 12:49:07 +02:00
committed by Stefan-5422
parent f3c165bbd7
commit 0fb8a9ca73
4 changed files with 20 additions and 6 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ model Admin {
name String // TODO: This should maybe be unique
password String // TODO: Probably specify hash size (VarChar or some other type)
permission_level AdminLevel @default(STANDARD)
revision String @default(dbgenerated("gen_random_uuid()")) @db.Uuid
revision DateTime @default(now())
groups Group[]
}