12345678910111213141516171819202122232425 |
- package models
- type Car 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"`
- CarNumber string `gorm:"column:car_number" json:"carNumber"`
- Pid int `gorm:"column:pid" json:"pid"`
- SnCode string `gorm:"column:sn_code" json:"snCode"`
- DriverUuid string `gorm:"column:driver_uuid" json:"driverUuid"`
- DriverAccountId int `gorm:"column:driver_account_id" json:"driverAccountId"`
- CarType string `gorm:"column:car_type" json:"carType"`
- Enable int `gorm:"column:enable" json:"enable"`
- }
- func (*Car) TableName() string {
- return "car"
- }
|