Some checks failed
Run Action to Production / run pull to sync on target message (push) Failing after 1m7s
43 lines
1.3 KiB
PHP
43 lines
1.3 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
/**
|
|
* Run the migrations.
|
|
*/
|
|
public function up(): void
|
|
{
|
|
Schema::create('lombas', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->string('caseid');
|
|
$table->string('nama_kompetisi');
|
|
$table->string('nama_penyelenggara');
|
|
$table->string('tingkat_lomba');
|
|
$table->date('tanggal_mulai');
|
|
$table->date('tanggal_berakhir');
|
|
$table->unsignedBigInteger('dosen_pembimbing_lomba');
|
|
$table->string('surat_tugas_delegasi_lomba');
|
|
$table->string('sk_dekan_untuk_pembimbing');
|
|
$table->string('poster_lomba');
|
|
$table->string('bukti_pembayaran');
|
|
$table->string('bukti_bimbingan_lomba');
|
|
$table->string('status')->nullable();
|
|
$table->foreign('dosen_pembimbing_lomba')->references('id')->on('users')->onDelete('cascade');
|
|
$table->foreignId('mahasiswa_id')->constrained('mahasiswas');
|
|
$table->timestamps();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::dropIfExists('lombas');
|
|
}
|
|
};
|