добавляю все изменения проекта на текущий момент

This commit is contained in:
vasya
2026-02-27 18:49:27 +03:00
parent e927910fda
commit 9c35f4e35e
303 changed files with 79434 additions and 2558 deletions
@@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
/**
* Создание таблицы с прописанными параметрами авторизации (ролевая модель приложений)
*/
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('app_roles', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('app_id')->comment('id приложения (связь с таблицей magic_apps)');
$table->text('app_role')->comment('Роль в приложении');
$table->text('role_access')->nullable()->comment('Кому доступна роль (зависит от драйвера в magic_apps)');
$table->foreign('app_id')->references('id')->on('magic_apps');
$table->comment('Ролевая модель приложений');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('app_roles');
}
};