feat: implement full CRUD support and database schema for multi-tenant architecture

This commit is contained in:
2026-06-26 16:57:59 -03:00
parent 8708cea122
commit 31b65eb676
10 changed files with 562 additions and 58 deletions

View File

@@ -15,13 +15,13 @@ return new class extends Migration
$table->id();
$table->string('codigo')->unique();
$table->string('nombre');
$table->string('dominio')->nullable();
$table->string('primary_color')->nullable();
$table->string('secondary_color')->nullable();
$table->string('danger_color')->nullable();
$table->string('header_footer_bg_color')->nullable();
$table->unsignedBigInteger('header_logo_id')->nullable();
$table->unsignedBigInteger('footer_logo_id')->nullable();
$table->string('dominio');
$table->string('primary_color');
$table->string('secondary_color');
$table->string('danger_color');
$table->string('header_footer_bg_color');
$table->unsignedBigInteger('header_logo_id');
$table->unsignedBigInteger('footer_logo_id');
$table->timestamps();
});
}

View File

@@ -33,12 +33,12 @@ return new class extends Migration
$table->foreign('header_logo_id')
->references('id')
->on('attachments')
->nullOnDelete();
->cascadeOnDelete();
$table->foreign('footer_logo_id')
->references('id')
->on('attachments')
->nullOnDelete();
->cascadeOnDelete();
});
}