Files
sidata/database/migrations/2014_10_12_000000_create_users_table.php
T

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