use crate::domain::record_id::RecordId;
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Jot {
    pub id: RecordId,
    pub file_storage_url: String,
    pub encrypted_file_metadata: Vec<u8>,
    pub salt: Vec<u8>,
    pub owner_id: RecordId,
    pub vault_id: Option<RecordId>,
    pub created_at: DateTime<Utc>,
    pub updated_at: DateTime<Utc>,
    pub version: i32,
    pub is_multipart: bool,
    pub chunk_size: Option<i32>,
}
