Commit c0f3c428 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Fix migration FK reference: organizations → academies

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent c314a847
...@@ -12,7 +12,7 @@ public function up(): void ...@@ -12,7 +12,7 @@ public function up(): void
// Branch-level settings (overrides academy settings per branch) // Branch-level settings (overrides academy settings per branch)
Schema::create('branch_settings', function (Blueprint $table) { Schema::create('branch_settings', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('academy_id')->constrained('organizations'); $table->foreignId('academy_id')->constrained('academies');
$table->foreignId('branch_id')->constrained('branches'); $table->foreignId('branch_id')->constrained('branches');
$table->string('key', 100); $table->string('key', 100);
$table->text('value')->nullable(); $table->text('value')->nullable();
...@@ -26,7 +26,7 @@ public function up(): void ...@@ -26,7 +26,7 @@ public function up(): void
// Receipt templates — configurable per branch // Receipt templates — configurable per branch
Schema::create('receipt_templates', function (Blueprint $table) { Schema::create('receipt_templates', function (Blueprint $table) {
$table->id(); $table->id();
$table->foreignId('academy_id')->constrained('organizations'); $table->foreignId('academy_id')->constrained('academies');
$table->foreignId('branch_id')->nullable()->constrained('branches'); $table->foreignId('branch_id')->nullable()->constrained('branches');
$table->string('name', 100); $table->string('name', 100);
$table->string('name_ar', 100); $table->string('name_ar', 100);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment