Repository navigation
Schema
Arnaud Cognard edited this page Apr 21, 2020
·
5 revisions
column name |
data type |
details |
|---|---|---|
id |
integer | not null, primary key |
username |
string | not null, indexed |
email |
string | not null, indexed, unique |
team_id |
integer | foreign_key |
password_digest |
string | not null |
session_token |
string | not null, indexed, unique |
created_at |
date | not null |
updated_at |
date | not null |
- index on
username, unique: true - 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, indexed |
description |
text | not null |
project_owner_id |
integer | not null, indexed, foreign key |
start_date |
t.date | not null |
end_date |
t.date | not null |
-
project_owner_idreferencesusers - index on
project_owner_id
column name |
data type |
details |
|---|---|---|
id |
integer | not null, primary key |
title |
string | not null, indexed |
description |
text | not null |
author_id |
integer | not null, indexed, foreign key |
project_id |
integer | not null, indexed, foreign key |
assignee_id |
integer | not null, indexed, foreign key |
completed |
boolean | not null |
start_date |
t.date | not null |
end_date |
t.date | not null |
-
author_id, assignee_id referenceusers -
project_idreferencesprojects - index on
project_id, author_id
column name |
data type |
details |
|---|---|---|
id |
integer | not null, primary key |
name |
string | not null |
description |
string |