49 lines
1.5 KiB
PHP
49 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->uuid('id')->primary();
|
|
$table->string('name');
|
|
$table->string('nrk')->unique();
|
|
$table->string('role_name', 30);
|
|
// $table->timestamp('email_verified_at')->nullable();
|
|
$table->string('password');
|
|
$table->tinyInteger('is_lock_upload')->nullable();
|
|
$table->timestamp('lock_upload_time')->nullable();
|
|
$table->string('lock_upload_by')->nullable();
|
|
$table->tinyInteger('wilayah')->nullable();
|
|
$table->tinyInteger('lock_tambah_data')->nullable();
|
|
$table->tinyInteger('lock_ubah_data')->nullable();
|
|
$table->tinyInteger('lock_hapus_data')->nullable();
|
|
$table->tinyInteger('check_all_ubah')->nullable();
|
|
$table->tinyInteger('check_all_hapus')->nullable();
|
|
$table->string('kode_skpd',25)->nullable();
|
|
$table->string('kode_induk_skpd',25)->nullable();
|
|
$table->rememberToken();
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::dropIfExists('users');
|
|
}
|
|
}
|