software.go 834 B

1234567891011121314151617
  1. package model
  2. type Software struct {
  3. ID string `json:"id" gorm:"type:varchar(128);not null"`
  4. Name string `json:"name" gorm:"type:varchar(128);not null"`
  5. Type string `json:"type" gorm:"type:varchar(20);not null"`
  6. ReportFile string `json:"report_file" gorm:"column:report_file;type:longtext;not null"`
  7. CreatorId string `json:"creator_id" gorm:"column:creator_id;type:varchar(128);not null"`
  8. Delete int `json:"delete" gorm:"type:tinyint(1);not null"`
  9. CreatedAt Time `json:"created_at" gorm:"column:create_time;type:datetime default CURRENT_TIMESTAMP"`
  10. UpdatedAt Time `json:"updated_at" gorm:"column:update_time;type:datetime default CURRENT_TIMESTAMP"`
  11. CompanyId int `json:"company_id" gorm:"column:company_id;type:bigint(20)"`
  12. }
  13. func (Software) TableName() string {
  14. return "software"
  15. }