persisting orders and guests

This commit is contained in:
Chris Smith
2019-03-04 16:27:40 -06:00
parent 588d5fd5c0
commit 0c35e76ac8
4 changed files with 171 additions and 15 deletions

View File

@@ -27,15 +27,15 @@ DROP TABLE IF EXISTS `guests`;
CREATE TABLE `guests` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`order_id` int(11) NOT NULL,
`name` varchar(64) NOT NULL,
`email` varchar(64) NOT NULL,
`phone` varchar(64) NOT NULL,
`childcare` tinyint(4) NOT NULL,
`valet` tinyint(4) NOT NULL,
`restrictions` tinyint(4) NOT NULL,
`table` int(11) NOT NULL,
`paddle` int(11) NOT NULL,
`stripe_id` varchar(64) DEFAULT NULL,
`name` varchar(64) NULL,
`email` varchar(64) NULL,
`phone` varchar(64) NULL,
`childcare` tinyint(4) NULL,
`valet` tinyint(4) NULL,
`restrictions` tinyint(4) NULL,
`table` int(11) NULL,
`paddle` int(11) NULL,
`stripe_id` varchar(64) NULL,
`uuid` varchar(64) NOT NULL,
`date_created` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),