103 lines
3.9 KiB
SQL
103 lines
3.9 KiB
SQL
-- MySQL dump 10.19 Distrib 10.3.38-MariaDB, for debian-linux-gnu (x86_64)
|
|
--
|
|
-- Host: localhost Database: L_L
|
|
-- ------------------------------------------------------
|
|
-- Server version 10.3.38-MariaDB-0ubuntu0.20.04.1
|
|
|
|
/*!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 `Bookings`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `Bookings`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `Bookings` (
|
|
`BookingID` int(11) DEFAULT NULL,
|
|
`BookingDate` date DEFAULT NULL,
|
|
`TableNumber` int(11) DEFAULT NULL,
|
|
`NumberOfGuests` int(11) DEFAULT NULL,
|
|
`CustomerID` int(11) DEFAULT NULL
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `Bookings`
|
|
--
|
|
|
|
LOCK TABLES `Bookings` WRITE;
|
|
/*!40000 ALTER TABLE `Bookings` DISABLE KEYS */;
|
|
INSERT INTO `Bookings` VALUES (10,'2021-11-10',7,5,1),(11,'2021-11-10',5,2,2),(12,'2021-11-10',3,2,4),(13,'2021-11-11',2,5,5),(14,'2021-11-11',5,2,6),(15,'2021-11-11',3,2,7),(16,'2021-11-11',3,5,1),(17,'2021-11-12',5,2,2),(18,'2021-11-12',3,2,4),(19,'2021-11-13',7,5,6),(20,'2021-11-14',5,2,3),(21,'2021-11-14',3,2,4);
|
|
/*!40000 ALTER TABLE `Bookings` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `Courses`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `Courses`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `Courses` (
|
|
`CourseName` varchar(255) NOT NULL,
|
|
`Cost` decimal(4,2) DEFAULT NULL,
|
|
PRIMARY KEY (`CourseName`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `Courses`
|
|
--
|
|
|
|
LOCK TABLES `Courses` WRITE;
|
|
/*!40000 ALTER TABLE `Courses` DISABLE KEYS */;
|
|
/*!40000 ALTER TABLE `Courses` ENABLE KEYS */;
|
|
UNLOCK TABLES;
|
|
|
|
--
|
|
-- Table structure for table `Customers`
|
|
--
|
|
|
|
DROP TABLE IF EXISTS `Customers`;
|
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
/*!40101 SET character_set_client = utf8 */;
|
|
CREATE TABLE `Customers` (
|
|
`CustomerID` int(11) NOT NULL,
|
|
`FullName` varchar(100) NOT NULL,
|
|
`PhoneNumber` int(11) NOT NULL,
|
|
PRIMARY KEY (`CustomerID`),
|
|
UNIQUE KEY `PhoneNumber` (`PhoneNumber`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
|
--
|
|
-- Dumping data for table `Customers`
|
|
--
|
|
|
|
LOCK TABLES `Customers` WRITE;
|
|
/*!40000 ALTER TABLE `Customers` DISABLE KEYS */;
|
|
INSERT INTO `Customers` VALUES (1,'Vanessa McCarthy',757536378),(2,'Marcos Romero',757536379),(3,'Hiroki Yamane',757536376),(4,'Anna Iversen',757536375),(5,'Diana Pinto',757536374),(6,'Altay Ayhan',757636378),(7,'Jane Murphy',753536379),(8,'Laurina Delgado',754536376),(9,'Mike Edwards',757236375),(10,'Karl Pederson',757936374);
|
|
/*!40000 ALTER TABLE `Customers` 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-05-15 11:51:03
|