table - dich1/todo GitHub Wiki
テーブル
# todoの事をコミットと呼ぶ
commits
id integer
user_id integer
group_id integer
limit date
status boolean 1
created timestamp
modified timestamp
commit_groups
id integer
commit_id integer
user_id integer
content string
priority integer
created timestamp
modified timestamp
users
id bigint(20) unsigned NO PRI NULL auto_increment
name varchar(191) NO NULL
email varchar(191) NO UNI NULL
email_verified_at timestamp YES NULL
password varchar(191) NO NULL
remember_token varchar(100) YES NULL
created_at timestamp YES NULL
updated_at timestamp
password_resets
email varchar(191) NO MUL NULL
token varchar(191) NO NULL
created_at timestamp YES NULL
- ユーザーに紐付くコミットはcommit_groupsから紐付くcommitを抽出する
- commitだけで管理するとクエリの検索対象が大きくなるため