feat #14740: track uploads per backend server
Schema v4 adds calls.crm_base_url; existing uploads are tagged with the test backend. A call counts as uploaded (list/detail fields, the "Hochgeladen am" line, the upload-once guard) only if it was uploaded to this build's backend. Uploading to the other server replaces the single upload record; nothing is deleted. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,11 @@ pub struct Call {
|
||||
pub title: Option<String>,
|
||||
/// The id the CRM gave the transcript at its last upload.
|
||||
pub crm_transcript_id: Option<String>,
|
||||
/// The backend ([`crate::backend`]'s base URL) `crm_transcript_id` was
|
||||
/// uploaded to; `None` if never uploaded. A build whose own backend
|
||||
/// differs (e.g. release reading a row a test build uploaded) does not
|
||||
/// count this as uploaded — see `call_view::uploaded_here`.
|
||||
pub crm_base_url: Option<String>,
|
||||
/// When the transcript was last uploaded.
|
||||
pub uploaded_at: Option<DateTime<Local>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user