From 1cf4e6cdb69599cc1206262ec61528d4ea81e79b Mon Sep 17 00:00:00 2001 From: Ida Made Revindra Dikta Mahendra <idamaderevindra05@gmail.com> Date: Fri, 28 Mar 2025 10:04:57 +0700 Subject: [PATCH] [CHORE]: Create Notification database and Notification repository struct skeleton --- src/repository/mod.rs | 1 + src/repository/notification.rs | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 src/repository/notification.rs diff --git a/src/repository/mod.rs b/src/repository/mod.rs index e69de29..392d39d 100644 --- a/src/repository/mod.rs +++ b/src/repository/mod.rs @@ -0,0 +1 @@ +pub mod notification; \ No newline at end of file diff --git a/src/repository/notification.rs b/src/repository/notification.rs new file mode 100644 index 0000000..5071dde --- /dev/null +++ b/src/repository/notification.rs @@ -0,0 +1,15 @@ +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 { +} \ No newline at end of file -- GitLab