Skip to content

Instantly share code, notes, and snippets.

@NandoKstroNet
Created June 29, 2018 19:37
Show Gist options
  • Save NandoKstroNet/249935983ddd7e35fbaaae0620eee491 to your computer and use it in GitHub Desktop.
Save NandoKstroNet/249935983ddd7e35fbaaae0620eee491 to your computer and use it in GitHub Desktop.
CREATE TABLE `products` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`category_id` int(11) DEFAULT NULL,
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`price` float(10,2) DEFAULT NULL,
`amount` int(11) DEFAULT NULL,
`description` text COLLATE utf8_unicode_ci,
`slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment