Basic tenant structure
This commit is contained in:
32
database/migrations/2026_01_30_140001_create_tenants.php
Normal file
32
database/migrations/2026_01_30_140001_create_tenants.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration {
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tenants', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('slug')->unique();
|
||||
$table->string('local_group_name');
|
||||
$table->string('email');
|
||||
$table->string('url');
|
||||
$table->string('account_iban');
|
||||
$table->string('city');
|
||||
$table->string('postcode');
|
||||
$table->string('gdpr_text')-> nullable();
|
||||
$table->string('impress_text')->nullable();
|
||||
$table->string('url_participation_rules')->nullable();
|
||||
$table->boolean('has_active_instance')->default(true);
|
||||
$table->boolean('is_active_local_group')->default(true);
|
||||
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tenants');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user