我相信下面的表格目前处于第3范式,对于我想要使用的PHP框架,我需要在第5版中使用它们。有人能就我如何做到这一点给我一些建议吗?
create table UserAvailability (
Id int Identity(1, 1) not null, -- primary key
UserId int not null, -- FK to User table
AvailabilityDay Date not null, -- Day of availability
9-10 bit not null default(0),
10-11 bit not null default(0),
11-12 bit not null default(0),
12-1 bit not null default(0),
1-2 bit not null default(0),
2-3 bit not null default(0),
3-4 bit not null default(0),
4-5 bit not null default(0),
5-6 bit not null default(0),
)
create TABLE User_Availability_Notes(
Phone_Number VARCHAR(25) NOT NULL UNIQUE,
User_Notes VARCHAR(500),
fk1_User_ID INTEGER NOT NULL,
)
CREATE TABLE User_Details(
User_ID INTEGER NOT NULL,
F_Name VARCHAR(25) NOT NULL,
L_Name VARCHAR(25) NOT NULL,
Email_Address VARCHAR(55) NOT NULL UNIQUE,
Phone_Number VARCHAR(25) NOT NULL UNIQUE,
Mode_of_Transport VARCHAR(8),
)