fix game story
This commit is contained in:
@@ -100,7 +100,7 @@ func init() {
|
||||
// ue.PasswordValidator is a validator for the "password" field. It is called by the builders before save.
|
||||
ue.PasswordValidator = ueDescPassword.Validators[0].(func(string) error)
|
||||
// ueDescCreatedAt is the schema descriptor for created_at field.
|
||||
ueDescCreatedAt := ueFields[21].Descriptor()
|
||||
ueDescCreatedAt := ueFields[23].Descriptor()
|
||||
// ue.DefaultCreatedAt holds the default value on creation for the created_at field.
|
||||
ue.DefaultCreatedAt = ueDescCreatedAt.Default.(func() time.Time)
|
||||
userFields := schema.User{}.Fields()
|
||||
@@ -215,12 +215,16 @@ func init() {
|
||||
userDescGameAccount := userFields[45].Descriptor()
|
||||
// user.DefaultGameAccount holds the default value on creation for the game_account field.
|
||||
user.DefaultGameAccount = userDescGameAccount.Default.(bool)
|
||||
// userDescGameLimit is the schema descriptor for game_limit field.
|
||||
userDescGameLimit := userFields[49].Descriptor()
|
||||
// user.DefaultGameLimit holds the default value on creation for the game_limit field.
|
||||
user.DefaultGameLimit = userDescGameLimit.Default.(bool)
|
||||
// userDescCoinOpen is the schema descriptor for coin_open field.
|
||||
userDescCoinOpen := userFields[49].Descriptor()
|
||||
userDescCoinOpen := userFields[51].Descriptor()
|
||||
// user.DefaultCoinOpen holds the default value on creation for the coin_open field.
|
||||
user.DefaultCoinOpen = userDescCoinOpen.Default.(bool)
|
||||
// userDescCoinAt is the schema descriptor for coin_at field.
|
||||
userDescCoinAt := userFields[50].Descriptor()
|
||||
userDescCoinAt := userFields[52].Descriptor()
|
||||
// user.DefaultCoinAt holds the default value on creation for the coin_at field.
|
||||
user.DefaultCoinAt = userDescCoinAt.Default.(func() time.Time)
|
||||
}
|
||||
|
Reference in New Issue
Block a user