Created
June 30, 2013 21:29
-
-
Save fernandolopes/5896992 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Navicat Premium Data Transfer | |
| Source Server : Quero Sorvete | |
| Source Server Type : MySQL | |
| Source Server Version : 50531 | |
| Source Host : localhost | |
| Source Database : querecom_quero_sorvete | |
| Target Server Type : MySQL | |
| Target Server Version : 50531 | |
| File Encoding : utf-8 | |
| Date: 06/30/2013 18:28:10 PM | |
| */ | |
| SET NAMES utf8; | |
| SET FOREIGN_KEY_CHECKS = 0; | |
| -- ---------------------------- | |
| -- Table structure for `pedidos` | |
| -- ---------------------------- | |
| DROP TABLE IF EXISTS `pedidos`; | |
| CREATE TABLE `pedidos` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `transacaoID` varchar(50) NOT NULL DEFAULT '0', | |
| `statusTransacao` varchar(200) DEFAULT NULL, | |
| `tipoPagamento` varchar(60) DEFAULT NULL, | |
| `extras` varchar(200) DEFAULT NULL, | |
| `anotacao` text, | |
| `dataTransacao` date NOT NULL, | |
| `total` double NOT NULL DEFAULT '0', | |
| `cliente_id` int(11) NOT NULL, | |
| `shippingCost` double NOT NULL DEFAULT '0', | |
| `endereco_id` int(11) DEFAULT NULL, | |
| PRIMARY KEY (`id`), | |
| KEY `usuario_id` (`cliente_id`), | |
| KEY `cliente_id` (`cliente_id`), | |
| KEY `endereco_id` (`endereco_id`), | |
| CONSTRAINT `fk_pedidos_endereco_entrega` FOREIGN KEY (`endereco_id`) REFERENCES `enderecos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE, | |
| CONSTRAINT `fk_pedidos_clientes` FOREIGN KEY (`cliente_id`) REFERENCES `clientes` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| ) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8; | |
| -- ---------------------------- | |
| -- Records of `pedidos` | |
| -- ---------------------------- | |
| BEGIN; | |
| INSERT INTO `pedidos` VALUES ('7', '0', 'PENDENTE', null, null, null, '2013-06-30', '17', '1119', '5', null), ('8', '0', 'PENDENTE', null, null, null, '2013-06-30', '26', '1119', '5', null); | |
| COMMIT; | |
| SET FOREIGN_KEY_CHECKS = 1; | |
| /* | |
| Navicat Premium Data Transfer | |
| Source Server : Quero Sorvete | |
| Source Server Type : MySQL | |
| Source Server Version : 50531 | |
| Source Host : localhost | |
| Source Database : querecom_quero_sorvete | |
| Target Server Type : MySQL | |
| Target Server Version : 50531 | |
| File Encoding : utf-8 | |
| Date: 06/30/2013 18:27:55 PM | |
| */ | |
| SET NAMES utf8; | |
| SET FOREIGN_KEY_CHECKS = 0; | |
| -- ---------------------------- | |
| -- Table structure for `produtos` | |
| -- ---------------------------- | |
| DROP TABLE IF EXISTS `produtos`; | |
| CREATE TABLE `produtos` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `name` varchar(60) DEFAULT NULL, | |
| `description` varchar(60) NOT NULL, | |
| `price` double DEFAULT '0', | |
| `selectedQuantity` int(11) DEFAULT NULL, | |
| `pedido_id` int(11) DEFAULT NULL, | |
| `selectedFlavors` varchar(255) DEFAULT NULL, | |
| PRIMARY KEY (`id`), | |
| KEY `pedido_id` (`pedido_id`), | |
| CONSTRAINT `fk_produtos_pedidos` FOREIGN KEY (`pedido_id`) REFERENCES `pedidos` (`id`) ON DELETE CASCADE ON UPDATE CASCADE | |
| ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; | |
| -- ---------------------------- | |
| -- Records of `produtos` | |
| -- ---------------------------- | |
| BEGIN; | |
| INSERT INTO `produtos` VALUES ('7', '2 Sabores 230g - Diet', '* com esta embalagem você poderá escolher 2 sabores.', '12', '1', '7', 'Chocolate,Cajá'), | |
| ('8', '1 Sabor 170g', '* com esta embalagem você poderá escolher 1 sabor.', '9', '1', '8', 'Abacate'), | |
| ('9', '2 Sabores 230g - Diet', '* com esta embalagem você poderá escolher 2 sabores.', '12', '1', '8', 'Cajá,Chocolate'); | |
| COMMIT; | |
| SET FOREIGN_KEY_CHECKS = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment