chore(storage-new): Regenerate bindings
This commit is contained in:
parent
c9e1881f55
commit
f8a56cebfe
11 changed files with 59 additions and 11 deletions
|
@ -26,6 +26,7 @@ func newUserToPronoun(db *gorm.DB, opts ...gen.DOOption) userToPronoun {
|
|||
|
||||
tableName := _userToPronoun.userToPronounDo.TableName()
|
||||
_userToPronoun.ALL = field.NewAsterisk(tableName)
|
||||
_userToPronoun.ID = field.NewUint64(tableName, "id")
|
||||
_userToPronoun.UserId = field.NewString(tableName, "user_id")
|
||||
_userToPronoun.Pronoung = field.NewString(tableName, "pronoung")
|
||||
_userToPronoun.User = userToPronounBelongsToUser{
|
||||
|
@ -178,6 +179,7 @@ type userToPronoun struct {
|
|||
userToPronounDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Uint64
|
||||
UserId field.String
|
||||
Pronoung field.String
|
||||
User userToPronounBelongsToUser
|
||||
|
@ -197,6 +199,7 @@ func (u userToPronoun) As(alias string) *userToPronoun {
|
|||
|
||||
func (u *userToPronoun) updateTableName(table string) *userToPronoun {
|
||||
u.ALL = field.NewAsterisk(table)
|
||||
u.ID = field.NewUint64(table, "id")
|
||||
u.UserId = field.NewString(table, "user_id")
|
||||
u.Pronoung = field.NewString(table, "pronoung")
|
||||
|
||||
|
@ -215,7 +218,8 @@ func (u *userToPronoun) GetFieldByName(fieldName string) (field.OrderExpr, bool)
|
|||
}
|
||||
|
||||
func (u *userToPronoun) fillFieldMap() {
|
||||
u.fieldMap = make(map[string]field.Expr, 3)
|
||||
u.fieldMap = make(map[string]field.Expr, 4)
|
||||
u.fieldMap["id"] = u.ID
|
||||
u.fieldMap["user_id"] = u.UserId
|
||||
u.fieldMap["pronoung"] = u.Pronoung
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue