Prepare secure config and reliable workout sync

This commit is contained in:
Hamza-Ayed
2026-10-04 00:33:44 +03:00
parent 05f1c9ec6b
commit e7f3c777d1
17 changed files with 553 additions and 119 deletions
@@ -0,0 +1,7 @@
-- Preserve offline workout identity across network retries.
-- Apply once to an existing database created from the original schema.sql.
-- Fresh databases created from the updated schema.sql already contain this column.
ALTER TABLE workouts
ADD COLUMN client_workout_uuid CHAR(36) NULL AFTER user_id,
ADD UNIQUE KEY uq_user_client_workout (user_id, client_workout_uuid);