From 4a3c5a6118de0f40a95dfbc4eaa1a533b981d9a4 Mon Sep 17 00:00:00 2001
From: Christian Raphael Heryanto <christian.raphael@ui.ac.id>
Date: Fri, 28 Mar 2025 14:55:27 +0800
Subject: [PATCH] Create Notification database and Notification repository
 struct skeleton.

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

diff --git a/src/repository/mod.rs b/src/repository/mod.rs
index e69de29..b92750c 100644
--- a/src/repository/mod.rs
+++ b/src/repository/mod.rs
@@ -0,0 +1 @@
+pub mod notification;
diff --git a/src/repository/notification.rs b/src/repository/notification.rs
new file mode 100644
index 0000000..8231324
--- /dev/null
+++ b/src/repository/notification.rs
@@ -0,0 +1,14 @@
+use std::sync::RwLock;
+
+use lazy_static::lazy_static;
+
+use crate::model::notification::Notification;
+
+//Singleton of Database
+lazy_static! {
+    static ref NOTIFICATIONS: RwLock<Vec<Notification>> = RwLock::new(vec![]);
+}
+
+pub struct NotificationRepository;
+
+impl NotificationRepository {}
-- 
GitLab