<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('soals', function (Blueprint $table) {
$table->id();
$table->foreignId('module_id')->constrained()->onDelete('cascade');
$table->string('name')->nullable();
$table->text('desc')->nullable();
$table->text('start_code')->nullable();
$table->text('answer')->nullable();
$table->string('prog_lang')->nullable();
$table->string('placeholder')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('soals');
}
};
Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]