-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwc_succursale.sql
128 lines (102 loc) · 2.92 KB
/
wc_succursale.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
-- phpMyAdmin SQL Dump
-- version 4.5.4.1
-- http://www.phpmyadmin.net
--
-- Client : localhost
-- Généré le : Dim 11 Mars 2018 à 19:45
-- Version du serveur : 5.7.11
-- Version de PHP : 5.6.18
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Base de données : `wc_succursale`
--
CREATE DATABASE IF NOT EXISTS `wc_succursale` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
USE `wc_succursale`;
-- --------------------------------------------------------
--
-- Structure de la table `idorder_item_option_selections`
--
CREATE TABLE `idorder_item_option_selections` (
`idOption` int(11) NOT NULL,
`idselection` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `item`
--
CREATE TABLE `item` (
`id` int(11) NOT NULL,
`pricemodifier` int(3) NOT NULL DEFAULT '100'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `orders`
--
CREATE TABLE `orders` (
`id` int(11) NOT NULL,
`confirmed` tinyint(1) NOT NULL DEFAULT '0',
`ready` tinyint(1) NOT NULL DEFAULT '0'
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `order_item`
--
CREATE TABLE `order_item` (
`id` int(11) NOT NULL,
`idItem` int(11) NOT NULL,
`idOrder` int(11) NOT NULL,
`quantity` int(11) NOT NULL,
`Instructions` varchar(256) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `order_item_option`
--
CREATE TABLE `order_item_option` (
`id` int(11) NOT NULL,
`idorder_item` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Index pour les tables exportées
--
--
-- Index pour la table `idorder_item_option_selections`
--
ALTER TABLE `idorder_item_option_selections`
ADD PRIMARY KEY (`idOption`,`idselection`);
--
-- Index pour la table `item`
--
ALTER TABLE `item`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Index pour la table `order_item`
--
ALTER TABLE `order_item`
ADD PRIMARY KEY (`id`);
--
-- AUTO_INCREMENT pour les tables exportées
--
--
-- AUTO_INCREMENT pour la table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
--
-- AUTO_INCREMENT pour la table `order_item`
--
ALTER TABLE `order_item`
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;