[2026-04-10 11:37:39] staging.WARNING: Y.2.2: Failed to create TemplateVersion snapshot {"template_id":192,"version":1,"error":"SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '192-1' for key 'unique_template_version' (SQL: insert into `template_versions` (`venue_template_id`, `version`, `snapshot`, `changed_fields`, `created_by`, `created_at`) values (192, 1, {\"name\":\"Venue 4\",\"venue_id\":4,\"seats_count\":56,\"bookable_seats\":56,\"seats\":[{\"id\":\"table-1775817455291-46cv8k3mn-a1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-a2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-a3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-a4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-a5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-a6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-a7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455291-46cv8k3mn-b7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455291-46cv8k3mn\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-a7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817455891-e9bb6rcnh-b7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817455891-e9bb6rcnh\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-a7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456433-ze2tpqqyy-b7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456433-ze2tpqqyy\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-a7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b1\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b2\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b3\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b4\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b5\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b6\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null},{\"id\":\"table-1775817456705-tbkuhibxq-b7\",\"type\":\"table_child\",\"parent_table_id\":\"table-1775817456705-tbkuhibxq\",\"price\":0,\"price_tier_id\":null}],\"price_tiers\":[],\"layout\":[],\"metadata\":{\"author\":\"Current User\",\"description\":\"Version 1\",\"status\":\"draft\",\"total_tables\":4,\"total_capacity\":56}}, ?, admin@showprima.com, 2026-04-10 11:37:39))"} 
[2026-04-10 16:50:29] staging.INFO: Gala updated {"gala_id":1,"gala_name":"Mohamed Abdo New Years Celebration 2025","changed_fields":["start_date","address","max_no_of_tickets","status"]} 
[2026-04-10 16:50:29] staging.INFO: Venue template linked to gala {"gala_id":1,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 16:50:29] staging.INFO: Gala forked from template {"gala_id":1,"template_id":191,"template_version":190} 
[2026-04-10 16:50:29] staging.WARNING: GalaTierService: Gala already has tiers, skipping copy {"gala_id":1,"template_id":191} 
[2026-04-10 16:50:31] staging.INFO: Seats instantiated from DTO {"gala_id":1,"template_id":191,"seat_count":1222,"bookable_count":1134} 
[2026-04-10 16:50:31] staging.INFO: Y.4.3: Template locked {"template_id":191,"venue_id":1,"version":190,"locked_reason":"in_use_by_gala_1"} 
[2026-04-10 16:50:31] staging.INFO: Y.4.3: Template locked after fork {"gala_id":1,"template_id":191,"locked_reason":"in_use_by_gala_1"} 
[2026-04-10 16:50:31] staging.INFO: Auto-fork: seats provisioned from template {"gala_id":1,"template_id":191,"template_version":190} 
[2026-04-10 16:50:47] staging.INFO: Gala updated {"gala_id":1,"gala_name":"Mohamed Abdo New Years Celebration 2025","changed_fields":["start_date","status"]} 
[2026-04-10 16:50:47] staging.INFO: Venue template linked to gala {"gala_id":1,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 16:50:47] staging.INFO: Auto-fork skipped: already forked {"gala_id":1} 
[2026-04-10 17:06:25] staging.INFO: Gala updated {"gala_id":1,"gala_name":"Mohamed Abdo New Years Celebration 2025","changed_fields":["start_date","status"]} 
[2026-04-10 17:06:25] staging.INFO: Venue template linked to gala {"gala_id":1,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:06:25] staging.INFO: Auto-fork skipped: already forked {"gala_id":1} 
[2026-04-10 17:06:37] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:06:37] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:06:37] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:07:51] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:07:51] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:07:51] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:11:50] staging.INFO: Gala updated {"gala_id":1,"gala_name":"Mohamed Abdo New Years Celebration 2025","changed_fields":["start_date","status"]} 
[2026-04-10 17:11:50] staging.INFO: Venue template linked to gala {"gala_id":1,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:11:50] staging.INFO: Auto-fork skipped: already forked {"gala_id":1} 
[2026-04-10 17:14:54] staging.INFO: Gala updated {"gala_id":1,"gala_name":"Mohamed Abdo New Years Celebration 2025","changed_fields":["start_date","status"]} 
[2026-04-10 17:14:54] staging.INFO: Venue template linked to gala {"gala_id":1,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:14:54] staging.INFO: Auto-fork skipped: already forked {"gala_id":1} 
[2026-04-10 17:15:28] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:15:28] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:15:28] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:19:29] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:19:29] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:19:29] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:19:34] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:19:34] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:19:34] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:19:43] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:19:43] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:19:43] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:19:45] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:19:45] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:19:45] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:19:47] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:19:47] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:19:47] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:19:53] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:19:53] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:19:53] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:23:56] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:23:56] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:23:56] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:23:58] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:23:58] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:23:58] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:23:59] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:23:59] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:23:59] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:24:04] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:24:04] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:24:04] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:40:17] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:40:17] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:40:17] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
[2026-04-10 17:40:26] staging.INFO: Gala updated {"gala_id":4,"gala_name":"E2E Fork Test Gala 20260409","changed_fields":["start_date","sell_start_date","sell_end_date","status"]} 
[2026-04-10 17:40:26] staging.INFO: Venue template linked to gala {"gala_id":4,"venue_id":1,"template_id":191,"template_version":190} 
[2026-04-10 17:40:26] staging.INFO: Auto-fork skipped: already forked {"gala_id":4} 
