From a4dbeaea65e6588ee456599266b6b56066c8f52e Mon Sep 17 00:00:00 2001
From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com>
Date: Fri, 28 Mar 2025 08:04:07 +0700
Subject: [PATCH] [CHORE]: Create Subscriber model struct

---
 src/model/mod.rs        |  1 +
 src/model/subscriber.rs | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
 create mode 100644 src/model/subscriber.rs

diff --git a/src/model/mod.rs b/src/model/mod.rs
index 68024e1..7cf6d56 100644
--- a/src/model/mod.rs
+++ b/src/model/mod.rs
@@ -1 +1,2 @@
 pub mod product;
+pub mod subscriber;
diff --git a/src/model/subscriber.rs b/src/model/subscriber.rs
new file mode 100644
index 0000000..f067e84
--- /dev/null
+++ b/src/model/subscriber.rs
@@ -0,0 +1,14 @@
+
+use rocket::serde::{Deserialize, Serialize};
+use rocket::log;
+use rocket::serde::json::to_string;
+use rocket::tokio;
+use bambangshop::REQWEST_CLIENT;
+use crate::model::notification::Notification;
+
+#[derive(Debug, Clone, Deserialize, Serialize)]
+#[serde(crate = "rocket::serde")]
+pub struct Subscriber {
+    pub url: String,
+    pub name: String,
+}
\ No newline at end of file
-- 
GitLab