add faults (routes, model, navigation, seeder and migration)
All checks were successful
Build, push and deploy / builds (push) Successful in 5s

This commit is contained in:
albert
2024-11-08 16:39:01 +01:00
parent 46d1d616f8
commit 610eebf66a
7 changed files with 147 additions and 1 deletions

View File

@ -0,0 +1,34 @@
<?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::create('faults', function (Blueprint $table) {
$table->id();
$table->string('contact_name'); // This column must exist
$table->string('contact_phone');
$table->text('description');
$table->string('address');
$table->string('status');
$table->string('google_maps_link');
$table->string('city');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('faults');
}
};