LinkStack/database/migrations/2014_10_12_000000_create_us...

43 lines
1.2 KiB
PHP
Raw Normal View History

2021-04-16 01:00:00 +02:00
<?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')->unique();
2021-04-16 01:00:00 +02:00
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->string('littlelink_name')->unique()->nullable();
$table->string('littlelink_description')->nullable();
$table->enum('role', ['user', 'vip', 'admin'])->default('user');
$table->enum('block', ['yes', 'no'])->default('no');
$table->rememberToken();
$table->timestamps();
2022-05-18 21:08:58 +02:00
$table->string('theme')->nullable();
2023-07-19 15:08:07 +02:00
$table->unsignedInteger('auth_as')->nullable();
2021-04-16 01:00:00 +02:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('users');
}
}