-
Notifications
You must be signed in to change notification settings - Fork 0
Schema
Joshua edited this page Jan 21, 2019
·
4 revisions
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
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 |
- index on
email, unique: true - index on
session_token, unique: true
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
title |
string | not null |
user_id |
integer | not null, indexed |
created_at |
datetime | not null |
updated_at |
datetime | not null |
-
user_idreferencesusers - index on
user_id
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
title |
string | not null |
board_id |
integer | not null, indexed |
previous_id |
integer | not null |
next_id |
integer | not null |
created_at |
datetime | not null |
updated_at |
datetime | not null |
-
board_idreferencesboard - index on
board_id
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
title |
string | not null |
description |
text | |
list_id |
integer | not null, indexed |
previous_id |
integer | not null |
next_id |
integer | not null |
due_date |
datetime | |
created_at |
datetime | not null |
updated_at |
datetime | not null |
-
list_idreferenceslist - index on
list_id
| column name | data type | details |
|---|---|---|
id |
integer | not null, primary key |
user_id |
integer | not null, indexed |
card_id |
integer | not null, indexed |
body |
text | not null |
created_at |
datetime | not null |
updated_at |
datetime | not null |
-
user_idreferencesuser -
card_idreferencescard - index on
user_id - index on
card_id