mirror of
https://github.com/detleph/server.git
synced 2026-09-04 08:36:06 +02:00
Update the admin revision on password change
+ Update type of revision to DateTime
This commit is contained in:
@@ -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[]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user