Database Schema - alexsmaldone/good-game-guides Wiki

Database Schema

Users

column name data type details
id integer not null, primary key
email string not null, unique
fullName string not null,
hashedPassword string not null,
createdAt datetime not null
updatedAt datetime not null

GameGuides

column name data type details
id integer not null, primary key
title string not null
author string
releaseDate dateonly
publisher string
coverImg string
createdAt datetime not null
updatedAt datetime not null

Reviews

column name data type details
id integer not null, primary key
rating string not null
reviewText text not null
userId integer not null, foreign key
gameGuideId integer not null, foreign key
createdAt datetime not null
updatedAt datetime not null

Statuses

column name data type details
id integer not null, primary key
name string not null, unique
createdAt datetime not null
updatedAt datetime not null

StatusShelves

column name data type details
id integer not null, primary key
statusId integer not null, foreign key
userId integer not null, foreign key
gameGuideId integer not null, foreign key
createdAt datetime not null
updatedAt datetime not null

CustomShelves

column name data type details
id integer not null, primary key
name string not null
userId integer not null, foreign key
gameGuideId integer foreign key
createdAt datetime not null
updatedAt datetime not null