|
@@ -13,6 +13,8 @@ return new class extends Migration
|
|
{
|
|
{
|
|
Schema::table('users', function (Blueprint $table) {
|
|
Schema::table('users', function (Blueprint $table) {
|
|
$table->boolean('has_roles')->default(false);
|
|
$table->boolean('has_roles')->default(false);
|
|
|
|
+ $table->unsignedInteger('parent_id')->nullable();
|
|
|
|
+ $table->tinyInteger('role_id')->unsigned()->nullable()->index();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|
|
@@ -23,6 +25,8 @@ return new class extends Migration
|
|
{
|
|
{
|
|
Schema::table('users', function (Blueprint $table) {
|
|
Schema::table('users', function (Blueprint $table) {
|
|
$table->dropColumn('has_roles');
|
|
$table->dropColumn('has_roles');
|
|
|
|
+ $table->dropColumn('parent_id');
|
|
|
|
+ $table->dropColumn('role_id');
|
|
});
|
|
});
|
|
}
|
|
}
|
|
};
|
|
};
|