feat: Add player_configs feature and migrate user preferences

- Implemented player_configs table to store multiple player configurations per user.
- Migrated existing player settings from user_preferences to player_configs.
- Removed player-related columns from user_preferences.
- Added referral state fields to user for tracking referral rewards.
- Created migration scripts for database changes and data migration.
- Added test cases for app services and usage helpers.
- Introduced video job service interfaces and implementations.
This commit is contained in:
2026-03-24 16:08:36 +00:00
parent 91e5e3542b
commit e7fdd0e1ab
103 changed files with 9540 additions and 8446 deletions

View File

@@ -152,8 +152,8 @@ func (r *Adapter) SubscribeCancel(ctx context.Context, agentID string) (<-chan s
return ch, nil
}
func (r *Adapter) PublishJobUpdate(ctx context.Context, jobID string, status string) error {
payload, err := json.Marshal(map[string]string{"job_id": jobID, "status": status})
func (r *Adapter) PublishJobUpdate(ctx context.Context, jobID string, status string, videoID string) error {
payload, err := json.Marshal(map[string]string{"job_id": jobID, "status": status, "video_id": videoID})
if err != nil {
return err
}