Files
kaunter/database/migrations/2020_10_06_043308_create_customers_table.php
T
Zakwan Hamdan 60afe5d1ba Initial commit
2020-10-19 10:12:55 +08:00

44 lines
1.1 KiB
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateCustomersTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('customers', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('noic')->unique();
$table->string('alamat');
$table->string('main_phone');
$table->string('alternate_phone')->nullable();
$table->string('alamat_menyurat');
$table->integer('poskod');
$table->string('daerah');
$table->string('negeri');
$table->integer('umur');
$table->string('warganegara');
$table->string('bangsa');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('customers');
}
}