new design
This commit is contained in:
@@ -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 {
|
||||
public function up(): void {
|
||||
Schema::table('users', fn (Blueprint $table) => $table->boolean('is_admin')->default(false));
|
||||
Schema::create('site_sections', function (Blueprint $table) {
|
||||
$table->id(); $table->string('key')->unique(); $table->string('eyebrow')->nullable();
|
||||
$table->string('title'); $table->text('body')->nullable(); $table->string('button_label')->nullable();
|
||||
$table->string('button_url')->nullable(); $table->boolean('is_visible')->default(true);
|
||||
$table->unsignedInteger('sort_order')->default(0); $table->timestamps();
|
||||
});
|
||||
Schema::create('site_settings', function (Blueprint $table) {
|
||||
$table->id(); $table->string('key')->unique(); $table->text('value')->nullable(); $table->timestamps();
|
||||
});
|
||||
Schema::create('contact_enquiries', function (Blueprint $table) {
|
||||
$table->id(); $table->string('name'); $table->string('email'); $table->string('company')->nullable();
|
||||
$table->string('service')->nullable(); $table->text('message'); $table->boolean('is_read')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
public function down(): void {
|
||||
Schema::dropIfExists('contact_enquiries'); Schema::dropIfExists('site_settings');
|
||||
Schema::dropIfExists('site_sections'); Schema::table('users', fn (Blueprint $table) => $table->dropColumn('is_admin'));
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user