Skip to main content
Version: 1.0.0

ValidationNotes

Purpose​

The ValidationNotes collection stores notes and feedback related to the validation process of product variants. Each document contains information about issues, declination reasons, severity, related images, and references to the specific variant. This collection helps track validation outcomes, document problems, and facilitate communication during the review and approval process.

Document schema​

{
"causeDeclination": ["string"],
"date": "timestamp",
"declinedBy": "string",
"description": "string",
"idVariant": "string",
"images": ["string"],
"issueTitle": "string",
"nameProduct": "string",
"readBy": "string",
"referenceImageCorrect": ["string"],
"severity": "string",
"skuModel": "string",
"status": "string"
}

Indexes​

  • idVariant is a string that refers to the ID of the Variants collection.

Query examples​

// Fetch the ValidationNote Reference Doc from Firebase
const validationNoteRef = doc(db, "ValidationNotes", validationNoteId);

// Get the Document Snapshot from the ValidationNote Reference Doc
const validationNoteDoc = await getDoc(validationNoteRef);