You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

309 lines
7.9 KiB

-- MariaDB dump 10.19 Distrib 10.11.2-MariaDB, for Linux (x86_64)
--
-- Host: localhost Database: cafe
-- ------------------------------------------------------
-- Server version 10.11.2-MariaDB
/*!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 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `comprend`
--
DROP TABLE IF EXISTS `comprend`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `comprend` (
`numfacture` int(11) NOT NULL,
`numcons` int(11) NOT NULL,
`qte` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `comprend`
--
LOCK TABLES `comprend` WRITE;
/*!40000 ALTER TABLE `comprend` DISABLE KEYS */;
INSERT INTO `comprend` VALUES
(1000,100,3),
(1000,101,1),
(1001,102,1),
(1001,101,2),
(1001,105,2),
(1002,106,1),
(1002,107,1),
(1003,106,1),
(1003,107,1),
(1003,108,1),
(1003,110,1),
(1003,122,1),
(1003,130,1),
(1004,100,2),
(1004,122,3),
(1005,100,2),
(1005,108,3),
(1005,124,2),
(1006,105,2),
(1007,102,1),
(1007,108,1),
(1007,124,2),
(1008,102,1),
(1008,108,1),
(1008,100,3),
(1009,108,3),
(1009,100,1),
(1010,102,1),
(1010,124,3),
(1011,102,1),
(1012,124,3),
(1013,102,3),
(1013,124,1),
(1013,100,1),
(1014,102,1),
(1014,105,1),
(1015,130,4),
(1016,107,1),
(1017,122,1),
(1017,130,4),
(1100,101,1),
(1100,102,1),
(1101,101,2),
(1101,105,2),
(1102,106,1),
(1102,107,1),
(1102,122,1),
(1103,106,1),
(1103,107,1),
(1103,108,1),
(1103,110,1),
(1103,130,1),
(1104,100,2),
(1104,122,3),
(1104,124,2),
(1105,100,2),
(1105,108,3),
(1106,102,1),
(1106,105,2),
(1107,108,1),
(1107,124,2),
(1108,102,1),
(1108,108,1),
(1200,101,3),
(1200,106,1),
(1200,120,1),
(1200,130,1),
(1201,101,2),
(1201,106,2),
(1202,100,1),
(1202,101,1),
(1202,122,1),
(1203,101,1),
(1203,102,1),
(1203,108,1),
(1203,121,1),
(1203,130,1),
(1204,101,2),
(1204,122,3),
(1204,124,2),
(1205,100,2),
(1205,101,3),
(1206,101,1),
(1206,108,2),
(1207,108,1),
(1207,110,2),
(1207,101,1),
(1208,101,1),
(1208,108,1),
(1207,200,1);
/*!40000 ALTER TABLE `comprend` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `consommation`
--
DROP TABLE IF EXISTS `consommation`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `consommation` (
`numcons` int(11) NOT NULL AUTO_INCREMENT,
`libcons` varchar(255) NOT NULL,
`prixcons` decimal(10,2) NOT NULL,
PRIMARY KEY (`numcons`)
) ENGINE=InnoDB AUTO_INCREMENT=301 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `consommation`
--
LOCK TABLES `consommation` WRITE;
/*!40000 ALTER TABLE `consommation` DISABLE KEYS */;
INSERT INTO `consommation` VALUES
(100,'Café',1.00),
(101,'Café double',2.00),
(102,'Café crème',1.60),
(105,'Chocolat',2.00),
(106,'Bière pression',2.50),
(107,'Bière 25 Cl',2.50),
(108,'Bière 33 Cl',3.00),
(110,'Bière 50 Cl',4.50),
(120,'Jus de fruit',2.00),
(121,'Fruit pressé',3.00),
(122,'Perrier',2.50),
(124,'Orangina',2.70),
(130,'Coca Cola',2.00),
(150,'Jus de tomate',2.00),
(200,'Bière Blonde',4.50),
(300,'Cocktail',8.00);
/*!40000 ALTER TABLE `consommation` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `facture`
--
DROP TABLE IF EXISTS `facture`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `facture` (
`numfacture` int(11) NOT NULL AUTO_INCREMENT,
`numtable` int(11) NOT NULL,
`numserveur` int(11) NOT NULL,
`datefacture` date NOT NULL,
PRIMARY KEY (`numfacture`)
) ENGINE=InnoDB AUTO_INCREMENT=1209 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `facture`
--
LOCK TABLES `facture` WRITE;
/*!40000 ALTER TABLE `facture` DISABLE KEYS */;
INSERT INTO `facture` VALUES
(1001,5,53,'2005-12-02'),
(1002,3,52,'2005-12-02'),
(1003,5,50,'2005-12-04'),
(1004,4,52,'2005-12-04'),
(1005,1,53,'2005-12-05'),
(1006,3,52,'2005-12-06'),
(1007,5,53,'2005-12-07'),
(1008,7,51,'2005-12-08'),
(1009,1,53,'2005-12-09'),
(1010,5,53,'2005-12-09'),
(1011,3,52,'2005-12-09'),
(1012,5,50,'2005-12-09'),
(1013,4,52,'2005-12-10'),
(1014,1,53,'2005-12-11'),
(1015,3,52,'2005-12-11'),
(1016,5,53,'2005-12-12'),
(1017,7,51,'2005-12-12'),
(1100,1,53,'2006-01-21'),
(1101,5,53,'2006-01-21'),
(1102,3,52,'2006-01-21'),
(1103,5,50,'2006-01-21'),
(1104,4,52,'2006-01-22'),
(1105,1,53,'2006-01-22'),
(1106,3,52,'2006-01-22'),
(1107,5,53,'2006-01-22'),
(1108,7,51,'2006-01-22'),
(1200,1,53,'2006-02-21'),
(1201,5,53,'2006-02-21'),
(1202,3,52,'2006-02-21'),
(1203,5,50,'2006-02-21'),
(1204,4,52,'2006-02-22'),
(1205,1,53,'2006-02-22'),
(1206,3,52,'2006-02-22'),
(1207,5,53,'2006-02-22'),
(1208,7,51,'2006-02-22');
/*!40000 ALTER TABLE `facture` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `serveur`
--
DROP TABLE IF EXISTS `serveur`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `serveur` (
`numserveur` int(11) NOT NULL AUTO_INCREMENT,
`nomserveur` varchar(255) NOT NULL,
`rueserveur` varchar(255) NOT NULL,
`cpserveur` int(11) NOT NULL,
`villeserveur` varchar(255) NOT NULL,
`datenserveur` date NOT NULL,
`email` varchar(255) NOT NULL,
PRIMARY KEY (`numserveur`)
) ENGINE=InnoDB AUTO_INCREMENT=55 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `serveur`
--
LOCK TABLES `serveur` WRITE;
/*!40000 ALTER TABLE `serveur` DISABLE KEYS */;
INSERT INTO `serveur` VALUES
(50,'Durant Pierre','3 Rue des Lilas',90000,'BELFORT','1976-12-10','p.durant@lecafe.fr'),
(51,'Duchemin Paul','25 Avenue ROOSEVELT',90100,'DELLE','1978-06-05','p.duchemin@lecafe.fr'),
(52,'Martin Cathy','46 Grande rue',90500,'BAVILLIERS','1976-09-03','c.martin@lecafe.fr'),
(53,'Pillot Alain','5 Impasse Martin',90000,'BELFORT','1976-08-09','a.pillot@lecafe.fr'),
(54,'Séré Alain','Place des ducs',21000,'DIJON','1973-10-11','a.sere@lecafe.fr');
/*!40000 ALTER TABLE `serveur` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `tables`
--
DROP TABLE IF EXISTS `tables`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `tables` (
`numtable` int(11) NOT NULL AUTO_INCREMENT,
`nomtable` varchar(255) NOT NULL,
`numplace` int(11) NOT NULL,
PRIMARY KEY (`numtable`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `tables`
--
LOCK TABLES `tables` WRITE;
/*!40000 ALTER TABLE `tables` DISABLE KEYS */;
INSERT INTO `tables` VALUES
(1,'Entree-gche',6),
(3,'Fenetre1',3),
(4,'Fenetre2',8),
(5,'Fenetre3',4),
(6,'Fond-gche',4),
(7,'Fond-dte',2);
/*!40000 ALTER TABLE `tables` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2023-02-27 10:30:24