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
| --
-- Structure de la table `client`
--
CREATE TABLE IF NOT EXISTS `client` (
`nom` text NOT NULL,
`adresse` text NOT NULL,
`commande_passee` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `code_produit`
--
CREATE TABLE IF NOT EXISTS `code_produit` (
`generique` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `commande`
--
CREATE TABLE IF NOT EXISTS `commande` (
`magasin_de_fabrication` int(100) NOT NULL,
`client` text NOT NULL,
`liste_definie_produit` int(100) NOT NULL,
`adresse_de_livraison` int(100) NOT NULL,
`date_definie` int(100) NOT NULL,
`prix_defini` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `fournisseur`
--
CREATE TABLE IF NOT EXISTS `fournisseur` (
`magasin_fourni` varchar(100) NOT NULL,
`liste_produit_finie` int(100) NOT NULL,
`commande_recue` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `magasin`
--
CREATE TABLE IF NOT EXISTS `magasin` (
`nom` text NOT NULL,
`adresse` varchar(100) NOT NULL,
`geo-spatiale` varchar(100) NOT NULL,
`nombre_transporteur` int(100) NOT NULL,
`marge_produit` int(100) NOT NULL,
`stock` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Structure de la table `produit`
--
CREATE TABLE IF NOT EXISTS `produit` (
`marque` text NOT NULL,
`quantite` int(100) NOT NULL,
`poids` varchar(100) NOT NULL,
`date_peremption` int(100) NOT NULL,
`code_produit_generique` varchar(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-- --------------------------------------------------------
--
-- Structure de la table `transporteur`
--
CREATE TABLE IF NOT EXISTS `transporteur` (
`magasin` text NOT NULL,
`nombre_camion` int(100) NOT NULL,
`commande_livree` int(100) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1; |
Partager