From f99e6d624daa5bc0909be43d05b02e3c32129b5f Mon Sep 17 00:00:00 2001
From: raja <rafaelraja.sitorus@gmail.com>
Date: Fri, 28 Mar 2025 20:32:30 +0800
Subject: [PATCH] Create Notification model struct.

---
 src/model/mod.rs          |  3 ++-
 src/model/notification.rs | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)
 create mode 100644 src/model/notification.rs

diff --git a/src/model/mod.rs b/src/model/mod.rs
index e4371e0..35f8499 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -1,2 +1,3 @@
 pub mod product;
-pub mod subscriber;
\ No newline at end of file
+pub mod subscriber;
+pub mod notification;
\ No newline at end of file
diff --git a/src/model/notification.rs b/src/model/notification.rs
new file mode 100644
index 0000000..9eb1a5d
--- /dev/null
+++ b/src/model/notification.rs
@@ -0,0 +1,11 @@
+use rocket::serde::Deserialize, Serializes;
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[serde(crate = "rocket::serde")]
+pub struct Notification {
+    pub product_title: String, 
+    pub product_type: String, 
+    pub product_url: String, 
+    pub subscriber_name: String, 
+    pub status: String
+}
\ No newline at end of file
-- 
GitLab