Answered step by step
Verified Expert Solution
Question
1 Approved Answer
- - 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started