Fix enums in generated admin schema code.
This commit is contained in:
parent
3ffdea90c3
commit
be5c1f9197
5 changed files with 36 additions and 10 deletions
|
|
@ -1,7 +1,11 @@
|
|||
// Code generated by ent, DO NOT EDIT.
|
||||
package admin
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/mikestefanello/pagoda/ent/user"
|
||||
)
|
||||
|
||||
type PasswordToken struct {
|
||||
Token *string `form:"token"`
|
||||
|
|
@ -24,6 +28,7 @@ type User struct {
|
|||
Verified bool `form:"verified"`
|
||||
Admin bool `form:"admin"`
|
||||
CreatedAt *time.Time `form:"created_at"`
|
||||
Role *user.Role `form:"role"`
|
||||
}
|
||||
|
||||
func (e *User) GetName() string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue