Add step type support for work order profiles and steps, update database schema, APIs, and UI components to handle configurable step types.
This commit is contained in:
@@ -56,6 +56,8 @@ type Step struct {
|
||||
Title string `db:"title" json:"title"`
|
||||
Description string `db:"description" json:"description"`
|
||||
Required bool `db:"required" json:"required"`
|
||||
StepType string `db:"step_type" json:"step_type"`
|
||||
TypeConfig string `db:"type_config" json:"type_config"`
|
||||
Completed bool `db:"completed" json:"completed"`
|
||||
CompletedBy *string `db:"completed_by" json:"completed_by"`
|
||||
CompletedAt *time.Time `db:"completed_at" json:"completed_at"`
|
||||
@@ -166,6 +168,8 @@ type ProfileStep struct {
|
||||
Title string `db:"title" json:"title"`
|
||||
Description string `db:"description" json:"description"`
|
||||
Required bool `db:"required" json:"required"`
|
||||
StepType string `db:"step_type" json:"step_type"`
|
||||
TypeConfig string `db:"type_config" json:"type_config"`
|
||||
}
|
||||
|
||||
// ── Users & Auth ──────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user