50 lines
1.5 KiB
PHP
50 lines
1.5 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
class CreateUsersTable extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('users', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('name');
|
|
$table->string('kodcaw')->nullable();
|
|
$table->string('nokp')->nullable();
|
|
$table->string('bank_acc_pembeli')->nullable();
|
|
$table->string('bank_acc_no_pembeli')->nullable();
|
|
$table->string('alamat_rumah')->nullable();
|
|
$table->string('notelpejabat')->nullable();
|
|
$table->string('notelbimbit')->nullable();
|
|
$table->string('note')->nullable();
|
|
$table->string('status')->nullable();
|
|
$table->timestamp('t_daftar')->nullable();
|
|
$table->integer('online')->nullable();
|
|
$table->integer('register_agree')->nullable();
|
|
$table->string('username')->unique();
|
|
$table->string('email')->nullable();
|
|
$table->timestamp('email_verified_at')->nullable();
|
|
$table->string('password');
|
|
$table->rememberToken();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('users');
|
|
}
|
|
}
|