id('user_id'); $table->string('name'); $table->string('email')->unique(); $table->timestamp('email_verified_at')->nullable(); $table->string('password'); $table->enum('role', ['default', 'employee', 'manage', 'admin'])->default('default'); $table->foreignId('address_id')->nullable()->constrained('addresses', 'address_id')->onDelete('cascade'); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } };