added some install files

This commit is contained in:
2022-05-22 14:56:45 +02:00
parent 0796745030
commit 7fd8f4a884
46 changed files with 781 additions and 18 deletions

View File

@ -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"),
}