47 lines
1.7 KiB
PHP
47 lines
1.7 KiB
PHP
|
<?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('contacts', function (Blueprint $table) {
|
||
|
$table->id('contact_id');
|
||
|
$table->integer('forms_id')->nullable();
|
||
|
$table->integer('branches_id')->nullable();
|
||
|
$table->string('name', 255)->nullable()->default(null);
|
||
|
$table->string('tagline', 255)->nullable()->default(null);
|
||
|
$table->string('address', 255)->nullable()->default(null);
|
||
|
$table->string('tel', 20);
|
||
|
$table->string('fax', 255)->nullable()->default(null);
|
||
|
$table->string('email1', 255)->nullable()->default(null);
|
||
|
$table->string('email2', 255)->nullable()->default(null);
|
||
|
$table->string('website', 255)->nullable()->default(null);
|
||
|
$table->text('google_map')->nullable()->default(null);
|
||
|
$table->string('facebook', 50)->nullable();
|
||
|
$table->string('hp1', 50)->nullable();
|
||
|
$table->string('hp2', 50)->nullable();
|
||
|
$table->integer('display_order')->default(1);
|
||
|
$table->integer('status')->default(1);
|
||
|
$table->text('remarks')->nullable()->default(null);
|
||
|
$table->timestamps();
|
||
|
$table->integer('createdby')->nullable()->default(null);
|
||
|
$table->integer('updatedby')->nullable()->default(null);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Reverse the migrations.
|
||
|
*/
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('contacts');
|
||
|
}
|
||
|
};
|