Changes to the user table

This commit is contained in:
James Brooks
2015-01-05 21:23:09 +00:00
parent fdfb966edf
commit 82995a9eba

View File

@@ -18,14 +18,16 @@ class CreateUsersTable extends Migration
$table->string('username')->unique();
$table->string('password');
$table->string('remember_token')->nullable()->default(null)->unique();
$table->string('email')->unique();
$table->string('api_key')->unique();
$table->string('email');
$table->string('api_key');
$table->boolean('active')->default(1);
$table->tinyInteger('level')->default(2);
$table->timestamps();
$table->index('remember_token');
$table->index('active');
$table->unique('api_key');
$table->unique('email');
});
}