Vous êtes sur la page 1sur 2

-- phpMyAdmin SQL Dump

-- version 4.8.4
-- https://www.phpmyadmin.net/
--
-- Hôte : 127.0.0.1:3306

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";


SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
--
-- Base de données : `bd-pi-output`
--

-- --------------------------------------------------------

--
-- Structure de la table `dim_cars`
--

DROP TABLE IF EXISTS `dim_cars`;


CREATE TABLE IF NOT EXISTS `dim_cars` (
`Id_voiture` int(10) DEFAULT NULL,
`Matricule` varchar(10) DEFAULT NULL,
`prix_de_vente` integer(20) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Structure de la table `dim_client`
--

DROP TABLE IF EXISTS `dim_client`;


CREATE TABLE IF NOT EXISTS `dim_client` (
`id_client` int(10) DEFAULT NULL,
`Cin_client` int(10) DEFAULT NULL,
`NomPrenom_client` varchar(30) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Structure de la table `dim_temps`
--

DROP TABLE IF EXISTS `dim_temps`;


CREATE TABLE IF NOT EXISTS `dim_temps` (
`id_temps` int(10) DEFAULT NULL,
`Date` datetime DEFAULT NULL,
`Annee` varchar(100) DEFAULT NULL,
`Mois` varchar(100) DEFAULT NULL,
`Jours` varchar(100) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

-- --------------------------------------------------------
--
-- Structure de la table `fact`
--
DROP TABLE IF EXISTS `fact`;
CREATE TABLE IF NOT EXISTS `fact` (
`id_fact` int(10) DEFAULT NULL,
`id_produit` int(10) DEFAULT NULL,
`id_client` int(10) DEFAULT NULL,
`id_temps` int(10) DEFAULT NULL,
`Mesure` int(10) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
COMMIT;

Vous aimerez peut-être aussi