Files
sidata/database/migrations/2014_10_12_000000_create_users_table.php
T
2025-07-15 10:17:59 +07:00

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');
}
}