{
    "type": "object",
    "properties": {
        "id": {
            "type": "string",
            "description": "Unique identifier for the created post"
        },
        "locationId": {
            "type": "string",
            "description": "The location ID where the post was created"
        },
        "content": {
            "type": "string",
            "description": "The content of the social media post"
        },
        "socialAccounts": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "List of social media platforms the post was created for"
        },
        "mediaUrls": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "List of media URLs attached to the post"
        },
        "hashtags": {
            "type": "array",
            "items": {
                "type": "string"
            },
            "description": "List of hashtags used in the post"
        },
        "postType": {
            "type": "string",
            "enum": ["post", "story", "reel"],
            "description": "Type of social media post"
        },
        "locationTag": {
            "type": "string",
            "description": "Location tag for the post"
        },
        "status": {
            "type": "string",
            "enum": ["draft", "scheduled", "published", "failed"],
            "description": "Current status of the post"
        },
        "publishedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the post was published"
        },
        "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the post was created"
        },
        "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp when the post was last updated"
        },
        "analytics": {
            "type": "object",
            "properties": {
                "impressions": {
                    "type": "number"
                },
                "likes": {
                    "type": "number"
                },
                "shares": {
                    "type": "number"
                },
                "comments": {
                    "type": "number"
                },
                "clicks": {
                    "type": "number"
                },
                "reach": {
                    "type": "number"
                },
                "engagement": {
                    "type": "number"
                }
            },
            "description": "Analytics data for the post"
        }
    },
    "required": ["id", "locationId", "content", "socialAccounts", "status"],
    "version": 1
}
