Skip to content

Instantly share code, notes, and snippets.

@barrychapman
Created June 22, 2012 18:43
Show Gist options
  • Save barrychapman/2974461 to your computer and use it in GitHub Desktop.
Save barrychapman/2974461 to your computer and use it in GitHub Desktop.
delimiter $$
CREATE TABLE `receivables` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` bigint(20) unsigned NOT NULL,
`project_id` bigint(20) unsigned NOT NULL,
`pledge_id` char(36) NOT NULL,
`token` varchar(50) NOT NULL,
`amount` double(10,2) unsigned NOT NULL,
`due_by_date` datetime DEFAULT NULL,
`settled` tinyint(1) DEFAULT '0',
`created` datetime DEFAULT NULL,
`modified` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=46 DEFAULT CHARSET=utf8$$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment