12345678910111213141516171819202122232425262728293031323334 |
- package models
- type Account struct {
- Id int `gorm:"column:id" json:"id"`
- CreatedTime MyTime `gorm:"column:created_time" json:"createdTime"`
- CreatedBy int `gorm:"column:created_by" json:"createdBy"`
- UpdatedTime MyTime `gorm:"column:updated_time" json:"updatedTime"`
- UpdatedBy int `gorm:"column:updated_by" json:"updatedBy"`
- DeletedTime MyTime `gorm:"column:deleted_time" json:"deletedTime"`
- DeletedBy int `gorm:"column:deleted_by" json:"deletedBy"`
- Deleted int `gorm:"column:deleted" json:"deleted"`
- AvatarId int `gorm:"column:avatar_id" json:"avatarId"`
- AccountType int `gorm:"column:account_type" json:"accountType"`
- Openid string `gorm:"column:openid" json:"openid"`
- Name string `gorm:"column:name" json:"name"`
- Phone string `gorm:"column:phone" json:"phone"`
- Token string `gorm:"column:token" json:"token"`
- FirstLogin int `gorm:"column:first_login" json:"firstLogin"`
- Gender string `gorm:"column:gender" json:"gender"`
- CompanyName string `gorm:"column:company_name" json:"companyName"`
- RoleType string `gorm:"column:role_type" json:"roleType"`
- Uuid string `gorm:"column:uuid" json:"uuid"`
- Pid int `gorm:"column:pid" json:"pid"`
- UsePid int `gorm:"column:use_pid" json:"usePid"`
- PowerId int `gorm:"column:power_id" json:"powerId"`
- CarId int `gorm:"column:car_id" json:"carId"`
- WarehouseId int `gorm:"column:warehouse_id" json:"warehouseId"`
- }
- func (*Account) TableName() string {
- return "account"
- }
|