- package model
- type Software struct {
- ID string `json:"id" gorm:"type:varchar(128);not null"`
- Name string `json:"name" gorm:"type:varchar(128);not null"`
- Type string `json:"type" gorm:"type:varchar(20);not null"`
- ReportFile string `json:"report_file" gorm:"column:report_file;type:longtext;not null"`
- CreatorId string `json:"creator_id" gorm:"column:creator_id;type:varchar(128);not null"`
- Delete int `json:"delete" gorm:"type:tinyint(1);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 (Software) TableName() string {
- return "software"
- }
|