pintu2/database/migrations/2025_02_27_101412_create_lombas_table.php
Fiky Baharudin 9b224935f4
Some checks failed
Run Action to Production / run pull to sync on target message (push) Failing after 1m7s
production tambah menu lomba
2025-03-07 09:57:56 +07:00

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');
}
};