Files
lelong/database/migrations/2014_10_12_000000_create_users_table.php
T
2022-01-12 09:54:02 +08:00

52 lines
1.6 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->string('front_img_path');
$table->string('back_img_path');
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}