Skip to content

Instantly share code, notes, and snippets.

@sanity
Created March 25, 2012 14:13
Show Gist options
  • Save sanity/46e5fa5f5a768725eb7c to your computer and use it in GitHub Desktop.
Save sanity/46e5fa5f5a768725eb7c to your computer and use it in GitHub Desktop.
--
-- Table structure for table `campaigns`
--
DROP TABLE IF EXISTS `campaigns`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `campaigns` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`budget` decimal(15,5) NOT NULL DEFAULT '0.00000',
`start_date` datetime DEFAULT NULL,
`end_date` datetime DEFAULT NULL,
`budget_interval` enum('day','week','month','year') NOT NULL DEFAULT 'day',
`lastModified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`name` varchar(256) DEFAULT NULL,
`account_id` int(11) NOT NULL,
`read_only` enum('yes','no') NOT NULL DEFAULT 'no',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment