浏览代码

Update User migration

Daniel Supernault 7 年之前
父节点
当前提交
40c2053314
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      database/migrations/2014_10_12_000000_create_users_table.php

+ 4 - 1
database/migrations/2014_10_12_000000_create_users_table.php

@@ -15,10 +15,13 @@ class CreateUsersTable extends Migration
     {
         Schema::create('users', function (Blueprint $table) {
             $table->increments('id');
-            $table->string('name');
+            $table->string('name')->nullable();
+            $table->string('username')->nullable()->unique()->index();
             $table->string('email')->unique();
             $table->string('password');
             $table->rememberToken();
+            $table->boolean('is_admin')->default(false);
+            $table->timestamp('email_verified_at')->nullable();
             $table->timestamps();
         });
     }