관리-도구
편집 파일: 2014_10_12_000000_create_users_table.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('first_name'); $table->string('email')->unique(); $table->string('user_role')->default('user'); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->string('image')->nullable(); $table->boolean('status')->default(0)->comment('0 for active users and 1 for banned users'); $table->boolean('profile_status')->default(0)->comment('0 for in-complete profile and 1 for complete profile'); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }