-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDDL.sql
87 lines (85 loc) · 2.79 KB
/
DDL.sql
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
86
87
CREATE DATABASE tourism_db;
-- Use the newly created database
USE tourism_db;
-- Create a table to store hotel registration data
CREATE TABLE IF NOT EXISTS hotel_registration (
ID INT PRIMARY KEY,
hotel_name VARCHAR(255) NOT NULL,
owner_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone_number int NOT NULL,
gst_number VARCHAR(20) NOT NULL,
address VARCHAR(255) NOT NULL,
pincode VARCHAR(10) NOT NULL,
city VARCHAR(100) NOT NULL,
stat VARCHAR(100) NOT NULL,
location VARCHAR(255) NOT NULL
);
-- Create a table to store flight operator registration data
CREATE TABLE IF NOT EXISTS flight_registration (
ID INT PRIMARY KEY,
operator_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone_number int NOT NULL,
gst_number VARCHAR(20) NOT NULL,
address VARCHAR(255) NOT NULL,
pincode VARCHAR(10) NOT NULL,
city VARCHAR(100) NOT NULL,
stat VARCHAR(100) NOT NULL,
country VARCHAR(100) NOT NULL,
location VARCHAR(255) NOT NULL
);
-- Create a table to store tourist registration data
CREATE TABLE IF NOT EXISTS tourist_registration (
ID INT PRIMARY KEY,
first_name VARCHAR(255) NOT NULL,
last_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone_number int NOT NULL,
identity_number VARCHAR(20) NOT NULL,
age int NOT NULL,
gender varchar(7) NOT NULL,
type varchar(20) NOT NULL
);
-- Create a table to store cab operator registration data
CREATE TABLE IF NOT EXISTS cab_registration (
ID INT PRIMARY KEY,
operator_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone_number int NOT NULL,
gst_number VARCHAR(20) NOT NULL,
address VARCHAR(255) NOT NULL,
pincode VARCHAR(10) NOT NULL,
city VARCHAR(100) NOT NULL,
stat VARCHAR(100) NOT NULL,
country VARCHAR(100) NOT NULL,
location VARCHAR(255) NOT NULL
);
-- Create a table to store bus operator registration data
CREATE TABLE IF NOT EXISTS bus_registration (
ID INT PRIMARY KEY,
operator_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone_number int NOT NULL,
gst_number VARCHAR(20) NOT NULL,
address VARCHAR(255) NOT NULL,
pincode VARCHAR(10) NOT NULL,
city VARCHAR(100) NOT NULL,
stat VARCHAR(100) NOT NULL,
country VARCHAR(100) NOT NULL,
location VARCHAR(255) NOT NULL
);
-- Create a table to store cruise operator registration data
CREATE TABLE IF NOT EXISTS cruise_registration (
ID INT PRIMARY KEY,
operator_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
phone_number int NOT NULL,
gst_number VARCHAR(20) NOT NULL,
address VARCHAR(255) NOT NULL,
pincode VARCHAR(10) NOT NULL,
city VARCHAR(100) NOT NULL,
stat VARCHAR(100) NOT NULL,
country VARCHAR(100) NOT NULL,
location VARCHAR(255) NOT NULL
);