Overview
The Service model represents services and organizations available in the Dzaleka Refugee Camp. Services can include cultural organizations, educational institutions, healthcare facilities, and community services.Schema Definition
The Service model is defined using Zod schema validation insrc/content.config.ts:38-76.
TypeScript Type
Fields
Core Fields
The name of the service or organization.
A detailed description of the service, its mission, and what it offers to the community.
The category of service (e.g., “Cultural & Arts”, “Education”, “Healthcare”, “Community Services”).
Whether this service should be featured prominently on the platform. Defaults to
false.Indicates if the service has been verified by administrators.
Path to the service’s logo image (e.g., “/images/ayap.jpg”).
Path to a cover or promotional image for the service.
Current operational status of the service. Options:
'active' | 'inactive'. Defaults to 'active'.Timestamp of when the service information was last updated.
Array of tags for categorization and searchability.
Contact Information
Location Information
Social Media
Business Hours
Array of objects defining operating hours for each day of the week.
Example
Here’s a complete example of a Service object from the African Youth Artistic Poetry organization:Usage in Content
Services are stored as Markdown files insrc/content/services/ with YAML frontmatter:
Validation Rules
title,description, andcategoryare required fieldsstatusmust be either'active'or'inactive'- Coordinates must be valid numbers representing latitude and longitude
- Email addresses in contact information are not validated but should follow standard email format
- URLs in social media fields should be complete URLs including protocol