1
0

update migrate

This commit is contained in:
2023-04-05 15:05:14 +09:00
parent 9573dc895f
commit 1d65e1194b
36 changed files with 1430 additions and 137 deletions

View File

@@ -20,6 +20,12 @@ var cp int
func (Card) Fields() []ent.Field {
return []ent.Field{
field.String("password").
NotEmpty().
Immutable().
Sensitive(),
field.Int("card").
Immutable().
DefaultFunc(func() int {
@@ -93,5 +99,6 @@ func (Card) Edges() []ent.Edge {
Ref("card").
Unique().
Required(),
}
}