company.go 816 B

12345678910111213141516171819
  1. package model
  2. type Company struct {
  3. }
  4. type CompanyCreateRequest struct {
  5. ID int `json:"id" gorm:"type:bigint(20);not null"`
  6. Name string `json:"name" gorm:"type:varchar(128);not null"`
  7. LogoUrl string `json:"logo_url" gorm:"type:varchar(128);not null"`
  8. CertificateUrl string `json:"certificate_url" gorm:"type:varchar(128);not null"`
  9. State int `json:"state" gorm:"type:int; not null"`
  10. CreatorId string `json:"creator_id" gorm:"type:varchar(128);not null"`
  11. CreatedAt Time `json:"created_at" gorm:"column:create_time;type:datetime default CURRENT_TIMESTAMP"`
  12. UpdatedAt Time `json:"updated_at" gorm:"column:update_time;type:datetime default CURRENT_TIMESTAMP"`
  13. }
  14. func (CompanyCreateRequest) TableName() string {
  15. return "company_create_request"
  16. }