123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- package company
- import "time"
- type Company struct {
- CompanyID uint64 `gorm:"primaryKey;column:company_id;type:bigint(20) unsigned;not null" json:"-"`
- CompanyName string `gorm:"index:company_name;column:company_name;type:varchar(100)" json:"companyName"`
- CreditCode string `gorm:"column:credit_code;type:varchar(30)" json:"creditCode"`
- CompanyCode string `gorm:"index:company_code;column:company_code;type:varchar(32)" json:"companyCode"`
- Sort int `gorm:"column:sort;type:int(10);default:1" json:"sort"`
- IsFeeCustomer int8 `gorm:"column:is_fee_customer;type:tinyint(1)" json:"isFeeCustomer"`
- Country string `gorm:"column:country;type:varchar(20)" json:"country"`
- ProvinceID int64 `gorm:"index:province_id;column:province_id;type:bigint(20)" json:"provinceId"`
- CityID int64 `gorm:"index:city_id;column:city_id;type:bigint(20)" json:"cityId"`
- Address string `gorm:"column:address;type:varchar(512)" json:"address"`
- Type int `gorm:"column:type;type:int(10);default:1" json:"type"`
- Enabled int8 `gorm:"index:enabled;column:enabled;type:tinyint(1);default:1" json:"enabled"`
- CreatedTime time.Time `gorm:"index:created_time;column:created_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createdTime"`
- LastUpdatedTime time.Time `gorm:"index:last_updated_time;column:last_updated_time;type:timestamp;not null;default:CURRENT_TIMESTAMP" json:"lastUpdatedTime"`
- Seller string `gorm:"column:seller;type:varchar(200)" json:"seller"`
- SellsID int64 `gorm:"index:idx_sells_id;column:sells_id;type:bigint(20)" json:"sellsId"`
- CompanyBelong string `gorm:"column:company_belong;type:varchar(30);default:ficc" json:"companyBelong"`
- StartDate time.Time `gorm:"column:start_date;type:date" json:"startDate"`
- EndDate time.Time `gorm:"column:end_date;type:date" json:"endDate"`
- LoseReason string `gorm:"column:lose_reason;type:varchar(1024);default:''" json:"loseReason"`
- LastType int `gorm:"column:last_type;type:int(10)" json:"lastType"`
- LossTime time.Time `gorm:"column:loss_time;type:datetime;not null" json:"lossTime"`
- FirstStartDate time.Time `gorm:"column:first_start_date;type:date" json:"firstStartDate"`
- FirstEndDate time.Time `gorm:"column:first_end_date;type:date" json:"firstEndDate"`
- DateType int `gorm:"column:date_type;type:int(11);default:0" json:"dateType"`
- Remark string `gorm:"column:remark;type:varchar(255)" json:"remark"`
- Province string `gorm:"column:province;type:varchar(100);default:''" json:"province"`
- City string `gorm:"column:city;type:varchar(100);default:''" json:"city"`
- IsVip int8 `gorm:"column:is_vip;type:tinyint(4)" json:"isVip"`
- RegionType string `gorm:"column:region_type;type:varchar(30);default:''" json:"regionType"`
- OpenCompanyCode string `gorm:"column:open_company_code;type:varchar(64);default:''" json:"openCompanyCode"`
- }
- func (m *Company) TableName() string {
- return "company"
- }
- var CompanyColumns = struct {
- CompanyID string
- CompanyName string
- CreditCode string
- CompanyCode string
- Sort string
- IsFeeCustomer string
- Country string
- ProvinceID string
- CityID string
- Address string
- Type string
- Enabled string
- CreatedTime string
- LastUpdatedTime string
- Seller string
- SellsID string
- CompanyBelong string
- StartDate string
- EndDate string
- LoseReason string
- LastType string
- LossTime string
- FirstStartDate string
- FirstEndDate string
- DateType string
- Remark string
- Province string
- City string
- IsVip string
- RegionType string
- OpenCompanyCode string
- }{
- CompanyID: "company_id",
- CompanyName: "company_name",
- CreditCode: "credit_code",
- CompanyCode: "company_code",
- Sort: "sort",
- IsFeeCustomer: "is_fee_customer",
- Country: "country",
- ProvinceID: "province_id",
- CityID: "city_id",
- Address: "address",
- Type: "type",
- Enabled: "enabled",
- CreatedTime: "created_time",
- LastUpdatedTime: "last_updated_time",
- Seller: "seller",
- SellsID: "sells_id",
- CompanyBelong: "company_belong",
- StartDate: "start_date",
- EndDate: "end_date",
- LoseReason: "lose_reason",
- LastType: "last_type",
- LossTime: "loss_time",
- FirstStartDate: "first_start_date",
- FirstEndDate: "first_end_date",
- DateType: "date_type",
- Remark: "remark",
- Province: "province",
- City: "city",
- IsVip: "is_vip",
- RegionType: "region_type",
- OpenCompanyCode: "open_company_code",
- }
|