fix(contracts): decouple DTOs from ORM tags and table name mappings

This commit is contained in:
ryan
2026-09-03 10:17:11 +08:00
parent 807343c82c
commit 99fff5d5af
3 changed files with 16 additions and 31 deletions
-5
View File
@@ -71,11 +71,6 @@ type TaskExecutionDTO struct {
UpdatedAt time.Time `json:"updated_at"`
}
// TableName returns the default table name for TaskExecutionDTO.
func (TaskExecutionDTO) TableName() string {
return "w_task_executions"
}
// Canonical triggered_by values persisted on task executions and shown in admin UI.
const (
TaskTriggerSystem = "system"