33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?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');
|
|
}
|
|
};
|