DKube/model/workflow.go
2022-10-12 10:34:43 +08:00

23 lines
565 B
Go

package model
import "time"
type Workflow struct {
ID uint `json:"id" gorm:"primaryKey"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
Name string `json:"name"`
Namespace string `json:"namespace"`
Replicas int32 `json:"replicas"`
Deployment string `json:"deployment"`
Service string `json:"service"`
Ingress string `json:"ingress"`
Type string `json:"type" gorm:"column:type"`
}
func (*Workflow) TableName() string {
return "workflow"
}