You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create table reviews
(
id int PRIMARY KEY,
location_id int NOT NULL,
service_id int,
rating int ,
body VARCHAR(255),
created_at TIMESTAMP NOT NULL
) ;
create table ratings -- should be added to location
(
location_id int PRIMARY KEY,
rating int,
needs_updating INT DEFAULT 0,
num_ratings int NOT NULL DEFAULT 1
) ;
The text was updated successfully, but these errors were encountered:
create table reviews
(
id int PRIMARY KEY,
location_id int NOT NULL,
service_id int,
rating int ,
body VARCHAR(255),
created_at TIMESTAMP NOT NULL
) ;
create table ratings -- should be added to location
(
location_id int PRIMARY KEY,
rating int,
needs_updating INT DEFAULT 0,
num_ratings int NOT NULL DEFAULT 1
) ;
The text was updated successfully, but these errors were encountered: