From 2cb27c12d64b46f69e4c6fc7313a80ed5d3e8ac0 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Tue, 18 Feb 2025 16:34:47 +0700 Subject: [PATCH] feat(email-blast): tambahkan model dan migrasi untuk riwayat email blast - Menambahkan model EmailBlastHistory untuk menyimpan informasi riwayat email blast. - Membuat migrasi untuk tabel email_blast_histories dengan kolom subject, content, recipients_count, dan status. --- app/Models/EmailBlastHistory.php | 19 ++++++++++++++ ...412_create_email_blast_histories_table.php | 25 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 app/Models/EmailBlastHistory.php create mode 100644 database/migrations/2025_02_15_125412_create_email_blast_histories_table.php diff --git a/app/Models/EmailBlastHistory.php b/app/Models/EmailBlastHistory.php new file mode 100644 index 0000000..7ece211 --- /dev/null +++ b/app/Models/EmailBlastHistory.php @@ -0,0 +1,19 @@ +id(); + $table->string('subject'); + $table->text('content'); + $table->integer('recipients_count'); + $table->string('status'); + $table->timestamps(); + }); + } + + public function down() + { + Schema::dropIfExists('email_blast_histories'); + } +}