hypercall_db/types/
notifications.rs1use chrono::{DateTime, Utc};
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct NotificationRecord {
11 pub id: i64,
12 pub wallet_address: String,
13 pub notification_type: String,
14 pub payload: Vec<u8>,
15 pub read_at: Option<DateTime<Utc>>,
16 pub created_at: DateTime<Utc>,
17}
18
19#[derive(Debug, Clone)]
21pub struct NewNotificationInput {
22 pub wallet_address: String,
23 pub notification_type: String,
24 pub payload: Vec<u8>,
25}