Migration refactoring

This commit is contained in:
Peter Papp
2021-02-25 17:15:58 +01:00
parent 18518106ca
commit af1a8e6333
28 changed files with 101 additions and 581 deletions

View File

@@ -14,12 +14,13 @@ class CreateUsersTable extends Migration
public function up()
{
Schema::create('users', function (Blueprint $table) {
$table->bigIncrements('id');
$table->uuid('id');
$table->enum('role', ['admin', 'user'])->default('user');
$table->string('name');
$table->string('avatar')->nullable();
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password');
$table->string('avatar')->nullable();
$table->rememberToken();
$table->timestamps();
});