@@ -1,5 +1,30 @@
|
||||
<?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('evidence_submissions', function (Blueprint $table) { $table->id(); $table->string('name')->nullable(); $table->string('email')->nullable(); $table->string('park_name')->nullable(); $table->string('operator')->nullable(); $table->decimal('purchase_price',12,2)->nullable(); $table->decimal('valuation',12,2)->nullable(); $table->decimal('finance_balance',12,2)->nullable(); $table->text('story'); $table->boolean('consent_to_contact')->default(false); $table->timestamps(); }); } public function down(): void { Schema::dropIfExists('evidence_submissions'); } };
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('evidence_submissions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->string('park_name')->nullable();
|
||||
$table->string('operator')->nullable();
|
||||
$table->decimal('purchase_price', 12, 2)->nullable();
|
||||
$table->decimal('valuation', 12, 2)->nullable();
|
||||
$table->decimal('finance_balance', 12, 2)->nullable();
|
||||
$table->text('story');
|
||||
$table->boolean('consent_to_contact')->default(false);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('evidence_submissions');
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user