Question: - - Create Users INSERT INTO Users ( user _ id , name, email, phone _ number, password, user _ type ) VALUES ( 1
Create Users
INSERT INTO Users userid name, email, phonenumber, password, usertype
VALUES
'Admin 'admin@example.com', 'adminpassword', 'Admin'
'Admin 'admin@example.com', 'adminpassword', 'Admin'
'Admin 'admin@example.com', 'adminpassword', 'Admin'
'Admin 'admin@example.com', 'adminpassword', 'Admin'
'Admin 'admin@example.com', 'adminpassword', 'Admin';
Create Appointments
INSERT INTO Appointments appointmentid userid servicetype, appointmentdate, appointmenttime
VALUES
'manicure', ::
'pedicure', ::
'hair', ::
'beauty treatment', ::
'manicure', ::
'pedicure', ::
'hair', ::
'beauty treatment', ::
'manicure', ::
'pedicure', ::;
Create Services
INSERT INTO Services serviceid servicename, servicetype, price
VALUES
'Manicure 'manicure',
'Manicure 'manicure',
'Manicure 'manicure',
Repeat for pedicure, hair, and beauty treatment services
Create Notifications to Users
INSERT INTO Notifications notificationid notificationtype, notificationmessage, notificationdate, isread
SELECT
notificationid
'upcoming appointment',
CONCATYour upcoming appointment is on appointmentdate, at appointmenttime
NOW
FROM
Appointments
LIMIT
;
Create Notifications to Admins
INSERT INTO Notifications notificationid notificationtype, notificationmessage, notificationdate, isread
SELECT
notificationid
'new appointment',
'A new appointment has been scheduled',
NOW
FROM
Appointments
LIMIT
;
can you please do this in a json file
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
