software.go 754 B

12345678910111213141516
  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. }
  12. func (Software) TableName() string {
  13. return "software"
  14. }