mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-03 17:18:36 +00:00
feat: add roles, activation, superuser fields on user (#38)
This commit is contained in:
parent
a6d2fd45df
commit
0c90b05dca
17 changed files with 705 additions and 12 deletions
|
@ -35,6 +35,13 @@ func (User) Fields() []ent.Field {
|
|||
Sensitive(),
|
||||
field.Bool("is_superuser").
|
||||
Default(false),
|
||||
field.Enum("role").
|
||||
Default("user").
|
||||
Values("user", "owner"),
|
||||
field.Bool("superuser").
|
||||
Default(false),
|
||||
field.Time("activated_on").
|
||||
Optional(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue