Files
kandev/apps/backend/pkg/api/v1/workflow.go
T
2026-02-16 13:48:58 +00:00

26 lines
767 B
Go

package v1
import "time"
// Workflow represents a task workflow
type Workflow struct {
ID string `json:"id"`
WorkspaceID string `json:"workspace_id"`
Name string `json:"name"`
Description *string `json:"description,omitempty"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
// CreateWorkflowRequest for creating a new workflow
type CreateWorkflowRequest struct {
Name string `json:"name" binding:"required,max=255"`
Description *string `json:"description,omitempty"`
}
// UpdateWorkflowRequest for updating a workflow
type UpdateWorkflowRequest struct {
Name *string `json:"name,omitempty" binding:"omitempty,max=255"`
Description *string `json:"description,omitempty"`
}