Skip to content

Commit c24176b

Browse files
resolved comments
Signed-off-by: Arnesh Dadhich <arnesh.dadhich@unifyapps.com>
1 parent 256dc23 commit c24176b

File tree

1 file changed

+1
-1
lines changed
  • src/server/api/go/internal/modules/model

1 file changed

+1
-1
lines changed

src/server/api/go/internal/modules/model/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ type Message struct {
193193
TaskID *uuid.UUID `gorm:"type:uuid;index:ix_message_task_id;constraint:OnDelete:SET NULL,OnUpdate:CASCADE;" json:"task_id"`
194194
Task *Task `gorm:"foreignKey:TaskID;references:ID" json:"-"`
195195

196-
SessionTaskProcessStatus string `gorm:"type:text;not null;default:'pending';check:session_task_process_status IN ('pending', 'processing', 'completed', 'failed')" json:"session_task_process_status"`
196+
SessionTaskProcessStatus string `gorm:"type:text;not null;default:'pending';check:session_task_process_status IN ('pending', 'running', 'success', 'failed')" json:"session_task_process_status"`
197197

198198
CreatedAt time.Time `gorm:"autoCreateTime;not null;default:CURRENT_TIMESTAMP;index:idx_session_created,priority:2,sort:desc" json:"created_at"`
199199
UpdatedAt time.Time `gorm:"autoUpdateTime;not null;default:CURRENT_TIMESTAMP" json:"updated_at"`

0 commit comments

Comments
 (0)