From 3f1f86d246c488cb7dd1bb35fc9eb97b41c256f9 Mon Sep 17 00:00:00 2001
From: vissutagunawan <vglim3653@gmail.com>
Date: Thu, 27 Mar 2025 08:57:41 +0700
Subject: [PATCH] Create Notification model struct.

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

diff --git a/src/model/mod.rs b/src/model/mod.rs
index 7cf6d56..89a55b8 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -1,2 +1,3 @@
 pub mod product;
 pub mod subscriber;
+pub mod notification;
diff --git a/src/model/notification.rs b/src/model/notification.rs
new file mode 100644
index 0000000..bd0d937
--- /dev/null
+++ b/src/model/notification.rs
@@ -0,0 +1,12 @@
+use rocket::serde::{Deserialize, Serialize};
+
+#[derive(Debug,Clone, Serialize, Deserialize)]
+#[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