Skip to content

Instantly share code, notes, and snippets.

@Nek-
Created May 8, 2012 21:50
Show Gist options
  • Save Nek-/2639664 to your computer and use it in GitHub Desktop.
Save Nek-/2639664 to your computer and use it in GitHub Desktop.
CREATE TABLE IF NOT EXISTS `address` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`firstname` varchar(255) NOT NULL,
`lastname` varchar(255) NOT NULL,
`street` varchar(255) NOT NULL,
`city` varchar(255) NOT NULL,
`postcode` varchar(255) NOT NULL,
`created_at` datetime NOT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment