From 023626d791099a54d466e3aca33697b504618c16 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Fri, 15 Nov 2024 09:48:33 +0700 Subject: [PATCH] Tambah migrasi baru untuk tabel "holiday_calendars" Menambahkan file migrasi untuk membuat tabel "holiday_calendars" yang menyimpan informasi tanggal libur beserta deskripsi dan jenisnya (libur nasional atau cuti bersama). Tabel ini juga memiliki kolom untuk pencatatan waktu pembuatan, update, soft delete, serta pencatatan pengguna yang melakukan perubahan. --- ..._021310_create_holiday_calendars_table.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2024_11_15_021310_create_holiday_calendars_table.php diff --git a/database/migrations/2024_11_15_021310_create_holiday_calendars_table.php b/database/migrations/2024_11_15_021310_create_holiday_calendars_table.php new file mode 100644 index 0000000..5649ebe --- /dev/null +++ b/database/migrations/2024_11_15_021310_create_holiday_calendars_table.php @@ -0,0 +1,36 @@ +id(); + $table->date('date'); + $table->string('description'); + $table->enum('type', ['national_holiday', 'collective_leave']); + $table->timestamps(); + $table->softDeletes(); + $table->unsignedBigInteger('created_by')->nullable(); + $table->unsignedBigInteger('updated_by')->nullable(); + $table->unsignedBigInteger('deleted_by')->nullable(); + }); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('holiday_calendars'); + } +};