feat: implement full CRUD support and database schema for multi-tenant architecture
This commit is contained in:
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user