0% found this document useful (0 votes)
26 views3 pages

Tables de La baseDD

The document describes the creation of a database called "magmaket" and several tables within it to store information for an online store. It includes the CREATE TABLE statements to define the structure of tables for purchases, articles, categories, clients, accounts, journals, and transaction summaries. The tables are designed to track items, customers, orders, payments and other commerce-related data.

Uploaded by

Muhammad Fall
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

Tables de La baseDD

The document describes the creation of a database called "magmaket" and several tables within it to store information for an online store. It includes the CREATE TABLE statements to define the structure of tables for purchases, articles, categories, clients, accounts, journals, and transaction summaries. The tables are designed to track items, customers, orders, payments and other commerce-related data.

Uploaded by

Muhammad Fall
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Cr�er une Base de donn�es : magmaket

et cr�er toutes ces tables l� dedans

Remarque : si vous avez un probl�me, contactez - moi sur


E-mail : [email protected]
----------------------------------------------
-- Structure de la table `com_achetter`
--

CREATE TABLE IF NOT EXISTS `com_achetter` (


`idA` int(11) NOT NULL AUTO_INCREMENT,
`idArt` int(11) NOT NULL,
`prixU` int(11) NOT NULL,
`quant` int(11) NOT NULL,
`total` int(11) NOT NULL,
PRIMARY KEY (`idA`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15 ;

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

--
-- Structure de la table `com_articles`
--

CREATE TABLE IF NOT EXISTS `com_articles` (


`idArt` int(11) NOT NULL AUTO_INCREMENT,
`idCli` int(11) NOT NULL,
`categ` int(11) NOT NULL,
`libele` varchar(255) NOT NULL,
`quant` int(11) NOT NULL,
`prixUnit` int(11) NOT NULL,
`dat` varchar(29) NOT NULL,
`etat` varchar(10) NOT NULL,
`refA` varchar(6) NOT NULL,
`photo` varchar(255) NOT NULL DEFAULT 'logo.jpg',
`desc` text NOT NULL,
`etatStock` varchar(10) NOT NULL,
PRIMARY KEY (`idArt`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

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

--
-- Structure de la table `com_categorie`
--

CREATE TABLE IF NOT EXISTS `com_categorie` (


`idCat` int(11) NOT NULL AUTO_INCREMENT,
`libele` varchar(29) NOT NULL,
`nomCat` varchar(25) NOT NULL,
PRIMARY KEY (`idCat`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=7 ;

--
-- Contenu de la table `com_categorie`
--
-- --------------------------------------------------------

--
-- Structure de la table `com_client`
--

CREATE TABLE IF NOT EXISTS `com_client` (


`idCli` int(11) NOT NULL AUTO_INCREMENT,
`pseudo` varchar(16) NOT NULL,
`nomCli` varchar(20) NOT NULL,
`prenomCli` varchar(20) NOT NULL,
`adresCli` varchar(40) NOT NULL,
`fonction` varchar(20) NOT NULL,
`sex` varchar(11) NOT NULL,
`civilite` varchar(11) NOT NULL,
`village` varchar(16) NOT NULL,
`region` varchar(16) NOT NULL,
`telCli` varchar(19) NOT NULL,
`mail` varchar(30) NOT NULL,
`pas` varchar(255) NOT NULL,
`matr` varchar(6) NOT NULL,
`etat` varchar(4) NOT NULL,
PRIMARY KEY (`idCli`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;

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

--
-- Structure de la table `com_conte`
--

CREATE TABLE IF NOT EXISTS `com_conte` (


`idCon` int(11) NOT NULL AUTO_INCREMENT,
`idCli` int(17) NOT NULL,
`numCon` int(11) NOT NULL,
`montant` int(11) NOT NULL,
`dat` varchar(19) NOT NULL,
`comu` int(11) NOT NULL,
PRIMARY KEY (`idCon`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=21 ;

--
-- Contenu de la table `com_conte`
--

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

--
-- Structure de la table `com_journal`
--

CREATE TABLE IF NOT EXISTS `com_journal` (


`idJ` int(11) NOT NULL AUTO_INCREMENT,
`montJ` int(11) NOT NULL,
`prixArt` float NOT NULL,
`idVendeur` int(11) NOT NULL,
PRIMARY KEY (`idJ`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

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

--
-- Structure de la table `com_releve`
--

CREATE TABLE IF NOT EXISTS `com_releve` (


`idCli` int(11) NOT NULL,
`numCon` int(11) NOT NULL,
`total` int(11) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Contenu de la table `com_releve`
--

You might also like