feat: add shared media assets and fix credit lifecycle

This commit is contained in:
OpenClaw Agent
2026-09-17 02:30:31 +08:00
parent 7d79d43b61
commit b853a239ff
11 changed files with 351 additions and 19 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ type CreditTransaction struct {
type CreditReservation struct {
ID uint `gorm:"primaryKey"`
UserID uint `gorm:"index" json:"userId"`
TaskID uint `gorm:"uniqueIndex" json:"taskId"`
TaskID uint `gorm:"index" json:"taskId"`
Amount int64 `json:"amount"`
Status string `gorm:"index;size:20" json:"status"`
CreatedAt time.Time `json:"createdAt"`