Skip to content

Create Reviews Migration in the database #18

Description

@kelfink

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
) ;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions