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
stringthat refers to the ID of theVariantscollection.
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);