Files
lelong/database/migrations/2014_10_12_000000_create_users_table.php
T
Azfar Arsyad 679d756bf1 register
2022-01-16 17:05:43 +08:00

53 lines
1.7 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('username')->unique();
$table->string('kodcaw')->nullable();
$table->string('nokp')->nullable();
$table->string('bank_acc_pembeli')->nullable();
$table->string('bank_acc_no_pembeli')->nullable();
$table->string('alamat')->nullable();
$table->string('notelpejabat')->nullable();
$table->string('notelbimbit')->nullable();
$table->string('note')->nullable(); //operasi
$table->string('status')->nullable(); //set
$table->datetime('t_daftar')->nullable();
$table->integer('online')->nullable(); //set
$table->integer('register_agree')->nullable();
$table->string('email')->nullable();
$table->datetime('email_verified_at')->nullable();
$table->string('password');
$table->datetime('disahkan_pada')->nullable();
$table->datetime('disahkan_oleh')->nullable();
$table->string('user_type')->nullable(); //set 1,2
$table->rememberToken();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}