Welcome to the Ekin wiki!
[Ekin Live]()
Ekin, a NIke clone, is an e-commerce application that allows users to shop an assortnment of fitness equipment.
users
column name | data type | details |
---|---|---|
id |
bigint | not null, primary key |
username |
string | not null, indexed, unique |
email |
string | not null, indexed, unique |
password_digest |
string | not null |
session_token |
string | not null, indexed, unique |
created_at |
datetime | not null |
updated_at |
datetime | not null |
username, unique: true
email, unique: true
session_token, unique: true
has_many reviews
has_many favorites
reviews
column name | data type | details |
---|---|---|
id |
bigint | not null, primary key |
body |
string | not null |
author_id |
integer | not null, indexed, foreign key |
created_at |
datetime | not null |
updated_at |
datetime | not null |
author_id
references users
author_id
belongs_to author
favorites
column name | data type | details |
---|---|---|
id |
bigint | not null, primary key |
user_id |
bigint | not null, indexed, foreign key |
item_id |
integer | not null, indexed, foreign key |
created_at |
datetime | not null |
updated_at |
datetime | not null |
user_id
references users
review_id
references reviews
[:review_id, :user_id], unique: true
belongs_to review
belongs_to user