Repository navigation
Schema
Eve P edited this page Apr 30, 2019
·
12 revisions
| column_name | data_type | details |
|---|---|---|
id |
integer | not null, primary key |
name |
string | not null |
email |
string | not null, indexed, unique |
password_digest |
string | not null |
session_token |
string | not null, indexed, unique |
create_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 |
create_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 |
| user_id | integer | not null, indexed |
| board_id | integer | not null, indexed |
| create_at | datetime | not null |
| updated_at | datetime | not null |
-
user_idreferencesusers -
board_idreferencesboards
| column_name | data_type | details |
|---|---|---|
id |
integer | not null, primary key |
title |
string | not null |
board_id |
integer | not null, indexed |
create_at |
datetime | not null |
updated_at |
datetime | not null |
-
board_idreferencesboards - 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 |
due_date |
datetime | |
create_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 | |
create_at |
datetime | not null |
updated_at |
datetime | not null |
-
user_idreferencesuser -
card_idreferencescard - index on
user_id - index on
card_id