[
	{
		"name": "mu_campaign",
		"comment": "MediaUploader campaigns. This is *not* the primary storage for campaigns. Just stores a copy of information that is already present in the appropriate wikipages, for easier indexing / querying",
		"columns": [
			{
				"name": "campaign_page_id",
				"comment": "Foreign and primary key – the ID of the page the campaign is stored in.",
				"type": "integer",
				"options": { "notnull": true, "unsigned": true }
			},
			{
				"name": "campaign_enabled",
				"comment": "Whether the campaign is enabled (not necessarily active)",
				"type": "integer",
				"options": { "default": 0, "length": 1, "notnull": true }
			},
			{
				"name": "campaign_validity",
				"comment": "Validity status of this campaign",
				"type": "integer",
				"options": { "length": 1, "notnull": true }
			},
			{
				"name": "campaign_content",
				"comment": "The raw, unparsed content of the campaign, encoded as JSON.",
				"type": "blob",
				"options": { "notnull": false }
			}
		],
		"indexes": [
			{
				"name": "mu_campaign_page",
				"columns": [ "campaign_page_id" ],
				"unique": true
			},
			{
				"name": "mu_campaign_enabled",
				"columns": [ "campaign_enabled", "campaign_page_id" ],
				"unique": false
			}
		],
		"pk": [ "campaign_page_id" ]
	}
]
