feat: add hero_config and event_config to Tenant model with validation and migration

This commit is contained in:
2026-07-14 11:08:59 -03:00
parent ca4fea6bcd
commit 2910d3f929
5 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('tenants', function (Blueprint $table) {
$table->json('hero_config')->nullable();
$table->json('event_config')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('tenants', function (Blueprint $table) {
$table->dropColumn(['hero_config', 'event_config']);
});
}
};