12345678910111213141516171819 |
- package model
- type Company struct {
- }
- type CompanyCreateRequest struct {
- ID int `json:"id" gorm:"type:bigint(20);not null"`
- Name string `json:"name" gorm:"type:varchar(128);not null"`
- LogoUrl string `json:"logo_url" gorm:"type:varchar(128);not null"`
- CertificateUrl string `json:"certificate_url" gorm:"type:varchar(128);not null"`
- State int `json:"state" gorm:"type:int; not null"`
- CreatorId string `json:"creator_id" gorm:"type:varchar(128);not null"`
- CreatedAt Time `json:"created_at" gorm:"column:create_time;type:datetime default CURRENT_TIMESTAMP"`
- UpdatedAt Time `json:"updated_at" gorm:"column:update_time;type:datetime default CURRENT_TIMESTAMP"`
- }
- func (CompanyCreateRequest) TableName() string {
- return "company_create_request"
- }
|