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