Schema

seed-data.json contract for the Tahor app.

Top-Level Structure

KeyTypeRequiredDescription
schemaVersionintegerYesSchema version (currently 1)
generatedAtstringYesISO 8601 timestamp
ingredientsarrayYesList of ingredient records
kosherSymbolsarrayYesList of Kosher certification symbols
animalsarrayYesList of clean/unclean animal references
brandsarrayNoList of brand records
brandIngredientClaimsarrayNoList of brand-ingredient trust claims

Enums

CleanlinessStatus (Ingredient Status)

clean, unclean, questionable, levain

IngredientCategory

mammals, birds, fish, insects, dairy, additives, plantBased, alcohol, blood, enzymes, gelatin, unknown

AnimalCategory

mammal, bird, fish, insect, reptile

KosherReliability

trusted, mixed, controversial, N/A

TrustCategory (Brand Claims)

trusted, not_trusted, maybe

Entity Schemas

Ingredient

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier
namestringYesPrimary name
aliasesstring[]YesAlternative names
statusCleanlinessStatusYesClean/Unclean/Questionable/Levain
categoryIngredientCategoryYesClassification
possibleSourcesstring[]YesPotential sources (e.g., “pork”, “beef”)
biblicalReferencestring?NoBible verse citation
notesstring?NoAdditional information
searchKeywordsstring[]YesSearch boost keywords
updatedAtstringYesISO 8601 timestamp

KosherSymbol

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier
symbolNamestringYesShort code (e.g., “OU”, “Star-K”)
symbolDescriptionstring?NoFull description
hechsherUrlstring?NoCertification body website
reliabilityKosherReliabilityYesTrust level
notesstring?NoAdditional information

Animal

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier
namestringYesCommon name
scientificNamestring?NoScientific classification
isCleanbooleanYesClean status per Torah law
biblicalReferencestring?NoBible verse citation
notesstring?NoAdditional information
categoryAnimalCategoryYesBiological category

Brand

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier
namestringYesBrand name
websiteURLstring?NoBrand website
notesstring?NoAdditional information
updatedAtstringYesISO 8601 timestamp

BrandIngredientClaim

FieldTypeRequiredDescription
idstring (UUID)YesUnique identifier
brandIdstringYesReference to brand.id
ingredientIdstringYesReference to ingredient.id
trustCategoryTrustCategoryYesTrust verdict
evidenceTypestringYesType of evidence (e.g., “website”, “email”)
evidenceURLstring?NoLink to evidence
evidenceCommentstring?NoNotes about the evidence
updatedAtstringYesISO 8601 timestamp

Cross-Reference Rules

Schema File

The formal JSON Schema is at /schema/seed-data.schema.json.