DKube v1.0
This commit is contained in:
22
model/workflow.go
Normal file
22
model/workflow.go
Normal file
@ -0,0 +1,22 @@
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user