This commit is contained in:
f4ilji
2024-10-14 14:56:10 +05:00
parent 77b3e3b4b1
commit dd3a0c6ecd
258 changed files with 6548 additions and 1777 deletions
@@ -13,7 +13,8 @@ return new class extends Migration
{
Schema::create('direction_additional_education', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->string('title')->unique();
$table->string('slug')->unique();
$table->boolean('is_active');
$table->timestamps();
});
@@ -13,7 +13,8 @@ return new class extends Migration
{
Schema::create('additional_education_categories', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->string('title')->unique();
$table->string('slug')->unique();
$table->boolean('is_active');
$table->unsignedBigInteger('dir_addit_educat_id')->nullable();
$table->foreign('dir_addit_educat_id')->references('id')->on('direction_additional_education');
@@ -14,6 +14,7 @@ return new class extends Migration
Schema::create('additional_education', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->string('slug')->unique();
$table->text('content');
$table->unsignedBigInteger('category_id')->nullable();
$table->foreign('category_id')->references('id')->on('additional_education_categories');