added some install files
This commit is contained in:
@ -1,10 +1,11 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
"time"
|
||||
)
|
||||
|
||||
// Account holds the schema definition for the Account entity.
|
||||
@ -19,7 +20,7 @@ func (Account) Fields() []ent.Field {
|
||||
field.Time("created").Default(time.Now).Immutable(),
|
||||
field.Time("modified").Default(time.Now).UpdateDefault(time.Now).Optional(),
|
||||
field.String("username"),
|
||||
field.Bytes("password"),
|
||||
field.Bytes("password").Sensitive(),
|
||||
field.Bool("super"),
|
||||
field.Bool("active"),
|
||||
}
|
||||
|
Reference in New Issue
Block a user