Update the admin revision on password change

+ Update type of revision to DateTime
This commit is contained in:
Stephan
2022-01-02 17:26:20 +01:00
parent 4d23eccba6
commit 08419d581b
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[]
}