Procedure To Create App Database-1
Procedure To Create App Database-1
2. Database Optimisation:
1. Salon/Barber Shop
a) id > String (Unique)
b) name > String
c) location > Location
e) about > String
g) discount > int
h) rankTag > Function (Based on Rating + Services Sold)
i) teamMembersName > List<String>
j) rating > Function(field: Calculated from reviewsIds)
k) reviewsIds > List<String>
l) mainImage > String(Link)
m) helperImages > String<Links>
f) sevicesList > List<Services>
q) bookingIds > List<String>
o) workingTimeDetailList > arr<WorkingDetail>[7]
p) memberSince > Long
Location:
b) nameCity > String
b) nameStreet > String
c) latitude > double
d) longitude > double
Service:
b) name > String
c) price > int
d) duration > Long
e) genderSpecific : String
f) image : int/String
Working Detail:
a) id > String
b) dayName > enums
c) startTime > List<Long>
d) endTime > List<Long>
2. Customer:
a) id > String (Unique)
b) name > String
c) gender > String
d) email > String
e) phoneNumber > String
f) profileImage > String
g) reviewsIds > List<String>
h) bookingIds > List <String>
Review
a) id > String (unique)
b) rating > float
c) comment > String
d) dateTime > Long
f) likes > Long
g) dislikes > Long
h) customerId > String
i) salonId > String
3. Booking:
a) id > String
b) userId > String
c) salonId > String
d) price > int (Calculated and stored at the time of ordering)
e) dateTime > Long
g) servicesList > List<Service>
h) statusFlag > boolean (iscompleted , iscancelled)