|
|
@ -10,16 +10,15 @@ return new class extends Migration { |
|
|
|
Schema::create('se_exercises', function (Blueprint $table) { |
|
|
|
Schema::create('se_exercises', function (Blueprint $table) { |
|
|
|
$table->id(); |
|
|
|
$table->id(); |
|
|
|
|
|
|
|
|
|
|
|
// Chỉ giữ tên cột, không ràng buộc FK |
|
|
|
|
|
|
|
$table->unsignedBigInteger('subject_id'); |
|
|
|
$table->unsignedBigInteger('subject_id'); |
|
|
|
$table->string('lesson_name'); |
|
|
|
$table->string('lesson_name'); |
|
|
|
$table->text('description')->nullable(); |
|
|
|
$table->text('description')->nullable(); |
|
|
|
$table->integer('level')->default(0); |
|
|
|
$table->integer('level')->default(0); |
|
|
|
$table->string('avatar')->nullable(); |
|
|
|
$table->string('avatar')->nullable(); |
|
|
|
$table->integer('status')->default(1); // true = active, false = inactive |
|
|
|
$table->integer('status')->default(1); // |
|
|
|
$table->unsignedBigInteger('category_id'); |
|
|
|
$table->unsignedBigInteger('category_id'); |
|
|
|
$table->unsignedBigInteger('skill_id'); |
|
|
|
$table->unsignedBigInteger('skill_id'); |
|
|
|
$table->integer('year')->nullable(); |
|
|
|
$table->string('year')->nullable(); |
|
|
|
$table->unsignedBigInteger('media_object_id')->nullable(); |
|
|
|
$table->unsignedBigInteger('media_object_id')->nullable(); |
|
|
|
|
|
|
|
|
|
|
|
$table->timestamps(); |
|
|
|
$table->timestamps(); |
|
|
|