9eb77ab98b
- Update channel, notification, PR, repo, user, workspace models - Remove deleted IM models: articles, channel follows, message attachments/bookmarks/drafts/edit history/embeds/mentions/pins/ polls/reactions/threads, saved messages, thread read states - Add new PR models: review requests, templates - Add repo release assets model - Add base_info module for API detail responses
25 lines
828 B
Rust
25 lines
828 B
Rust
use crate::models::common::{DeliveryChannel, Provider, Status};
|
|
use chrono::{DateTime, Utc};
|
|
use serde::{Deserialize, Serialize};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, sqlx::FromRow, utoipa::ToSchema)]
|
|
pub struct NotificationDelivery {
|
|
pub id: Uuid,
|
|
pub notification_id: Uuid,
|
|
pub user_id: Uuid,
|
|
pub channel: DeliveryChannel,
|
|
pub destination: Option<String>,
|
|
pub status: Status,
|
|
pub provider: Option<Provider>,
|
|
pub provider_message_id: Option<String>,
|
|
pub attempts: i32,
|
|
pub last_error: Option<String>,
|
|
pub scheduled_at: Option<DateTime<Utc>>,
|
|
pub sent_at: Option<DateTime<Utc>>,
|
|
pub delivered_at: Option<DateTime<Utc>>,
|
|
pub failed_at: Option<DateTime<Utc>>,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|