@@ -0,0 +1,39 @@
|
||||
<?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('offices', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
// Material Symbols icon name shown next to the office.
|
||||
$table->string('icon')->default('apartment');
|
||||
$table->string('building');
|
||||
$table->string('street');
|
||||
$table->string('area');
|
||||
$table->string('city');
|
||||
// Short location used in chips, e.g. "Bintaro, Jakarta Selatan".
|
||||
$table->string('district');
|
||||
$table->string('phone');
|
||||
$table->string('maps_url')->nullable();
|
||||
$table->unsignedInteger('sort_order')->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('offices');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user