Логички: dmlscript-populate.sql

File dmlscript-populate.sql, 2.5 KB (added by 173067, 3 weeks ago)
Line 
1INSERT INTO ApplicationUser (UserID, Name, Surname, Email, Password, PhoneNumber, DateJoined)
2VALUES
3(1, 'Alice', 'Johnson', 'alice.johnson@email.com', 'pass123', '1234567890', '2023-01-15'),
4(2, 'Bob', 'Smith', 'bob.smith@email.com', 'securepass', '0987654321', '2023-02-20');
5
6INSERT INTO Destination (DestinationID, Name, Country, Description, PopularAttraction, BestTimeToVisit)
7VALUES
8(1, 'Paris', 'France', 'City of Love and Lights', 'Eiffel Tower', 'Spring & Autumn'),
9(2, 'Tokyo', 'Japan', 'Blend of modern and traditional culture', 'Shibuya Crossing', 'March to May, September to November');
10
11INSERT INTO Airport (AirportID, Name, CityID, Country, Code)
12VALUES
13(1, 'Charles de Gaulle Airport', 1, 'France', 'CDG'),
14(2, 'Narita International Airport', 2, 'Japan', 'NRT');
15
16INSERT INTO Flight (FlightID, FlightNumber, DepartureAirport, ArrivalAirport, DepartureTime, ArrivalTime, Price, AvailableSeats)
17VALUES
18(1, 'AF123', 1, 2, '10:30:00', '23:45:00', 850.00, 150),
19(2, 'JL456', 2, 1, '15:00:00', '05:30:00', 900.00, 120);
20
21INSERT INTO Booking (BookingID, UserID, FlightID, BookingDate, PaymentStatus, TotalCost, SeatNumber)
22VALUES
23(1, 1, 1, '2024-02-10', 'Completed', 850.00, 12),
24(2, 2, 2, '2024-02-12', 'Pending', 900.00, 23);
25
26INSERT INTO Review (ReviewID, UserID, TargetID, ReviewComment, Rating, Date)
27VALUES
28(1, 1, 1, 'Amazing flight, very comfortable!', 5, '2024-02-15'),
29(2, 2, 2, 'Decent flight but could be better.', 3, '2024-02-18');
30
31INSERT INTO Payment (PaymentID, BookingID, UserID, PaymentMethod, Amount, TransactionDate, PaymentStatus)
32VALUES
33(1, 1, 1, 'Credit card', 850.00, '2024-02-10', 'Success'),
34(2, 2, 2, 'PayPal', 900.00, '2024-02-12', 'Processing');
35
36INSERT INTO Notification (NotificationID, UserID, Message, Type, DateSent)
37VALUES
38(1, 1, 'Your booking is confirmed!', 'Booking confirmation', '2024-02-10'),
39(2, 2, 'Your flight is delayed by 1 hour.', 'Flight delay', '2024-02-13');
40
41INSERT INTO Wishlist (WishlistID, UserID, TargetID, DateAdded)
42VALUES
43(1, 1, 1, '2024-02-05'),
44(2, 2, 2, '2024-02-07');
45
46INSERT INTO Administrator (AdminID, Email)
47VALUES
48(1, 'admin1@voyago.com'),
49(2, 'admin2@voyago.com');
50
51INSERT INTO SupportTicket (TicketID, UserID, Subject, Description, Status, DateCreated, DateResolved, AssignedTo)
52VALUES
53(1, 1, 'Refund Request', 'I need a refund for my flight.', 'Open', '2024-02-11', NULL, 1),
54(2, 2, 'Lost Baggage', 'My luggage was lost during transit.', 'In progress', '2024-02-14', NULL, 2);