1234567891011121314151617181920212223 |
- package model
- type Task struct {
- ID string `gorm:"type:varchar(128);not null;" json:"id"`
- Title string `gorm:"type:varchar(50);not null" json:"title"`
- State int `gorm:"type:int(11);not null" json:"state"`
- Description string `gorm:"type:longtext;not null" json:"description"`
- StateFile string `gorm:"column:statement_file;type:longtext;not null" json:"stateFile"`
- CaseFile string `gorm:"column:case_file;type:longtext;" json:"caseFile"`
- CaseAll int `gorm:"column:case_all;type:int(11)" json:"caseAll"`
- CaseNotExecute int `gorm:"column:case_not_execute;type:int(11)" json:"caseNotExecute"`
- CaseSuccess int `gorm:"column:case_success;type:int(11)" json:"caseSuccess"`
- CaseFail int `gorm:"column:case_fail;type:int(11)" json:"caseFail"`
- 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"`
- Delete int `gorm:"type:tinyint(1);not null" json:"delete"`
- PlanId string `gorm:"type:varchar(128);not null" json:"planId"`
- ExecutorId string `gorm:"type:varchar(128);not null" json:"executorId"`
- }
- func (Task) TableName() string {
- return "task"
- }
|