[
    {
        "collection": "sites",
        "meta": {
            "icon": "language",
            "note": "Managed WordPress sites"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "url",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "wp_username",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "wp_app_password",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "special": [
                        "hash"
                    ]
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Active",
                                "value": "active"
                            },
                            {
                                "text": "Paused",
                                "value": "paused"
                            },
                            {
                                "text": "Inactive",
                                "value": "inactive"
                            }
                        ]
                    }
                }
            },
            {
                "field": "domain_age_years",
                "type": "integer",
                "meta": {
                    "interface": "input",
                    "note": "For velocity calc"
                }
            },
            {
                "field": "domain",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "note": "Primary domain (alias for url)"
                }
            },
            {
                "field": "domain_aliases",
                "type": "json",
                "meta": {
                    "interface": "list",
                    "note": "Additional domains"
                }
            },
            {
                "field": "settings",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    }
                }
            }
        ]
    },
    {
        "collection": "pages",
        "meta": {
            "icon": "description",
            "note": "Static pages"
        },
        "fields": [
            {
                "field": "title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "slug",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "content",
                "type": "text",
                "meta": {
                    "interface": "input-rich-text-html"
                }
            },
            {
                "field": "site_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Draft",
                                "value": "draft"
                            },
                            {
                                "text": "Published",
                                "value": "published"
                            }
                        ]
                    }
                }
            },
            {
                "field": "schema_json",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "posts",
        "meta": {
            "icon": "article",
            "note": "Generated content posts (Legacy)"
        },
        "fields": [
            {
                "field": "title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "slug",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "content",
                "type": "text",
                "meta": {
                    "interface": "input-rich-text-html"
                }
            },
            {
                "field": "excerpt",
                "type": "text",
                "meta": {
                    "interface": "textarea"
                }
            },
            {
                "field": "site_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Draft",
                                "value": "draft"
                            },
                            {
                                "text": "Published",
                                "value": "published"
                            }
                        ]
                    }
                }
            },
            {
                "field": "meta_title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "seo_title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "seo_description",
                "type": "string",
                "meta": {
                    "interface": "textarea"
                }
            },
            {
                "field": "schema_json",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "leads",
        "meta": {
            "icon": "contacts",
            "note": "Lead capture data"
        },
        "fields": [
            {
                "field": "email",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "phone",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "source",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "site_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            }
        ]
    },
    {
        "collection": "campaign_masters",
        "meta": {
            "icon": "campaign",
            "note": "SEO Campaigns"
        },
        "fields": [
            {
                "field": "site_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "display": "related-values"
                },
                "schema": {
                    "foreign_key_table": "sites",
                    "foreign_key_column": "id"
                }
            },
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "headline_spintax_root",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "niche_variables",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    }
                }
            },
            {
                "field": "target_word_count",
                "type": "integer",
                "meta": {
                    "interface": "input",
                    "default_value": 1500
                }
            },
            {
                "field": "velocity_mode",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Ramp Up",
                                "value": "RAMP_UP"
                            },
                            {
                                "text": "Consistent",
                                "value": "CONSISTENT"
                            }
                        ]
                    }
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Active",
                                "value": "active"
                            },
                            {
                                "text": "Paused",
                                "value": "paused"
                            },
                            {
                                "text": "Completed",
                                "value": "completed"
                            }
                        ]
                    }
                }
            }
        ]
    },
    {
        "collection": "generated_articles",
        "meta": {
            "icon": "article",
            "note": "SEO Generated Articles"
        },
        "fields": [
            {
                "field": "site_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "campaign_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "campaign_masters"
                }
            },
            {
                "field": "title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "slug",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "html_content",
                "type": "text",
                "meta": {
                    "interface": "input-rich-text-html"
                }
            },
            {
                "field": "schema_json",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            },
            {
                "field": "meta_title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "meta_desc",
                "type": "text",
                "meta": {
                    "interface": "textarea"
                }
            },
            {
                "field": "generation_hash",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "readonly": true
                }
            },
            {
                "field": "is_published",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Queued",
                                "value": "queued"
                            },
                            {
                                "text": "Processing",
                                "value": "processing"
                            },
                            {
                                "text": "Approved",
                                "value": "approved"
                            },
                            {
                                "text": "Published",
                                "value": "published"
                            }
                        ]
                    }
                }
            },
            {
                "field": "sitemap_status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Ghost",
                                "value": "ghost"
                            },
                            {
                                "text": "Queued",
                                "value": "queued"
                            },
                            {
                                "text": "Indexed",
                                "value": "indexed"
                            }
                        ]
                    }
                }
            },
            {
                "field": "is_test_batch",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            },
            {
                "field": "date_updated",
                "type": "timestamp",
                "meta": {
                    "interface": "datetime",
                    "special": [
                        "date-updated"
                    ]
                }
            },
            {
                "field": "date_published",
                "type": "timestamp",
                "meta": {
                    "interface": "datetime"
                }
            },
            {
                "field": "priority",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "High",
                                "value": "high"
                            },
                            {
                                "text": "Medium",
                                "value": "medium"
                            },
                            {
                                "text": "Low",
                                "value": "low"
                            }
                        ]
                    }
                }
            },
            {
                "field": "assignee",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "note": "Assigned user"
                }
            },
            {
                "field": "due_date",
                "type": "timestamp",
                "meta": {
                    "interface": "datetime"
                }
            },
            {
                "field": "seo_score",
                "type": "integer",
                "meta": {
                    "interface": "input",
                    "note": "SEO quality score 0-100"
                }
            },
            {
                "field": "sync_status",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "note": "WordPress sync status"
                }
            }
        ]
    },
    {
        "collection": "headline_inventory",
        "meta": {
            "icon": "title",
            "note": "Generated Headlines"
        },
        "fields": [
            {
                "field": "campaign_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "campaign_masters"
                }
            },
            {
                "field": "final_title_text",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Available",
                                "value": "available"
                            },
                            {
                                "text": "Used",
                                "value": "used"
                            }
                        ]
                    }
                }
            },
            {
                "field": "used_on_article",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "generated_articles"
                }
            }
        ]
    },
    {
        "collection": "content_fragments",
        "meta": {
            "icon": "extension",
            "note": "Content Blocks"
        },
        "fields": [
            {
                "field": "campaign_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "campaign_masters"
                }
            },
            {
                "field": "fragment_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "content_body",
                "type": "text",
                "meta": {
                    "interface": "textarea"
                }
            },
            {
                "field": "word_count",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "production_queue",
        "meta": {
            "icon": "schedule",
            "note": "Content Schedule"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "campaign",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "campaign_masters"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Test Batch",
                                "value": "test_batch"
                            },
                            {
                                "text": "Pending",
                                "value": "pending"
                            },
                            {
                                "text": "Active",
                                "value": "active"
                            }
                        ]
                    }
                }
            },
            {
                "field": "total_requested",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "completed_count",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "velocity_mode",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "schedule_data",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "quality_flags",
        "meta": {
            "icon": "flag",
            "note": "Content Quality Issues"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "article_a",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "article_b",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "collision_text",
                "type": "text",
                "meta": {
                    "interface": "textarea"
                }
            },
            {
                "field": "similarity_score",
                "type": "float",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Pending",
                                "value": "pending"
                            },
                            {
                                "text": "Resolved",
                                "value": "resolved"
                            }
                        ]
                    }
                }
            }
        ]
    },
    {
        "collection": "avatar_intelligence",
        "meta": {
            "icon": "person",
            "note": "Avatar User Personas"
        },
        "fields": [
            {
                "field": "avatar_key",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true,
                    "note": "Unique slug"
                }
            },
            {
                "field": "slug",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true,
                    "note": "URL-friendly identifier"
                }
            },
            {
                "field": "base_name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "wealth_cluster",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "High Net Worth",
                                "value": "high_net_worth"
                            },
                            {
                                "text": "Mass Affluent",
                                "value": "mass_affluent"
                            },
                            {
                                "text": "Emerging",
                                "value": "emerging"
                            }
                        ]
                    }
                }
            },
            {
                "field": "business_niches",
                "type": "json",
                "meta": {
                    "interface": "list",
                    "note": "Array of niche strings"
                }
            },
            {
                "field": "tech_stack",
                "type": "json",
                "meta": {
                    "interface": "list",
                    "note": "Technologies used"
                }
            },
            {
                "field": "identity_male",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "identity_female",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "identity_neutral",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "pain_points",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            },
            {
                "field": "goals",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    },
                    "note": "Additional JSON data"
                }
            }
        ]
    },
    {
        "collection": "avatar_variants",
        "meta": {
            "icon": "people",
            "note": "Avatar Variations"
        },
        "fields": [
            {
                "field": "avatar_key",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "variant_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "geo_intelligence",
        "meta": {
            "icon": "map",
            "note": "Geographic Data Clusters"
        },
        "fields": [
            {
                "field": "cluster_key",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "unique": true
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "spintax_dictionaries",
        "meta": {
            "icon": "book",
            "note": "Spintax Dictionaries"
        },
        "fields": [
            {
                "field": "category",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "cartesian_patterns",
        "meta": {
            "icon": "grid_on",
            "note": "Logic patterns for Cartesian Engine"
        },
        "fields": [
            {
                "field": "pattern_key",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "unique": true
                }
            },
            {
                "field": "pattern_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "offer_blocks",
        "meta": {
            "icon": "inventory",
            "note": "Offer Content Blocks"
        },
        "fields": [
            {
                "field": "block_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "avatar_key",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "generation_jobs",
        "meta": {
            "icon": "engineering",
            "note": "Cartesian Generation Jobs"
        },
        "fields": [
            {
                "field": "site_id",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "target_quantity",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Pending",
                                "value": "Pending"
                            },
                            {
                                "text": "Processing",
                                "value": "Processing"
                            },
                            {
                                "text": "Complete",
                                "value": "Complete"
                            }
                        ]
                    }
                }
            },
            {
                "field": "filters",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            },
            {
                "field": "current_offset",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "image_templates",
        "meta": {
            "icon": "image",
            "note": "SVG Templates"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "svg_template",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "svg_source",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "is_default",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            },
            {
                "field": "preview",
                "type": "string",
                "meta": {
                    "interface": "image"
                }
            }
        ]
    },
    {
        "collection": "events",
        "meta": {
            "icon": "touch_app",
            "note": "Custom Interaction Events"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "event_name",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "event_category",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "event_label",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "event_value",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "page_path",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "session_id",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "metadata",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            }
        ]
    },
    {
        "collection": "pageviews",
        "meta": {
            "icon": "visibility",
            "note": "Traffic Logs"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "page_path",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "page_title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "referrer",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "user_agent",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "ip_address",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "device_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "utm_source",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "utm_medium",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "utm_campaign",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "utm_content",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "utm_term",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "is_bot",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            }
        ]
    },
    {
        "collection": "conversions",
        "meta": {
            "icon": "monetization_on",
            "note": "Goal Completions"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "conversion_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "value",
                "type": "float",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "currency",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "source",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "gclid",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "fbclid",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "sent_to_google",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            },
            {
                "field": "sent_to_facebook",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            }
        ]
    },
    {
        "collection": "site_analytics",
        "meta": {
            "icon": "settings_input_component",
            "note": "Analytics Config"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "google_ads_id",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "google_ads_conversion_label",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "fb_pixel_id",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "fb_access_token",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "special": [
                        "cast-hash"
                    ]
                }
            }
        ]
    },
    {
        "collection": "hub_pages",
        "meta": {
            "icon": "hub",
            "note": "Internal Linking Hubs"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "slug",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "parent_hub",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "hub_pages"
                }
            },
            {
                "field": "level",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "articles_count",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "link_targets",
        "meta": {
            "icon": "link",
            "note": "Internal Linking Targets"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "target_url",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "anchor_text",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "priority",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "is_active",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            }
        ]
    },
    {
        "collection": "work_log",
        "meta": {
            "icon": "history",
            "note": "System Audit Trail"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o"
                },
                "schema": {
                    "foreign_key_table": "sites"
                }
            },
            {
                "field": "action",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "entity_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "entity_id",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "details",
                "type": "json",
                "meta": {
                    "interface": "input-code"
                }
            },
            {
                "field": "user",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "globals",
        "meta": {
            "icon": "settings",
            "note": "Site-wide settings and branding",
            "singleton": true
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "site_name",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "site_tagline",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "logo",
                "type": "uuid",
                "meta": {
                    "interface": "file-image",
                    "special": [
                        "file"
                    ]
                }
            },
            {
                "field": "favicon",
                "type": "uuid",
                "meta": {
                    "interface": "file-image",
                    "special": [
                        "file"
                    ]
                }
            },
            {
                "field": "primary_color",
                "type": "string",
                "meta": {
                    "interface": "select-color"
                }
            },
            {
                "field": "secondary_color",
                "type": "string",
                "meta": {
                    "interface": "select-color"
                }
            },
            {
                "field": "footer_text",
                "type": "text",
                "meta": {
                    "interface": "input-rich-text-html"
                }
            },
            {
                "field": "social_links",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            },
            {
                "field": "scripts_head",
                "type": "text",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "html"
                    }
                }
            },
            {
                "field": "scripts_body",
                "type": "text",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "html"
                    }
                }
            }
        ]
    },
    {
        "collection": "navigation",
        "meta": {
            "icon": "menu",
            "note": "Site menus"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "label",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "url",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "target",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Same Window",
                                "value": "_self"
                            },
                            {
                                "text": "New Window",
                                "value": "_blank"
                            }
                        ]
                    }
                }
            },
            {
                "field": "parent",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "sort",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "geo_clusters",
        "meta": {
            "icon": "map",
            "note": "Geographic clusters for targeting"
        },
        "fields": [
            {
                "field": "cluster_key",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "state",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "description",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    }
                }
            }
        ]
    },
    {
        "collection": "geo_locations",
        "meta": {
            "icon": "location_on",
            "note": "Individual locations within clusters"
        },
        "fields": [
            {
                "field": "cluster",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "city",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "state",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "zip",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "population",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "coordinates",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    },
                    "note": "{lat, lng}"
                }
            }
        ]
    },
    {
        "collection": "locations_states",
        "meta": {
            "icon": "map",
            "note": "US States"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "code",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true,
                    "note": "2-letter state code"
                }
            },
            {
                "field": "population",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "locations_counties",
        "meta": {
            "icon": "map",
            "note": "US Counties"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "state",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "fips_code",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "population",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "locations_cities",
        "meta": {
            "icon": "location_city",
            "note": "US Cities"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "state",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "county",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "population",
                "type": "integer",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "zip_codes",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            }
        ]
    },
    {
        "collection": "forms",
        "meta": {
            "icon": "description",
            "note": "Contact forms"
        },
        "fields": [
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "fields_config",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    }
                }
            },
            {
                "field": "success_message",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "redirect_url",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "form_submissions",
        "meta": {
            "icon": "send",
            "note": "Form submissions"
        },
        "fields": [
            {
                "field": "form",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "data",
                "type": "json",
                "meta": {
                    "interface": "input-code",
                    "options": {
                        "language": "json"
                    }
                }
            },
            {
                "field": "ip_address",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "user_agent",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            }
        ]
    },
    {
        "collection": "content_modules",
        "meta": {
            "icon": "view_module",
            "note": "Reusable content modules"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "module_type",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "content",
                "type": "text",
                "meta": {
                    "interface": "input-rich-text-html"
                }
            },
            {
                "field": "variables",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            }
        ]
    },
    {
        "collection": "offer_blocks_universal",
        "meta": {
            "icon": "card_giftcard",
            "note": "Universal offer blocks"
        },
        "fields": [
            {
                "field": "block_id",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "title",
                "type": "string",
                "meta": {
                    "interface": "input"
                }
            },
            {
                "field": "hook_generator",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "universal_pains",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            },
            {
                "field": "universal_solutions",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            },
            {
                "field": "universal_value_points",
                "type": "json",
                "meta": {
                    "interface": "list"
                }
            },
            {
                "field": "cta_spintax",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            }
        ]
    },
    {
        "collection": "article_templates",
        "meta": {
            "icon": "article",
            "note": "Article structure templates"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "structure_json",
                "type": "json",
                "meta": {
                    "interface": "list",
                    "note": "Array of section types"
                }
            },
            {
                "field": "description",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            },
            {
                "field": "is_default",
                "type": "boolean",
                "meta": {
                    "interface": "boolean"
                }
            }
        ]
    },
    {
        "collection": "avatars",
        "meta": {
            "icon": "person",
            "note": "Simple avatar list (use avatar_intelligence for full data)"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "slug",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "description",
                "type": "text",
                "meta": {
                    "interface": "input-multiline"
                }
            }
        ]
    },
    {
        "collection": "campaigns",
        "meta": {
            "icon": "campaign",
            "note": "Marketing campaigns (use campaign_masters for SEO campaigns)"
        },
        "fields": [
            {
                "field": "name",
                "type": "string",
                "meta": {
                    "interface": "input",
                    "required": true
                }
            },
            {
                "field": "site",
                "type": "uuid",
                "meta": {
                    "interface": "select-dropdown-m2o",
                    "special": [
                        "m2o"
                    ]
                }
            },
            {
                "field": "status",
                "type": "string",
                "meta": {
                    "interface": "select-dropdown",
                    "options": {
                        "choices": [
                            {
                                "text": "Active",
                                "value": "active"
                            },
                            {
                                "text": "Paused",
                                "value": "paused"
                            },
                            {
                                "text": "Completed",
                                "value": "completed"
                            }
                        ]
                    }
                }
            },
            {
                "field": "start_date",
                "type": "timestamp",
                "meta": {
                    "interface": "datetime"
                }
            },
            {
                "field": "end_date",
                "type": "timestamp",
                "meta": {
                    "interface": "datetime"
                }
            }
        ]
    }
]