Your IP : 3.133.153.110
<?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('materials', function (Blueprint $table) {
$table->id();
$table->integer('lecture_id');
$table->string('title')->nullable();
$table->string('link')->nullable();
$table->string('type')->default(0);
$table->text('scripts')->nullable();
$table->timestampsTz();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('materials');
}
};