Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
keroxp committed Jun 4, 2024
1 parent 4074ca9 commit 4669ec7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,19 +133,19 @@ And results are mostly like this:
package model

type Users struct {
Id int64 `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
Id int64 `exql:"column:id;type:int;primary;not null;auto_increment" json:"id"`
Name string `exql:"column:name;type:varchar(255);not null" json:"name"`
Age int64 `exql:"column:age;type:int(11);not null" json:"age"`
Age int64 `exql:"column:age;type:int;not null" json:"age"`
}

func (u *Users) TableName() string {
return UsersTableName
}

type UpdateUsers struct {
Id *int64 `exql:"column:id;type:int(11);primary;not null;auto_increment" json:"id"`
Id *int64 `exql:"column:id;type:int;primary;not null;auto_increment" json:"id"`
Name *string `exql:"column:name;type:varchar(255);not null" json:"name"`
Age *int64 `exql:"column:age;type:int(11);not null" json:"age"`
Age *int64 `exql:"column:age;type:int;not null" json:"age"`
}

func (u *UpdateUsers) UpdateTableName() string {
Expand Down

0 comments on commit 4669ec7

Please sign in to comment.