From 0c03c449c3e959a36da1a5c2f3493fd51fb52019 Mon Sep 17 00:00:00 2001 From: "bert.hausmans" Date: Fri, 8 May 2026 17:55:34 +0200 Subject: [PATCH] =?UTF-8?q?feat(timetable):=20RFC=20v0.2=20=C2=A75.3=20mig?= =?UTF-8?q?rations=20=E2=80=94=20artists,=20engagements,=20stages,=20perfo?= =?UTF-8?q?rmances,=20advancing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ten migrations creating the artist + timetable foundation per RFC-TIMETABLE v0.2 Session 1: - genres (org-scoped vocab, D24) - artists (master, org-scoped — slug-unique per org) - companies.handles_buma column (D26 — BUMA flag on agencies) - artist_contacts (master-scoped contacts) - stages (event-scoped, sort_order per D23) - stage_days (pure pivot stage↔event, integer PK) - artist_engagements (per-event booking, denorm organisation_id, D9/D10) - performances (engagement-scoped, nullable stage_id = wachtrij, D13/D14) - advance_sections (engagement-scoped — was artist-scoped in pre-v0.2 plan) - advance_submissions (audit-immutable per section) Schema dump regenerated against crewli_test (migrate → schema:dump), verified migrate:fresh round-trips cleanly with the dump as fast-path. Closes part of ARCH-09. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../2026_05_08_100000_create_genres_table.php | 30 + ...2026_05_08_100001_create_artists_table.php | 38 + ...02_add_handles_buma_to_companies_table.php | 24 + ...08_100003_create_artist_contacts_table.php | 33 + .../2026_05_08_100004_create_stages_table.php | 31 + ...6_05_08_100005_create_stage_days_table.php | 27 + ...100006_create_artist_engagements_table.php | 69 + ...05_08_100007_create_performances_table.php | 36 + ...8_100008_create_advance_sections_table.php | 37 + ...00009_create_advance_submissions_table.php | 33 + api/database/schema/mysql-schema.sql | 1334 ++++++++++------- 11 files changed, 1109 insertions(+), 583 deletions(-) create mode 100644 api/database/migrations/2026_05_08_100000_create_genres_table.php create mode 100644 api/database/migrations/2026_05_08_100001_create_artists_table.php create mode 100644 api/database/migrations/2026_05_08_100002_add_handles_buma_to_companies_table.php create mode 100644 api/database/migrations/2026_05_08_100003_create_artist_contacts_table.php create mode 100644 api/database/migrations/2026_05_08_100004_create_stages_table.php create mode 100644 api/database/migrations/2026_05_08_100005_create_stage_days_table.php create mode 100644 api/database/migrations/2026_05_08_100006_create_artist_engagements_table.php create mode 100644 api/database/migrations/2026_05_08_100007_create_performances_table.php create mode 100644 api/database/migrations/2026_05_08_100008_create_advance_sections_table.php create mode 100644 api/database/migrations/2026_05_08_100009_create_advance_submissions_table.php diff --git a/api/database/migrations/2026_05_08_100000_create_genres_table.php b/api/database/migrations/2026_05_08_100000_create_genres_table.php new file mode 100644 index 00000000..a43fd86b --- /dev/null +++ b/api/database/migrations/2026_05_08_100000_create_genres_table.php @@ -0,0 +1,30 @@ +ulid('id')->primary(); + $table->foreignUlid('organisation_id')->constrained()->cascadeOnDelete(); + $table->string('name', 40); + $table->string('color', 7)->nullable(); + $table->integer('sort_order')->default(0); + $table->boolean('is_active')->default(true); + $table->timestamps(); + + $table->unique(['organisation_id', 'name']); + }); + } + + public function down(): void + { + Schema::dropIfExists('genres'); + } +}; diff --git a/api/database/migrations/2026_05_08_100001_create_artists_table.php b/api/database/migrations/2026_05_08_100001_create_artists_table.php new file mode 100644 index 00000000..b63c00fe --- /dev/null +++ b/api/database/migrations/2026_05_08_100001_create_artists_table.php @@ -0,0 +1,38 @@ +ulid('id')->primary(); + $table->foreignUlid('organisation_id')->constrained()->cascadeOnDelete(); + $table->string('name', 120); + $table->string('slug', 120); + $table->foreignUlid('default_genre_id')->nullable()->constrained('genres')->nullOnDelete(); + $table->integer('default_draw')->nullable(); + $table->tinyInteger('star_rating')->nullable(); + $table->string('home_base_country', 2)->nullable(); + $table->foreignUlid('agent_company_id')->nullable()->constrained('companies')->nullOnDelete(); + $table->text('notes')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->unique(['organisation_id', 'slug']); + $table->index(['organisation_id', 'name']); + $table->index('default_genre_id'); + $table->index('agent_company_id'); + }); + } + + public function down(): void + { + Schema::dropIfExists('artists'); + } +}; diff --git a/api/database/migrations/2026_05_08_100002_add_handles_buma_to_companies_table.php b/api/database/migrations/2026_05_08_100002_add_handles_buma_to_companies_table.php new file mode 100644 index 00000000..6343e035 --- /dev/null +++ b/api/database/migrations/2026_05_08_100002_add_handles_buma_to_companies_table.php @@ -0,0 +1,24 @@ +boolean('handles_buma')->default(false)->after('type'); + }); + } + + public function down(): void + { + Schema::table('companies', function (Blueprint $table) { + $table->dropColumn('handles_buma'); + }); + } +}; diff --git a/api/database/migrations/2026_05_08_100003_create_artist_contacts_table.php b/api/database/migrations/2026_05_08_100003_create_artist_contacts_table.php new file mode 100644 index 00000000..7d4187b0 --- /dev/null +++ b/api/database/migrations/2026_05_08_100003_create_artist_contacts_table.php @@ -0,0 +1,33 @@ +ulid('id')->primary(); + $table->foreignUlid('artist_id')->constrained()->cascadeOnDelete(); + $table->string('name', 120); + $table->string('email')->nullable(); + $table->string('phone')->nullable(); + $table->string('role', 60); + $table->boolean('is_primary')->default(false); + $table->boolean('receives_briefing')->default(false); + $table->boolean('receives_infosheet')->default(false); + $table->timestamps(); + + $table->index(['artist_id', 'role']); + }); + } + + public function down(): void + { + Schema::dropIfExists('artist_contacts'); + } +}; diff --git a/api/database/migrations/2026_05_08_100004_create_stages_table.php b/api/database/migrations/2026_05_08_100004_create_stages_table.php new file mode 100644 index 00000000..57b2e9a1 --- /dev/null +++ b/api/database/migrations/2026_05_08_100004_create_stages_table.php @@ -0,0 +1,31 @@ +ulid('id')->primary(); + $table->foreignUlid('event_id')->constrained()->cascadeOnDelete(); + $table->string('name', 120); + $table->string('color', 7); + $table->integer('capacity')->nullable(); + $table->integer('sort_order')->default(0); + $table->timestamps(); + + $table->unique(['event_id', 'name']); + $table->index(['event_id', 'sort_order']); + }); + } + + public function down(): void + { + Schema::dropIfExists('stages'); + } +}; diff --git a/api/database/migrations/2026_05_08_100005_create_stage_days_table.php b/api/database/migrations/2026_05_08_100005_create_stage_days_table.php new file mode 100644 index 00000000..a9e220e8 --- /dev/null +++ b/api/database/migrations/2026_05_08_100005_create_stage_days_table.php @@ -0,0 +1,27 @@ +id(); + $table->foreignUlid('stage_id')->constrained()->cascadeOnDelete(); + $table->foreignUlid('event_id')->constrained()->cascadeOnDelete(); + + $table->unique(['stage_id', 'event_id']); + $table->index('event_id'); + }); + } + + public function down(): void + { + Schema::dropIfExists('stage_days'); + } +}; diff --git a/api/database/migrations/2026_05_08_100006_create_artist_engagements_table.php b/api/database/migrations/2026_05_08_100006_create_artist_engagements_table.php new file mode 100644 index 00000000..7d8c9d58 --- /dev/null +++ b/api/database/migrations/2026_05_08_100006_create_artist_engagements_table.php @@ -0,0 +1,69 @@ +ulid('id')->primary(); + $table->foreignUlid('organisation_id')->constrained()->cascadeOnDelete(); + $table->foreignUlid('artist_id')->constrained()->cascadeOnDelete(); + $table->foreignUlid('event_id')->constrained()->cascadeOnDelete(); + + $table->string('booking_status')->default('draft'); + $table->foreignUlid('project_leader_id')->nullable()->constrained('users')->nullOnDelete(); + + // Deal info + $table->decimal('fee_amount', 10, 2)->nullable(); + $table->string('fee_currency', 3)->default('EUR'); + $table->string('fee_type')->nullable(); + $table->boolean('buma_applicable')->default(true); + $table->decimal('buma_percentage', 5, 2)->default(7.00); + $table->string('buma_handled_by')->default('organisation'); + $table->boolean('vat_applicable')->default(true); + $table->decimal('vat_percentage', 5, 2)->default(21.00); + $table->json('deal_breakdown')->nullable(); + $table->decimal('deposit_percentage', 5, 2)->nullable(); + $table->date('deposit_due_date')->nullable(); + $table->date('balance_due_date')->nullable(); + $table->string('payment_status')->default('none'); + + // Crew + guests + $table->integer('crew_count')->default(0); + $table->integer('guests_count')->default(0); + + // Milestone datetimes (per RFC v0.2 §5.3) + $table->datetime('requested_at')->nullable(); + $table->datetime('option_expires_at')->nullable(); + $table->datetime('advance_open_from')->nullable(); + $table->datetime('advance_open_to')->nullable(); + + // Portal access + $table->ulid('portal_token')->nullable()->unique(); + + // Advancing aggregates (recomputed in Session 3) + $table->integer('advancing_completed_count')->default(0); + $table->integer('advancing_total_count')->default(0); + + $table->text('notes')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->unique(['artist_id', 'event_id']); + $table->index('organisation_id'); + $table->index(['event_id', 'booking_status']); + $table->index('option_expires_at'); + }); + } + + public function down(): void + { + Schema::dropIfExists('artist_engagements'); + } +}; diff --git a/api/database/migrations/2026_05_08_100007_create_performances_table.php b/api/database/migrations/2026_05_08_100007_create_performances_table.php new file mode 100644 index 00000000..b96aa2c6 --- /dev/null +++ b/api/database/migrations/2026_05_08_100007_create_performances_table.php @@ -0,0 +1,36 @@ +ulid('id')->primary(); + $table->foreignUlid('engagement_id')->constrained('artist_engagements')->cascadeOnDelete(); + $table->foreignUlid('event_id')->constrained()->cascadeOnDelete(); + $table->foreignUlid('stage_id')->nullable()->constrained()->nullOnDelete(); + $table->unsignedTinyInteger('lane')->default(0); + $table->datetime('start_at'); + $table->datetime('end_at'); + $table->integer('version')->default(0); + $table->text('notes')->nullable(); + $table->timestamps(); + $table->softDeletes(); + + $table->index(['event_id', 'stage_id', 'start_at', 'end_at']); + $table->index('engagement_id'); + $table->index(['stage_id', 'start_at']); + }); + } + + public function down(): void + { + Schema::dropIfExists('performances'); + } +}; diff --git a/api/database/migrations/2026_05_08_100008_create_advance_sections_table.php b/api/database/migrations/2026_05_08_100008_create_advance_sections_table.php new file mode 100644 index 00000000..ae955c75 --- /dev/null +++ b/api/database/migrations/2026_05_08_100008_create_advance_sections_table.php @@ -0,0 +1,37 @@ +ulid('id')->primary(); + $table->foreignUlid('engagement_id')->constrained('artist_engagements')->cascadeOnDelete(); + $table->string('name', 80); + $table->string('type'); + $table->boolean('is_open')->default(false); + $table->datetime('open_from')->nullable(); + $table->datetime('open_to')->nullable(); + $table->integer('sort_order')->default(0); + $table->string('submission_status')->default('open'); + $table->timestamp('last_submitted_at')->nullable(); + $table->string('last_submitted_by')->nullable(); + $table->json('submission_diff')->nullable(); + $table->timestamps(); + + $table->index(['engagement_id', 'is_open']); + $table->index(['engagement_id', 'submission_status']); + }); + } + + public function down(): void + { + Schema::dropIfExists('advance_sections'); + } +}; diff --git a/api/database/migrations/2026_05_08_100009_create_advance_submissions_table.php b/api/database/migrations/2026_05_08_100009_create_advance_submissions_table.php new file mode 100644 index 00000000..1bf9f4a9 --- /dev/null +++ b/api/database/migrations/2026_05_08_100009_create_advance_submissions_table.php @@ -0,0 +1,33 @@ +ulid('id')->primary(); + $table->foreignUlid('advance_section_id')->constrained()->cascadeOnDelete(); + $table->string('submitted_by_name'); + $table->string('submitted_by_email'); + $table->timestamp('submitted_at'); + $table->string('status')->default('pending'); + $table->foreignUlid('reviewed_by')->nullable()->constrained('users')->nullOnDelete(); + $table->timestamp('reviewed_at')->nullable(); + $table->json('data'); + $table->timestamps(); + + $table->index(['advance_section_id', 'status']); + }); + } + + public function down(): void + { + Schema::dropIfExists('advance_submissions'); + } +}; diff --git a/api/database/schema/mysql-schema.sql b/api/database/schema/mysql-schema.sql index 8daf9e65..41f58fae 100644 --- a/api/database/schema/mysql-schema.sql +++ b/api/database/schema/mysql-schema.sql @@ -9,13 +9,13 @@ DROP TABLE IF EXISTS `activity_log`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `activity_log` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `log_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `subject_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `subject_id` varchar(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `event` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `causer_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `causer_id` varchar(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `log_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `description` text COLLATE utf8mb4_unicode_ci NOT NULL, + `subject_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `subject_id` varchar(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `event` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `causer_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `causer_id` varchar(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `attribute_changes` json DEFAULT NULL, `properties` json DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -30,65 +30,150 @@ DROP TABLE IF EXISTS `advance_sections`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `advance_sections` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `artist_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `type` enum('guest_list','contacts','production','custom') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `engagement_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(80) COLLATE utf8mb4_unicode_ci NOT NULL, + `type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `is_open` tinyint(1) NOT NULL DEFAULT '0', `open_from` datetime DEFAULT NULL, `open_to` datetime DEFAULT NULL, - `sort_order` int unsigned NOT NULL DEFAULT '0', - `submission_status` enum('open','pending','submitted','approved','declined') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open', + `sort_order` int NOT NULL DEFAULT '0', + `submission_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open', `last_submitted_at` timestamp NULL DEFAULT NULL, - `last_submitted_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_submitted_by` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `submission_diff` json DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), - KEY `advance_sections_artist_id_is_open_index` (`artist_id`,`is_open`), - KEY `advance_sections_artist_id_submission_status_index` (`artist_id`,`submission_status`), - CONSTRAINT `advance_sections_artist_id_foreign` FOREIGN KEY (`artist_id`) REFERENCES `artists` (`id`) ON DELETE CASCADE + KEY `advance_sections_engagement_id_is_open_index` (`engagement_id`,`is_open`), + KEY `advance_sections_engagement_id_submission_status_index` (`engagement_id`,`submission_status`), + CONSTRAINT `advance_sections_engagement_id_foreign` FOREIGN KEY (`engagement_id`) REFERENCES `artist_engagements` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `advance_submissions`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `advance_submissions` ( + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `advance_section_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `submitted_by_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `submitted_by_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `submitted_at` timestamp NOT NULL, + `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `reviewed_by` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `reviewed_at` timestamp NULL DEFAULT NULL, + `data` json NOT NULL, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `advance_submissions_reviewed_by_foreign` (`reviewed_by`), + KEY `advance_submissions_advance_section_id_status_index` (`advance_section_id`,`status`), + CONSTRAINT `advance_submissions_advance_section_id_foreign` FOREIGN KEY (`advance_section_id`) REFERENCES `advance_sections` (`id`) ON DELETE CASCADE, + CONSTRAINT `advance_submissions_reviewed_by_foreign` FOREIGN KEY (`reviewed_by`) REFERENCES `users` (`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `artist_contacts`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `artist_contacts` ( + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `artist_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `role` varchar(60) COLLATE utf8mb4_unicode_ci NOT NULL, + `is_primary` tinyint(1) NOT NULL DEFAULT '0', + `receives_briefing` tinyint(1) NOT NULL DEFAULT '0', + `receives_infosheet` tinyint(1) NOT NULL DEFAULT '0', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `artist_contacts_artist_id_role_index` (`artist_id`,`role`), + CONSTRAINT `artist_contacts_artist_id_foreign` FOREIGN KEY (`artist_id`) REFERENCES `artists` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `artist_engagements`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `artist_engagements` ( + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `artist_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `booking_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft', + `project_leader_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `fee_amount` decimal(10,2) DEFAULT NULL, + `fee_currency` varchar(3) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'EUR', + `fee_type` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `buma_applicable` tinyint(1) NOT NULL DEFAULT '1', + `buma_percentage` decimal(5,2) NOT NULL DEFAULT '7.00', + `buma_handled_by` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'organisation', + `vat_applicable` tinyint(1) NOT NULL DEFAULT '1', + `vat_percentage` decimal(5,2) NOT NULL DEFAULT '21.00', + `deal_breakdown` json DEFAULT NULL, + `deposit_percentage` decimal(5,2) DEFAULT NULL, + `deposit_due_date` date DEFAULT NULL, + `balance_due_date` date DEFAULT NULL, + `payment_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'none', + `crew_count` int NOT NULL DEFAULT '0', + `guests_count` int NOT NULL DEFAULT '0', + `requested_at` datetime DEFAULT NULL, + `option_expires_at` datetime DEFAULT NULL, + `advance_open_from` datetime DEFAULT NULL, + `advance_open_to` datetime DEFAULT NULL, + `portal_token` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `advancing_completed_count` int NOT NULL DEFAULT '0', + `advancing_total_count` int NOT NULL DEFAULT '0', + `notes` text COLLATE utf8mb4_unicode_ci, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `artist_engagements_artist_id_event_id_unique` (`artist_id`,`event_id`), + UNIQUE KEY `artist_engagements_portal_token_unique` (`portal_token`), + KEY `artist_engagements_project_leader_id_foreign` (`project_leader_id`), + KEY `artist_engagements_organisation_id_index` (`organisation_id`), + KEY `artist_engagements_event_id_booking_status_index` (`event_id`,`booking_status`), + KEY `artist_engagements_option_expires_at_index` (`option_expires_at`), + CONSTRAINT `artist_engagements_artist_id_foreign` FOREIGN KEY (`artist_id`) REFERENCES `artists` (`id`) ON DELETE CASCADE, + CONSTRAINT `artist_engagements_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE, + CONSTRAINT `artist_engagements_organisation_id_foreign` FOREIGN KEY (`organisation_id`) REFERENCES `organisations` (`id`) ON DELETE CASCADE, + CONSTRAINT `artist_engagements_project_leader_id_foreign` FOREIGN KEY (`project_leader_id`) REFERENCES `users` (`id`) ON DELETE SET NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `artists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `artists` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `booking_status` enum('concept','requested','option','confirmed','contracted','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'concept', - `star_rating` tinyint NOT NULL DEFAULT '1', - `project_leader_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `milestone_offer_in` tinyint(1) NOT NULL DEFAULT '0', - `milestone_offer_agreed` tinyint(1) NOT NULL DEFAULT '0', - `milestone_confirmed` tinyint(1) NOT NULL DEFAULT '0', - `milestone_announced` tinyint(1) NOT NULL DEFAULT '0', - `milestone_schedule_confirmed` tinyint(1) NOT NULL DEFAULT '0', - `milestone_itinerary_sent` tinyint(1) NOT NULL DEFAULT '0', - `milestone_advance_sent` tinyint(1) NOT NULL DEFAULT '0', - `milestone_advance_received` tinyint(1) NOT NULL DEFAULT '0', - `advance_open_from` datetime DEFAULT NULL, - `advance_open_to` datetime DEFAULT NULL, - `show_advance_share_page` tinyint(1) NOT NULL DEFAULT '1', - `portal_token` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL, + `default_genre_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `default_draw` int DEFAULT NULL, + `star_rating` tinyint DEFAULT NULL, + `home_base_country` varchar(2) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `agent_company_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `notes` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), - UNIQUE KEY `artists_portal_token_unique` (`portal_token`), - KEY `artists_project_leader_id_foreign` (`project_leader_id`), - KEY `artists_event_id_index` (`event_id`), - CONSTRAINT `artists_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE, - CONSTRAINT `artists_project_leader_id_foreign` FOREIGN KEY (`project_leader_id`) REFERENCES `users` (`id`) ON DELETE SET NULL + UNIQUE KEY `artists_organisation_id_slug_unique` (`organisation_id`,`slug`), + KEY `artists_organisation_id_name_index` (`organisation_id`,`name`), + KEY `artists_default_genre_id_index` (`default_genre_id`), + KEY `artists_agent_company_id_index` (`agent_company_id`), + CONSTRAINT `artists_agent_company_id_foreign` FOREIGN KEY (`agent_company_id`) REFERENCES `companies` (`id`) ON DELETE SET NULL, + CONSTRAINT `artists_default_genre_id_foreign` FOREIGN KEY (`default_genre_id`) REFERENCES `genres` (`id`) ON DELETE SET NULL, + CONSTRAINT `artists_organisation_id_foreign` FOREIGN KEY (`organisation_id`) REFERENCES `organisations` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `cache`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cache` ( - `key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `value` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `value` mediumtext COLLATE utf8mb4_unicode_ci NOT NULL, `expiration` int NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; @@ -97,8 +182,8 @@ DROP TABLE IF EXISTS `cache_locks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `cache_locks` ( - `key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `key` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `expiration` int NOT NULL, PRIMARY KEY (`key`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; @@ -107,15 +192,16 @@ DROP TABLE IF EXISTS `companies`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `companies` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `type` enum('supplier','partner','agency','venue','other') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `kvk_number` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `contact_first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `contact_last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `contact_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `contact_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `type` enum('supplier','partner','agency','venue','other') COLLATE utf8mb4_unicode_ci NOT NULL, + `handles_buma` tinyint(1) NOT NULL DEFAULT '0', + `kvk_number` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `contact_first_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `contact_last_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `contact_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `contact_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, @@ -129,11 +215,11 @@ DROP TABLE IF EXISTS `crowd_list_persons`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `crowd_list_persons` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `crowd_list_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `crowd_list_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `added_at` timestamp NOT NULL, - `added_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `added_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `crowd_list_persons_crowd_list_id_person_id_unique` (`crowd_list_id`,`person_id`), KEY `crowd_list_persons_added_by_user_id_foreign` (`added_by_user_id`), @@ -147,12 +233,12 @@ DROP TABLE IF EXISTS `crowd_lists`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `crowd_lists` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `crowd_type_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `type` enum('internal','external') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `recipient_company_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `crowd_type_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `type` enum('internal','external') COLLATE utf8mb4_unicode_ci NOT NULL, + `recipient_company_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `auto_approve` tinyint(1) NOT NULL DEFAULT '0', `max_persons` int unsigned DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -170,12 +256,12 @@ DROP TABLE IF EXISTS `crowd_types`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `crowd_types` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `system_type` enum('CREW','GUEST','ARTIST','VOLUNTEER','PRESS','PARTNER','SUPPLIER') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `color` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#6366f1', - `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `system_type` enum('CREW','GUEST','ARTIST','VOLUNTEER','PRESS','PARTNER','SUPPLIER') COLLATE utf8mb4_unicode_ci NOT NULL, + `color` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#6366f1', + `icon` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -188,13 +274,13 @@ DROP TABLE IF EXISTS `email_change_requests`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `email_change_requests` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `current_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `new_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `requested_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `current_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `new_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `requested_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', `expires_at` timestamp NOT NULL, `verified_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -211,22 +297,22 @@ DROP TABLE IF EXISTS `email_logs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `email_logs` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `recipient_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `recipient_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `mailable_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `template_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `subject` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'queued', - `error_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `recipient_email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `recipient_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `mailable_class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `template_type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `subject` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'queued', + `error_message` text COLLATE utf8mb4_unicode_ci, `queued_at` timestamp NOT NULL, `sent_at` timestamp NULL DEFAULT NULL, `failed_at` timestamp NULL DEFAULT NULL, - `triggered_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `triggered_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -243,9 +329,9 @@ DROP TABLE IF EXISTS `event_person_activations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `event_person_activations` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `event_person_activations_event_id_person_id_unique` (`event_id`,`person_id`), KEY `event_person_activations_person_id_index` (`person_id`), @@ -258,10 +344,10 @@ DROP TABLE IF EXISTS `event_user_roles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `event_user_roles` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `role` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -275,24 +361,24 @@ DROP TABLE IF EXISTS `events`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `events` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `parent_event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_event_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `start_date` date NOT NULL, `end_date` date NOT NULL, - `timezone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Europe/Amsterdam', - `status` enum('draft','published','registration_open','buildup','showday','teardown','closed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft', - `event_type` enum('event','festival','series') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'event', - `event_type_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `sub_event_label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `timezone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Europe/Amsterdam', + `status` enum('draft','published','registration_open','buildup','showday','teardown','closed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft', + `event_type` enum('event','festival','series') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'event', + `event_type_label` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sub_event_label` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_recurring` tinyint(1) NOT NULL DEFAULT '0', - `recurrence_rule` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `recurrence_rule` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `recurrence_exceptions` json DEFAULT NULL, - `registration_banner_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `registration_welcome_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `registration_logo_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `registration_banner_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `registration_welcome_text` text COLLATE utf8mb4_unicode_ci, + `registration_logo_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `registration_show_section_preferences` tinyint(1) NOT NULL DEFAULT '1', `registration_show_availability` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, @@ -311,11 +397,11 @@ DROP TABLE IF EXISTS `failed_jobs`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `failed_jobs` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `uuid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `connection` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `queue` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `exception` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `uuid` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `connection` text COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` text COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `exception` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `failed_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), UNIQUE KEY `failed_jobs_uuid_unique` (`uuid`) @@ -325,23 +411,23 @@ DROP TABLE IF EXISTS `festival_sections`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `festival_sections` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `type` enum('standard','cross_event') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'standard', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `category` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `icon` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `type` enum('standard','cross_event') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'standard', `crew_need` int unsigned DEFAULT NULL, `sort_order` int unsigned NOT NULL DEFAULT '0', `crew_auto_accepts` tinyint(1) NOT NULL DEFAULT '0', `crew_invited_to_events` tinyint(1) NOT NULL DEFAULT '0', `added_to_timeline` tinyint(1) NOT NULL DEFAULT '0', `responder_self_checkin` tinyint(1) NOT NULL DEFAULT '1', - `crew_accreditation_level` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `public_form_accreditation_level` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `crew_accreditation_level` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_form_accreditation_level` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `timed_accreditations` tinyint(1) NOT NULL DEFAULT '0', `show_in_registration` tinyint(1) NOT NULL DEFAULT '0', - `registration_description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `registration_description` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, @@ -355,14 +441,14 @@ DROP TABLE IF EXISTS `form_field_bindings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_bindings` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `target_entity` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `target_attribute` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `mode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `sync_direction` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `merge_strategy` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'overwrite', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_type` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `target_entity` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `target_attribute` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `mode` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, + `sync_direction` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `merge_strategy` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'overwrite', `trust_level` tinyint unsigned NOT NULL DEFAULT '50', `is_identity_key` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -377,10 +463,10 @@ DROP TABLE IF EXISTS `form_field_conditional_logic_conditions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_conditional_logic_conditions` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `group_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `field_slug` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `comparison_operator` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `group_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `field_slug` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `comparison_operator` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `value` json DEFAULT NULL, `sort_order` int unsigned NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -395,10 +481,10 @@ DROP TABLE IF EXISTS `form_field_conditional_logic_groups`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_conditional_logic_groups` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_field_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `parent_group_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `operator` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_field_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `parent_group_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `operator` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL, `sort_order` int unsigned NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -413,10 +499,10 @@ DROP TABLE IF EXISTS `form_field_configs`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_configs` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `config_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_type` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `config_type` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `parameters` json NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -430,17 +516,17 @@ DROP TABLE IF EXISTS `form_field_library`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_library` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `field_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `help_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `field_type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `label` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `help_text` text COLLATE utf8mb4_unicode_ci, `default_is_required` tinyint(1) NOT NULL DEFAULT '0', `default_is_filterable` tinyint(1) NOT NULL DEFAULT '0', `translations` json DEFAULT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `description` text COLLATE utf8mb4_unicode_ci, `usage_count` int unsigned NOT NULL DEFAULT '0', `is_system` tinyint(1) NOT NULL DEFAULT '0', `is_active` tinyint(1) NOT NULL DEFAULT '1', @@ -457,11 +543,11 @@ DROP TABLE IF EXISTS `form_field_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_options` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_type` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `label` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `sort_order` int unsigned NOT NULL DEFAULT '0', `translations` json DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -475,12 +561,12 @@ DROP TABLE IF EXISTS `form_field_validation_rules`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_field_validation_rules` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `rule_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_type` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `rule_type` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, `parameters` json NOT NULL, - `error_message_key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `error_message_key` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -493,25 +579,25 @@ DROP TABLE IF EXISTS `form_fields`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_fields` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_section_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `library_field_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `field_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `label` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `help_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `section` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_section_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `library_field_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `field_type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL, + `label` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `help_text` text COLLATE utf8mb4_unicode_ci, + `section` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_required` tinyint(1) NOT NULL DEFAULT '0', `is_filterable` tinyint(1) NOT NULL DEFAULT '0', `is_portal_visible` tinyint(1) NOT NULL DEFAULT '1', `is_admin_only` tinyint(1) NOT NULL DEFAULT '0', `is_unique` tinyint(1) NOT NULL DEFAULT '0', `is_pii` tinyint(1) NOT NULL DEFAULT '0', - `display_width` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'full', + `display_width` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'full', `role_restrictions` json DEFAULT NULL, `translations` json DEFAULT NULL, - `value_storage_hint` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'json', + `value_storage_hint` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'json', `review_required` tinyint(1) NOT NULL DEFAULT '0', `sort_order` int unsigned NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -532,14 +618,14 @@ DROP TABLE IF EXISTS `form_schema_sections`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_schema_sections` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `description` text COLLATE utf8mb4_unicode_ci, `sort_order` int unsigned NOT NULL DEFAULT '0', `submit_independent` tinyint(1) NOT NULL DEFAULT '1', - `depends_on_section_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `depends_on_section_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `required_for_schema_submit` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -556,12 +642,12 @@ DROP TABLE IF EXISTS `form_schema_webhooks`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_schema_webhooks` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `trigger_event` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `url` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `secret` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `trigger_event` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `url` text COLLATE utf8mb4_unicode_ci NOT NULL, + `secret` text COLLATE utf8mb4_unicode_ci, `is_active` tinyint(1) NOT NULL DEFAULT '1', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -574,34 +660,34 @@ DROP TABLE IF EXISTS `form_schemas`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_schemas` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `owner_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `owner_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `purpose` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `default_crowd_type_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `owner_type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `owner_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `purpose` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `default_crowd_type_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `description` text COLLATE utf8mb4_unicode_ci, `is_published` tinyint(1) NOT NULL DEFAULT '0', - `submission_mode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `public_token` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `public_token_previous` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `submission_mode` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, + `public_token` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_token_previous` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `public_token_rotated_at` timestamp NULL DEFAULT NULL, `submission_deadline` timestamp NULL DEFAULT NULL, - `locale` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'nl', + `locale` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'nl', `settings` json DEFAULT NULL, `version` int unsigned NOT NULL DEFAULT '1', - `snapshot_mode` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'never', + `snapshot_mode` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'never', `freeze_on_submit` tinyint(1) NOT NULL DEFAULT '0', `retention_days` int unsigned DEFAULT NULL, - `consent_version` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `consent_version` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `section_level_submit` tinyint(1) NOT NULL DEFAULT '0', `auto_save_enabled` tinyint(1) NOT NULL DEFAULT '0', `max_submissions` int unsigned DEFAULT NULL, - `created_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `last_updated_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `edit_lock_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `created_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `last_updated_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `edit_lock_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `edit_lock_expires_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -628,13 +714,13 @@ DROP TABLE IF EXISTS `form_submission_action_failure_retry_attempts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_submission_action_failure_retry_attempts` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_action_failure_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_action_failure_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `attempted_at` timestamp NOT NULL, - `attempted_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `outcome` enum('succeeded','failed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `exception_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `exception_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `attempted_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `outcome` enum('succeeded','failed') COLLATE utf8mb4_unicode_ci NOT NULL, + `exception_class` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `exception_message` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -648,23 +734,23 @@ DROP TABLE IF EXISTS `form_submission_action_failures`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_submission_action_failures` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `listener_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `binding_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `listener_class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `binding_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `failed_at` timestamp NOT NULL, - `exception_class` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `exception_message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `exception_trace` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `exception_class` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `exception_message` text COLLATE utf8mb4_unicode_ci NOT NULL, + `exception_trace` longtext COLLATE utf8mb4_unicode_ci, `context` json NOT NULL, `retry_count` tinyint unsigned NOT NULL DEFAULT '0', `resolved_at` timestamp NULL DEFAULT NULL, - `resolved_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `resolved_note` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `resolved_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `resolved_note` text COLLATE utf8mb4_unicode_ci, `dismissed_at` timestamp NULL DEFAULT NULL, - `dismissed_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `dismissed_reason_type` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `dismissed_reason_note` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `dismissed_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `dismissed_reason_type` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `dismissed_reason_note` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -686,13 +772,13 @@ DROP TABLE IF EXISTS `form_submission_delegations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_submission_delegations` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `delegated_to_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `delegated_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `delegated_to_user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `delegated_by_user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `granted_at` timestamp NOT NULL, `revoked_at` timestamp NULL DEFAULT NULL, - `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `message` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -708,14 +794,14 @@ DROP TABLE IF EXISTS `form_submission_section_statuses`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_submission_section_statuses` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_section_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `status` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_section_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `status` varchar(30) COLLATE utf8mb4_unicode_ci NOT NULL, `submitted_at` timestamp NULL DEFAULT NULL, - `reviewed_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `reviewed_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `reviewed_at` timestamp NULL DEFAULT NULL, - `review_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `review_notes` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -731,39 +817,39 @@ DROP TABLE IF EXISTS `form_submissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_submissions` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `subject_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `subject_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `submitted_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `public_submitter_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `public_submitter_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `public_submitter_ip` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `subject_type` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `subject_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `submitted_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_submitter_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_submitter_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `public_submitter_ip` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `public_submitter_ip_anonymised_at` timestamp NULL DEFAULT NULL, - `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `review_status` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `reviewed_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, + `review_status` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `reviewed_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `reviewed_at` timestamp NULL DEFAULT NULL, - `review_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `review_notes` text COLLATE utf8mb4_unicode_ci, `submitted_at` timestamp NULL DEFAULT NULL, `schema_version_at_submit` int unsigned DEFAULT NULL, `schema_snapshot` json DEFAULT NULL, `is_test` tinyint(1) NOT NULL DEFAULT '0', - `submitted_in_locale` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `submitted_in_locale` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `opened_at` timestamp NULL DEFAULT NULL, `schema_version_at_open` int unsigned DEFAULT NULL, `first_interacted_at` timestamp NULL DEFAULT NULL, `submission_duration_seconds` int unsigned DEFAULT NULL, `auto_save_count` int unsigned NOT NULL DEFAULT '0', - `idempotency_key` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `idempotency_key` varchar(30) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `anonymised_at` timestamp NULL DEFAULT NULL, - `identity_match_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `apply_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `identity_match_status` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `apply_status` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `failure_response_code` varchar(40) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `apply_completed_at` timestamp NULL DEFAULT NULL, - `search_index` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `search_index` mediumtext COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, @@ -792,12 +878,12 @@ DROP TABLE IF EXISTS `form_templates`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_templates` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `purpose` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `purpose` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `description` text COLLATE utf8mb4_unicode_ci, `schema_snapshot` json NOT NULL, `is_system` tinyint(1) NOT NULL DEFAULT '0', `is_active` tinyint(1) NOT NULL DEFAULT '1', @@ -813,11 +899,11 @@ DROP TABLE IF EXISTS `form_value_options`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_value_options` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_value_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_field_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `option_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_value_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_field_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `option_value` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `fvo_field_option_idx` (`form_field_id`,`option_value`), KEY `fvo_submission_idx` (`form_submission_id`), @@ -831,11 +917,11 @@ DROP TABLE IF EXISTS `form_values`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_values` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_field_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_field_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `value` json NOT NULL, - `value_indexed` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `value_indexed` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `value_number` decimal(15,4) DEFAULT NULL, `value_date` date DEFAULT NULL, `value_bool` tinyint(1) DEFAULT NULL, @@ -855,15 +941,15 @@ DROP TABLE IF EXISTS `form_webhook_deliveries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `form_webhook_deliveries` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_schema_webhook_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `form_submission_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `trigger_event` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_schema_webhook_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `form_submission_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `trigger_event` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `status` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, `attempts` int unsigned NOT NULL DEFAULT '0', `last_attempt_at` timestamp NULL DEFAULT NULL, `response_status` smallint unsigned DEFAULT NULL, - `response_body_excerpt` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `response_body_excerpt` text COLLATE utf8mb4_unicode_ci, `next_retry_at` timestamp NULL DEFAULT NULL, `delivered_at` timestamp NULL DEFAULT NULL, `failed_permanently_at` timestamp NULL DEFAULT NULL, @@ -876,21 +962,38 @@ CREATE TABLE `form_webhook_deliveries` ( CONSTRAINT `form_webhook_deliveries_form_submission_id_foreign` FOREIGN KEY (`form_submission_id`) REFERENCES `form_submissions` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `genres`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `genres` ( + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL, + `color` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `sort_order` int NOT NULL DEFAULT '0', + `is_active` tinyint(1) NOT NULL DEFAULT '1', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `genres_organisation_id_name_unique` (`organisation_id`,`name`), + CONSTRAINT `genres_organisation_id_foreign` FOREIGN KEY (`organisation_id`) REFERENCES `organisations` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `impersonation_sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `impersonation_sessions` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `admin_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `target_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `reason` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `mfa_method` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `admin_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `target_user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `reason` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `mfa_method` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, + `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_agent` text COLLATE utf8mb4_unicode_ci, `started_at` timestamp NOT NULL, `ended_at` timestamp NULL DEFAULT NULL, `expires_at` timestamp NOT NULL, - `end_reason` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `end_reason` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `actions_count` int unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`id`), KEY `impersonation_sessions_admin_id_ended_at_index` (`admin_id`,`ended_at`), @@ -904,13 +1007,13 @@ DROP TABLE IF EXISTS `job_batches`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `job_batches` ( - `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `total_jobs` int NOT NULL, `pending_jobs` int NOT NULL, `failed_jobs` int NOT NULL, - `failed_job_ids` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `options` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `failed_job_ids` longtext COLLATE utf8mb4_unicode_ci NOT NULL, + `options` mediumtext COLLATE utf8mb4_unicode_ci, `cancelled_at` int DEFAULT NULL, `created_at` int NOT NULL, `finished_at` int DEFAULT NULL, @@ -922,8 +1025,8 @@ DROP TABLE IF EXISTS `jobs`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `jobs` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `queue` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `queue` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `attempts` tinyint unsigned NOT NULL, `reserved_at` int unsigned DEFAULT NULL, `available_at` int unsigned NOT NULL, @@ -936,14 +1039,14 @@ DROP TABLE IF EXISTS `locations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `locations` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `address` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `lat` decimal(10,8) DEFAULT NULL, `lng` decimal(11,8) DEFAULT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `access_instructions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `description` text COLLATE utf8mb4_unicode_ci, + `access_instructions` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -955,9 +1058,9 @@ DROP TABLE IF EXISTS `mfa_backup_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `mfa_backup_codes` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `code_hash` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `code_hash` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, `used` tinyint(1) NOT NULL DEFAULT '0', `used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -971,9 +1074,9 @@ DROP TABLE IF EXISTS `mfa_email_codes`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `mfa_email_codes` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `code` varchar(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `code` varchar(6) COLLATE utf8mb4_unicode_ci NOT NULL, `expires_at` timestamp NOT NULL, `used` tinyint(1) NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -988,7 +1091,7 @@ DROP TABLE IF EXISTS `migrations`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `migrations` ( `id` int unsigned NOT NULL AUTO_INCREMENT, - `migration` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `migration` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `batch` int NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; @@ -998,8 +1101,8 @@ DROP TABLE IF EXISTS `model_has_permissions`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `model_has_permissions` ( `permission_id` bigint unsigned NOT NULL, - `model_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `model_id` varchar(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `model_id` varchar(26) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`permission_id`,`model_id`,`model_type`), KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`), CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE @@ -1010,8 +1113,8 @@ DROP TABLE IF EXISTS `model_has_roles`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `model_has_roles` ( `role_id` bigint unsigned NOT NULL, - `model_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `model_id` varchar(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `model_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `model_id` varchar(26) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`role_id`,`model_id`,`model_type`), KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`), CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE @@ -1021,14 +1124,14 @@ DROP TABLE IF EXISTS `organisation_email_settings`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `organisation_email_settings` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `logo_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `primary_color` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#6366F1', - `secondary_color` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#4F46E5', - `footer_text` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `reply_to_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `reply_to_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `logo_url` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `primary_color` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#6366F1', + `secondary_color` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '#4F46E5', + `footer_text` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `reply_to_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `reply_to_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1040,13 +1143,13 @@ DROP TABLE IF EXISTS `organisation_email_templates`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `organisation_email_templates` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `subject` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `heading` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `body_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `button_text` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `type` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `subject` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL, + `heading` varchar(200) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `body_text` text COLLATE utf8mb4_unicode_ci NOT NULL, + `button_text` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1058,10 +1161,10 @@ DROP TABLE IF EXISTS `organisation_user`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `organisation_user` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `role` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1075,21 +1178,21 @@ DROP TABLE IF EXISTS `organisations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `organisations` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `slug` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `contact_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `contact_email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `website` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `billing_status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'trial', - `default_locale` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'nl', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `contact_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `contact_email` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `website` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `billing_status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'trial', + `default_locale` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'nl', `settings` json DEFAULT NULL, - `email_logo_url` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `email_primary_color` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `email_reply_to` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `email_sender_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `email_footer_text` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `email_logo_url` varchar(500) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_primary_color` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_reply_to` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_sender_name` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email_footer_text` text COLLATE utf8mb4_unicode_ci, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, @@ -1101,19 +1204,44 @@ DROP TABLE IF EXISTS `password_reset_tokens`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `password_reset_tokens` ( - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `performances`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `performances` ( + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `engagement_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `stage_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `lane` tinyint unsigned NOT NULL DEFAULT '0', + `start_at` datetime NOT NULL, + `end_at` datetime NOT NULL, + `version` int NOT NULL DEFAULT '0', + `notes` text COLLATE utf8mb4_unicode_ci, + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + `deleted_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + KEY `performances_event_id_stage_id_start_at_end_at_index` (`event_id`,`stage_id`,`start_at`,`end_at`), + KEY `performances_engagement_id_index` (`engagement_id`), + KEY `performances_stage_id_start_at_index` (`stage_id`,`start_at`), + CONSTRAINT `performances_engagement_id_foreign` FOREIGN KEY (`engagement_id`) REFERENCES `artist_engagements` (`id`) ON DELETE CASCADE, + CONSTRAINT `performances_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE, + CONSTRAINT `performances_stage_id_foreign` FOREIGN KEY (`stage_id`) REFERENCES `stages` (`id`) ON DELETE SET NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `permissions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `permissions` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `guard_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1124,20 +1252,20 @@ DROP TABLE IF EXISTS `person_identity_matches`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `person_identity_matches` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `matched_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `matched_on` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `confidence` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `status` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `matched_user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `matched_on` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `confidence` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `status` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', `match_details` json DEFAULT NULL, - `confirmed_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `confirmed_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `confirmed_at` timestamp NULL DEFAULT NULL, - `dismissed_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `dismissed_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `dismissed_at` timestamp NULL DEFAULT NULL, - `reverted_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `reverted_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `reverted_at` timestamp NULL DEFAULT NULL, - `resolved_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `resolved_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `resolved_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1161,9 +1289,9 @@ DROP TABLE IF EXISTS `person_section_preferences`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `person_section_preferences` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `festival_section_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `festival_section_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `priority` tinyint NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `psp_person_section_unique` (`person_id`,`festival_section_id`), @@ -1177,12 +1305,12 @@ DROP TABLE IF EXISTS `person_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `person_tags` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `category` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `icon` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `color` varchar(7) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL, + `category` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `icon` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `color` varchar(7) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `is_active` tinyint(1) NOT NULL DEFAULT '1', `sort_order` int NOT NULL DEFAULT '0', `created_at` timestamp NULL DEFAULT NULL, @@ -1198,11 +1326,11 @@ DROP TABLE IF EXISTS `personal_access_tokens`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `personal_access_tokens` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `tokenable_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `tokenable_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `token` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `abilities` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `tokenable_type` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `tokenable_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `abilities` text COLLATE utf8mb4_unicode_ci, `last_used_at` timestamp NULL DEFAULT NULL, `expires_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -1217,21 +1345,21 @@ DROP TABLE IF EXISTS `persons`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `persons` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `crowd_type_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `company_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `crowd_type_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `company_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `date_of_birth` date DEFAULT NULL, - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `status` enum('invited','applied','pending','approved','rejected','no_show') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', - `registration_source` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'organizer', + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `status` enum('invited','applied','pending','approved','rejected','no_show') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `registration_source` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'organizer', `is_blacklisted` tinyint(1) NOT NULL DEFAULT '0', - `admin_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `remarks` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `admin_notes` text COLLATE utf8mb4_unicode_ci, + `remarks` text COLLATE utf8mb4_unicode_ci, `custom_fields` json DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -1265,8 +1393,8 @@ DROP TABLE IF EXISTS `roles`; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `roles` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `guard_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `guard_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), @@ -1277,11 +1405,11 @@ DROP TABLE IF EXISTS `sessions`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `sessions` ( - `id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `user_agent` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `payload` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `user_agent` text COLLATE utf8mb4_unicode_ci, + `payload` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `last_activity` int NOT NULL, PRIMARY KEY (`id`), KEY `sessions_user_id_index` (`user_id`), @@ -1292,12 +1420,12 @@ DROP TABLE IF EXISTS `shift_absences`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift_absences` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `shift_assignment_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `reason` enum('sick','personal','other') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `shift_assignment_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `reason` enum('sick','personal','other') COLLATE utf8mb4_unicode_ci NOT NULL, `reported_at` timestamp NOT NULL, - `status` enum('open','filled','closed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open', + `status` enum('open','filled','closed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'open', `closed_at` timestamp NULL DEFAULT NULL, PRIMARY KEY (`id`), KEY `shift_absences_person_id_foreign` (`person_id`), @@ -1311,19 +1439,19 @@ DROP TABLE IF EXISTS `shift_assignments`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift_assignments` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `shift_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `time_slot_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `status` enum('pending_approval','approved','rejected','cancelled','completed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending_approval', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `shift_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `time_slot_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `status` enum('pending_approval','approved','rejected','cancelled','completed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending_approval', `auto_approved` tinyint(1) NOT NULL DEFAULT '0', - `assigned_by` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `assigned_by` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `assigned_at` timestamp NULL DEFAULT NULL, - `approved_by` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `approved_by` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `approved_at` timestamp NULL DEFAULT NULL, - `rejection_reason` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `cancelled_by` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `cancellation_source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `rejection_reason` text COLLATE utf8mb4_unicode_ci, + `cancelled_by` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `cancellation_source` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `cancelled_at` timestamp NULL DEFAULT NULL, `hours_expected` decimal(4,2) DEFAULT NULL, `hours_completed` decimal(4,2) DEFAULT NULL, @@ -1352,14 +1480,14 @@ DROP TABLE IF EXISTS `shift_check_ins`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift_check_ins` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `shift_assignment_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `shift_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `shift_assignment_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `shift_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `checked_in_at` timestamp NOT NULL, `checked_out_at` timestamp NULL DEFAULT NULL, - `checked_in_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `method` enum('qr','manual') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `checked_in_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `method` enum('qr','manual') COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`id`), KEY `shift_check_ins_checked_in_by_user_id_foreign` (`checked_in_by_user_id`), KEY `shift_check_ins_shift_assignment_id_index` (`shift_assignment_id`), @@ -1375,12 +1503,12 @@ DROP TABLE IF EXISTS `shift_swap_requests`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift_swap_requests` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `from_assignment_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `to_person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `message` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `status` enum('pending','accepted','rejected','cancelled','completed') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', - `reviewed_by` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `from_assignment_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `to_person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `message` text COLLATE utf8mb4_unicode_ci, + `status` enum('pending','accepted','rejected','cancelled','completed') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `reviewed_by` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `reviewed_at` timestamp NULL DEFAULT NULL, `auto_approved` tinyint(1) NOT NULL DEFAULT '0', PRIMARY KEY (`id`), @@ -1396,9 +1524,9 @@ DROP TABLE IF EXISTS `shift_waitlist`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shift_waitlist` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `shift_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `shift_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `position` int unsigned NOT NULL, `added_at` timestamp NOT NULL, `notified_at` timestamp NULL DEFAULT NULL, @@ -1414,15 +1542,15 @@ DROP TABLE IF EXISTS `shifts`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `shifts` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `festival_section_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `time_slot_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `location_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `festival_section_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `time_slot_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `location_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `report_time` time DEFAULT NULL, - `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `description` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `instructions` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `coordinator_notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `description` text COLLATE utf8mb4_unicode_ci, + `instructions` text COLLATE utf8mb4_unicode_ci, + `coordinator_notes` text COLLATE utf8mb4_unicode_ci, `slots_total` int unsigned NOT NULL, `slots_open_for_claiming` int unsigned NOT NULL, `is_lead_role` tinyint(1) NOT NULL DEFAULT '0', @@ -1430,9 +1558,9 @@ CREATE TABLE `shifts` ( `actual_end_time` time DEFAULT NULL, `end_date` date DEFAULT NULL, `allow_overlap` tinyint(1) NOT NULL DEFAULT '0', - `assigned_crew_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `assigned_crew_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `events_during_shift` json DEFAULT NULL, - `status` enum('draft','open','full','in_progress','completed','cancelled') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft', + `status` enum('draft','open','full','in_progress','completed','cancelled') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'draft', `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, @@ -1447,17 +1575,49 @@ CREATE TABLE `shifts` ( CONSTRAINT `shifts_time_slot_id_foreign` FOREIGN KEY (`time_slot_id`) REFERENCES `time_slots` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `stage_days`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `stage_days` ( + `id` bigint unsigned NOT NULL AUTO_INCREMENT, + `stage_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `stage_days_stage_id_event_id_unique` (`stage_id`,`event_id`), + KEY `stage_days_event_id_index` (`event_id`), + CONSTRAINT `stage_days_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE, + CONSTRAINT `stage_days_stage_id_foreign` FOREIGN KEY (`stage_id`) REFERENCES `stages` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; +DROP TABLE IF EXISTS `stages`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!50503 SET character_set_client = utf8mb4 */; +CREATE TABLE `stages` ( + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(120) COLLATE utf8mb4_unicode_ci NOT NULL, + `color` varchar(7) COLLATE utf8mb4_unicode_ci NOT NULL, + `capacity` int DEFAULT NULL, + `sort_order` int NOT NULL DEFAULT '0', + `created_at` timestamp NULL DEFAULT NULL, + `updated_at` timestamp NULL DEFAULT NULL, + PRIMARY KEY (`id`), + UNIQUE KEY `stages_event_id_name_unique` (`event_id`,`name`), + KEY `stages_event_id_sort_order_index` (`event_id`,`sort_order`), + CONSTRAINT `stages_event_id_foreign` FOREIGN KEY (`event_id`) REFERENCES `events` (`id`) ON DELETE CASCADE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; +/*!40101 SET character_set_client = @saved_cs_client */; DROP TABLE IF EXISTS `telescope_entries`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `telescope_entries` ( `sequence` bigint unsigned NOT NULL AUTO_INCREMENT, - `uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `batch_id` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `family_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, + `batch_id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, + `family_hash` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `should_display_on_index` tinyint(1) NOT NULL DEFAULT '1', - `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `type` varchar(20) COLLATE utf8mb4_unicode_ci NOT NULL, + `content` longtext COLLATE utf8mb4_unicode_ci NOT NULL, `created_at` datetime DEFAULT NULL, PRIMARY KEY (`sequence`), UNIQUE KEY `telescope_entries_uuid_unique` (`uuid`), @@ -1471,8 +1631,8 @@ DROP TABLE IF EXISTS `telescope_entries_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `telescope_entries_tags` ( - `entry_uuid` char(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `entry_uuid` char(36) COLLATE utf8mb4_unicode_ci NOT NULL, + `tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`entry_uuid`,`tag`), KEY `telescope_entries_tags_tag_index` (`tag`), CONSTRAINT `telescope_entries_tags_entry_uuid_foreign` FOREIGN KEY (`entry_uuid`) REFERENCES `telescope_entries` (`uuid`) ON DELETE CASCADE @@ -1482,7 +1642,7 @@ DROP TABLE IF EXISTS `telescope_monitoring`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `telescope_monitoring` ( - `tag` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `tag` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, PRIMARY KEY (`tag`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; /*!40101 SET character_set_client = @saved_cs_client */; @@ -1490,10 +1650,10 @@ DROP TABLE IF EXISTS `time_slots`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `time_slots` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_type` enum('CREW','VOLUNTEER','PRESS','PHOTO','PARTNER') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'VOLUNTEER', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_type` enum('CREW','VOLUNTEER','PRESS','PHOTO','PARTNER') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'VOLUNTEER', `date` date NOT NULL, `start_time` time NOT NULL, `end_time` time NOT NULL, @@ -1509,11 +1669,11 @@ DROP TABLE IF EXISTS `trusted_devices`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `trusted_devices` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `device_hash` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `device_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `ip_address` varchar(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `device_hash` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `device_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `ip_address` varchar(45) COLLATE utf8mb4_unicode_ci NOT NULL, `trusted_until` timestamp NOT NULL, `last_used_at` timestamp NULL DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, @@ -1527,14 +1687,14 @@ DROP TABLE IF EXISTS `user_invitations`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_invitations` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `invited_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `event_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `role` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `token` char(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `status` enum('pending','accepted','expired') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `invited_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `event_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `role` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `token` char(64) COLLATE utf8mb4_unicode_ci NOT NULL, + `status` enum('pending','accepted','expired') COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'pending', `expires_at` timestamp NOT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, @@ -1553,14 +1713,14 @@ DROP TABLE IF EXISTS `user_organisation_tags`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_organisation_tags` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `organisation_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_tag_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `source` enum('self_reported','organiser_assigned') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `assigned_by_user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `proficiency` enum('beginner','experienced','expert') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `notes` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `organisation_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_tag_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `source` enum('self_reported','organiser_assigned') COLLATE utf8mb4_unicode_ci NOT NULL, + `assigned_by_user_id` char(26) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `proficiency` enum('beginner','experienced','expert') COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `notes` text COLLATE utf8mb4_unicode_ci, `assigned_at` timestamp NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `uot_user_org_tag_source_unique` (`user_id`,`organisation_id`,`person_tag_id`,`source`), @@ -1578,12 +1738,12 @@ DROP TABLE IF EXISTS `user_profiles`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `user_profiles` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `user_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `bio` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, - `photo_url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `emergency_contact_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `emergency_contact_phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `user_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `bio` text COLLATE utf8mb4_unicode_ci, + `photo_url` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `emergency_contact_name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `emergency_contact_phone` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `reliability_score` decimal(3,2) NOT NULL DEFAULT '0.00', `is_ambassador` tinyint(1) NOT NULL DEFAULT '0', `settings` json DEFAULT NULL, @@ -1599,23 +1759,23 @@ DROP TABLE IF EXISTS `users`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `users` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `first_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `last_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `first_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `last_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `date_of_birth` date DEFAULT NULL, - `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `phone` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `mfa_enabled` tinyint(1) NOT NULL DEFAULT '0', - `mfa_method` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `mfa_secret` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `mfa_method` varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `mfa_secret` text COLLATE utf8mb4_unicode_ci, `mfa_confirmed_at` timestamp NULL DEFAULT NULL, `mfa_enforced` tinyint(1) NOT NULL DEFAULT '0', `email_verified_at` timestamp NULL DEFAULT NULL, - `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `timezone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Europe/Amsterdam', - `locale` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'nl', - `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, - `remember_token` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, + `timezone` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Europe/Amsterdam', + `locale` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'nl', + `avatar` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL, + `remember_token` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL, `created_at` timestamp NULL DEFAULT NULL, `updated_at` timestamp NULL DEFAULT NULL, `deleted_at` timestamp NULL DEFAULT NULL, @@ -1627,9 +1787,9 @@ DROP TABLE IF EXISTS `volunteer_availabilities`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!50503 SET character_set_client = utf8mb4 */; CREATE TABLE `volunteer_availabilities` ( - `id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `person_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, - `time_slot_id` char(26) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `person_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, + `time_slot_id` char(26) COLLATE utf8mb4_unicode_ci NOT NULL, `preference_level` tinyint NOT NULL DEFAULT '3', `submitted_at` timestamp NOT NULL, PRIMARY KEY (`id`), @@ -1671,108 +1831,116 @@ INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (19,'2026_04_08_130 INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (20,'2026_04_08_140000_create_shift_assignments_table',1); INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (21,'2026_04_08_150000_create_shift_check_ins_table',1); INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (22,'2026_04_08_160000_create_volunteer_availabilities_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (23,'2026_04_08_170000_create_artists_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (24,'2026_04_08_180000_create_advance_sections_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (25,'2026_04_08_200000_create_crowd_types_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (26,'2026_04_08_205712_add_category_and_icon_to_festival_sections_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (27,'2026_04_08_210000_create_companies_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (28,'2026_04_08_220000_create_persons_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (29,'2026_04_08_230000_create_crowd_lists_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (30,'2026_04_08_240000_create_crowd_list_persons_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (31,'2026_04_08_250000_add_person_foreign_keys_to_existing_tables',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (32,'2026_04_08_300000_add_shifts_extras_and_waitlist_tables',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (33,'2026_04_08_310000_drop_unique_person_timeslot_on_shift_assignments',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (34,'2026_04_08_320000_fix_activity_log_morphs_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (35,'2026_04_08_400000_add_festival_columns_to_events_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (36,'2026_04_08_410000_create_event_person_activations_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (37,'2026_04_10_100000_add_registration_branding_to_events_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (38,'2026_04_10_100000_create_person_tags_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (39,'2026_04_10_110000_create_user_organisation_tags_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (40,'2026_04_10_193837_add_cancellation_tracking_to_shift_assignments',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (41,'2026_04_10_200000_create_person_identity_matches_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (42,'2026_04_10_300000_add_registration_fields_to_festival_sections_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (43,'2026_04_10_400000_split_name_into_first_last_on_users_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (44,'2026_04_10_400001_split_name_into_first_last_on_persons_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (45,'2026_04_10_400002_split_contact_name_on_companies_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (46,'2026_04_10_500000_add_date_of_birth_to_persons_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (47,'2026_04_12_100000_add_remarks_to_persons_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (48,'2026_04_12_100001_add_registration_toggles_to_events_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (49,'2026_04_12_200000_create_registration_field_templates_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (50,'2026_04_12_200001_create_registration_form_fields_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (51,'2026_04_12_200002_create_person_field_values_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (52,'2026_04_12_200003_create_person_section_preferences_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (53,'2026_04_13_100000_add_email_branding_to_organisations_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (54,'2026_04_14_100000_update_token_columns_for_hashed_storage',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (55,'2026_04_14_200000_add_date_of_birth_to_users_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (56,'2026_04_14_200001_enhance_person_identity_matches_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (57,'2026_04_14_300000_create_email_change_requests_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (58,'2026_04_15_100000_create_organisation_email_settings_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (59,'2026_04_15_100001_create_organisation_email_templates_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (60,'2026_04_15_100002_create_email_logs_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (61,'2026_04_15_200000_add_mfa_columns_to_users_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (62,'2026_04_15_200001_create_mfa_backup_codes_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (63,'2026_04_15_200002_create_trusted_devices_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (64,'2026_04_15_200003_create_mfa_email_codes_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (65,'2026_04_16_000000_add_phone_to_users_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (66,'2026_04_16_100000_create_impersonation_sessions_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (67,'2026_04_16_142626_remove_section_from_registration_fields_tables',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (68,'2026_04_17_100000_add_registration_source_to_persons_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (69,'2026_04_17_200000_add_display_width_to_registration_fields_tables',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (70,'2026_04_18_100000_change_tag_category_to_tag_categories_on_registration_fields',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (71,'2026_04_18_100001_update_partner_crowd_type_icon',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (72,'2026_04_18_110000_add_contact_fields_to_organisations_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (73,'2026_04_19_100000_create_user_profiles_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (74,'2026_04_19_100001_populate_user_profiles_from_existing_users',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (75,'2026_04_19_100002_create_form_schemas_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (76,'2026_04_19_100003_create_form_schema_sections_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (77,'2026_04_19_100004_create_form_field_library_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (78,'2026_04_19_100005_create_form_fields_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (79,'2026_04_19_100006_create_form_submissions_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (80,'2026_04_19_100007_create_form_submission_section_statuses_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (81,'2026_04_19_100008_create_form_submission_delegations_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (82,'2026_04_19_100009_create_form_values_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (83,'2026_04_19_100010_create_form_value_options_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (84,'2026_04_19_100011_create_form_templates_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (85,'2026_04_19_100012_create_form_schema_webhooks_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (86,'2026_04_19_100013_create_form_webhook_deliveries_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (87,'2026_04_20_100000_drop_remaining_legacy_registration_tables',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (88,'2026_04_21_100000_add_default_locale_to_organisations_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (89,'2026_04_22_100000_add_identity_match_status_to_form_submissions',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (90,'2026_04_22_100001_add_idempotency_key_unique_to_form_submissions',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (91,'2026_04_22_100002_add_schema_version_at_open_to_form_submissions',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (92,'2026_04_24_100000_purge_invalid_form_purposes',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (93,'2026_04_24_100001_drop_custom_purpose_slug_from_form_schemas',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (94,'2026_04_24_110001_migrate_organisation_user_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (95,'2026_04_24_110002_migrate_event_user_roles_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (96,'2026_04_24_110003_migrate_crowd_list_persons_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (97,'2026_04_24_110004_migrate_event_person_activations_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (98,'2026_04_24_110005_migrate_user_organisation_tags_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (99,'2026_04_24_110006_migrate_person_section_preferences_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (100,'2026_04_24_110007_migrate_mfa_backup_codes_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (101,'2026_04_24_110008_migrate_mfa_email_codes_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (102,'2026_04_24_110009_migrate_form_submission_section_statuses_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (103,'2026_04_24_110010_migrate_form_values_and_options_to_ulid',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (104,'2026_04_24_200000_add_denormalized_context_to_form_submissions',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (105,'2026_04_25_015838_create_telescope_entries_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (106,'2026_04_25_100000_create_form_field_bindings_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (107,'2026_04_25_100001_drop_binding_json_columns',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (108,'2026_04_25_110000_create_form_field_validation_rules_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (109,'2026_04_25_110001_backfill_form_field_validation_rules',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (110,'2026_04_25_120000_create_form_field_configs_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (111,'2026_04_25_120001_backfill_form_field_configs',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (112,'2026_04_25_120002_drop_validation_rules_json_columns',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (113,'2026_04_25_140000_extend_form_submissions_with_apply_status',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (114,'2026_04_25_140100_create_form_submission_action_failures',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (115,'2026_04_26_100000_create_form_field_conditional_logic_groups_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (116,'2026_04_26_100001_create_form_field_conditional_logic_conditions_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (117,'2026_04_26_100002_backfill_form_field_conditional_logic',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (118,'2026_04_26_100003_drop_conditional_logic_json_column',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (119,'2026_04_26_120000_add_default_crowd_type_id_to_form_schemas',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (120,'2026_04_27_100000_create_form_field_options_table',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (121,'2026_04_27_100001_backfill_form_field_options',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (122,'2026_04_27_100002_drop_form_field_options_json_columns',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (123,'2026_04_28_100000_restore_default_crowd_type_id_foreign_key',1); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (124,'2026_04_28_140000_add_kvk_number_to_companies_table',2); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (125,'2026_04_28_180000_create_form_submission_action_failure_retry_attempts_table',2); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (126,'2026_04_28_181000_add_exception_trace_to_form_submission_action_failures',2); -INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (127,'2026_05_08_000001_add_failure_response_code_to_form_submissions',3); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (23,'2026_04_08_200000_create_crowd_types_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (24,'2026_04_08_205712_add_category_and_icon_to_festival_sections_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (25,'2026_04_08_210000_create_companies_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (26,'2026_04_08_220000_create_persons_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (27,'2026_04_08_230000_create_crowd_lists_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (28,'2026_04_08_240000_create_crowd_list_persons_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (29,'2026_04_08_250000_add_person_foreign_keys_to_existing_tables',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (30,'2026_04_08_300000_add_shifts_extras_and_waitlist_tables',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (31,'2026_04_08_310000_drop_unique_person_timeslot_on_shift_assignments',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (32,'2026_04_08_320000_fix_activity_log_morphs_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (33,'2026_04_08_400000_add_festival_columns_to_events_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (34,'2026_04_08_410000_create_event_person_activations_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (35,'2026_04_10_100000_add_registration_branding_to_events_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (36,'2026_04_10_100000_create_person_tags_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (37,'2026_04_10_110000_create_user_organisation_tags_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (38,'2026_04_10_193837_add_cancellation_tracking_to_shift_assignments',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (39,'2026_04_10_200000_create_person_identity_matches_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (40,'2026_04_10_300000_add_registration_fields_to_festival_sections_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (41,'2026_04_10_400000_split_name_into_first_last_on_users_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (42,'2026_04_10_400001_split_name_into_first_last_on_persons_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (43,'2026_04_10_400002_split_contact_name_on_companies_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (44,'2026_04_10_500000_add_date_of_birth_to_persons_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (45,'2026_04_12_100000_add_remarks_to_persons_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (46,'2026_04_12_100001_add_registration_toggles_to_events_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (47,'2026_04_12_200000_create_registration_field_templates_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (48,'2026_04_12_200001_create_registration_form_fields_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (49,'2026_04_12_200002_create_person_field_values_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (50,'2026_04_12_200003_create_person_section_preferences_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (51,'2026_04_13_100000_add_email_branding_to_organisations_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (52,'2026_04_14_100000_update_token_columns_for_hashed_storage',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (53,'2026_04_14_200000_add_date_of_birth_to_users_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (54,'2026_04_14_200001_enhance_person_identity_matches_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (55,'2026_04_14_300000_create_email_change_requests_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (56,'2026_04_15_100000_create_organisation_email_settings_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (57,'2026_04_15_100001_create_organisation_email_templates_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (58,'2026_04_15_100002_create_email_logs_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (59,'2026_04_15_200000_add_mfa_columns_to_users_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (60,'2026_04_15_200001_create_mfa_backup_codes_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (61,'2026_04_15_200002_create_trusted_devices_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (62,'2026_04_15_200003_create_mfa_email_codes_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (63,'2026_04_16_000000_add_phone_to_users_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (64,'2026_04_16_100000_create_impersonation_sessions_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (65,'2026_04_16_142626_remove_section_from_registration_fields_tables',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (66,'2026_04_17_100000_add_registration_source_to_persons_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (67,'2026_04_17_200000_add_display_width_to_registration_fields_tables',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (68,'2026_04_18_100000_change_tag_category_to_tag_categories_on_registration_fields',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (69,'2026_04_18_100001_update_partner_crowd_type_icon',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (70,'2026_04_18_110000_add_contact_fields_to_organisations_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (71,'2026_04_19_100000_create_user_profiles_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (72,'2026_04_19_100001_populate_user_profiles_from_existing_users',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (73,'2026_04_19_100002_create_form_schemas_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (74,'2026_04_19_100003_create_form_schema_sections_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (75,'2026_04_19_100004_create_form_field_library_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (76,'2026_04_19_100005_create_form_fields_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (77,'2026_04_19_100006_create_form_submissions_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (78,'2026_04_19_100007_create_form_submission_section_statuses_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (79,'2026_04_19_100008_create_form_submission_delegations_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (80,'2026_04_19_100009_create_form_values_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (81,'2026_04_19_100010_create_form_value_options_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (82,'2026_04_19_100011_create_form_templates_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (83,'2026_04_19_100012_create_form_schema_webhooks_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (84,'2026_04_19_100013_create_form_webhook_deliveries_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (85,'2026_04_20_100000_drop_remaining_legacy_registration_tables',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (86,'2026_04_21_100000_add_default_locale_to_organisations_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (87,'2026_04_22_100000_add_identity_match_status_to_form_submissions',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (88,'2026_04_22_100001_add_idempotency_key_unique_to_form_submissions',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (89,'2026_04_22_100002_add_schema_version_at_open_to_form_submissions',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (90,'2026_04_24_100000_purge_invalid_form_purposes',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (91,'2026_04_24_100001_drop_custom_purpose_slug_from_form_schemas',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (92,'2026_04_24_110001_migrate_organisation_user_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (93,'2026_04_24_110002_migrate_event_user_roles_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (94,'2026_04_24_110003_migrate_crowd_list_persons_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (95,'2026_04_24_110004_migrate_event_person_activations_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (96,'2026_04_24_110005_migrate_user_organisation_tags_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (97,'2026_04_24_110006_migrate_person_section_preferences_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (98,'2026_04_24_110007_migrate_mfa_backup_codes_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (99,'2026_04_24_110008_migrate_mfa_email_codes_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (100,'2026_04_24_110009_migrate_form_submission_section_statuses_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (101,'2026_04_24_110010_migrate_form_values_and_options_to_ulid',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (102,'2026_04_24_200000_add_denormalized_context_to_form_submissions',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (103,'2026_04_25_015838_create_telescope_entries_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (104,'2026_04_25_100000_create_form_field_bindings_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (105,'2026_04_25_100001_drop_binding_json_columns',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (106,'2026_04_25_110000_create_form_field_validation_rules_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (107,'2026_04_25_110001_backfill_form_field_validation_rules',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (108,'2026_04_25_120000_create_form_field_configs_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (109,'2026_04_25_120001_backfill_form_field_configs',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (110,'2026_04_25_120002_drop_validation_rules_json_columns',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (111,'2026_04_25_140000_extend_form_submissions_with_apply_status',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (112,'2026_04_25_140100_create_form_submission_action_failures',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (113,'2026_04_26_100000_create_form_field_conditional_logic_groups_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (114,'2026_04_26_100001_create_form_field_conditional_logic_conditions_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (115,'2026_04_26_100002_backfill_form_field_conditional_logic',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (116,'2026_04_26_100003_drop_conditional_logic_json_column',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (117,'2026_04_26_120000_add_default_crowd_type_id_to_form_schemas',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (118,'2026_04_27_100000_create_form_field_options_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (119,'2026_04_27_100001_backfill_form_field_options',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (120,'2026_04_27_100002_drop_form_field_options_json_columns',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (121,'2026_04_28_100000_restore_default_crowd_type_id_foreign_key',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (122,'2026_04_28_140000_add_kvk_number_to_companies_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (123,'2026_04_28_180000_create_form_submission_action_failure_retry_attempts_table',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (124,'2026_04_28_181000_add_exception_trace_to_form_submission_action_failures',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (125,'2026_05_08_000001_add_failure_response_code_to_form_submissions',1); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (136,'2026_05_08_100000_create_genres_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (137,'2026_05_08_100001_create_artists_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (138,'2026_05_08_100002_add_handles_buma_to_companies_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (139,'2026_05_08_100003_create_artist_contacts_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (140,'2026_05_08_100004_create_stages_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (141,'2026_05_08_100005_create_stage_days_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (142,'2026_05_08_100006_create_artist_engagements_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (143,'2026_05_08_100007_create_performances_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (144,'2026_05_08_100008_create_advance_sections_table',2); +INSERT INTO `migrations` (`id`, `migration`, `batch`) VALUES (145,'2026_05_08_100009_create_advance_submissions_table',2);