I have mechanic that provide some services and there may be several services provided by a mechanic and how is better way to make tables in this case?
What i have now is :
Mechanic table :
create table mechanic(
id_master int not null unique,
rating int DEFAULT 10,
start_time TIME not null,
end_time TIME not null,
work_or_not BOOL DEFAULT 1,
Constraint FK_masterID_userID FOREIGN KEY(id_master) REFERENCES user(id_user),
Constraint Check_STARTTIME_ENDTIME check(start_time<end_time),
Constraint CHECK_FOR_STARTTIME CHECK(start_time>'-1:0:0' AND HOUR(start_time)<23),
Constraint CHECK_FOR_ENDTIME CHECK(end_time>'-1:0:0' AND HOUR(end_time)<23));
and i need to show what services mechanic provides and what table should i create ? Maybe services table that ref to mechanic table via foreign key but i also need to store services values, so what should i do?