added some install files
This commit is contained in:
parent
0796745030
commit
7fd8f4a884
46 changed files with 781 additions and 18 deletions
|
|
@ -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"),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue