Changes
This commit is contained in:
+2
-1
@@ -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();
|
||||
});
|
||||
|
||||
+2
-1
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user