Replace document_id with relative path

This commit is contained in:
Andras Schmelczer 2024-12-14 14:59:29 +00:00
parent 476c0ed672
commit fe7ff5349d
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
11 changed files with 83 additions and 270 deletions

View file

@ -4,20 +4,11 @@ use serde::{self, Deserialize};
use crate::database::models::DocumentVersionId;
#[derive(Debug, Deserialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct CreateDocumentVersion {
pub created_date: DateTime<Utc>,
pub relative_path: String,
pub content_base64: String,
}
#[derive(Debug, Deserialize, JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct UpdateDocumentVersion {
pub parent_version_id: DocumentVersionId,
pub parent_version_id: Option<DocumentVersionId>,
pub created_date: DateTime<Utc>,
pub relative_path: String,
pub content_base64: String,
}