conundrum_db 0.1.2

Be less dum.
Documentation
use conundrum_lang::lifted_models::primitives::{date_time::DateTime, db_id::DatabaseId};
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Clone, Debug)]
pub enum SummarySource {
    Conundrum,
    Typst,
    Html,
}

/// ## ModelSummary
///
/// A general 'summary' that can be passed to AI. Obviously this is most useful
/// for text based Conundrum notes, but this can be used in a much wider
/// application.
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct SummaryModel {
    pub body: String,
    pub ai_generated: bool,
    pub ctime: DateTime,
    pub source_type: SummarySource,
    pub source_id: DatabaseId,
}