-
Notifications
You must be signed in to change notification settings - Fork 5
データベース定義
TouanAin edited this page Oct 21, 2015
·
6 revisions
#データベース定義 ##User:
カラム名 | 物理名 | 型 | NULL | 初期値 | インデックス |
---|---|---|---|---|---|
ID | id | int | Not null | ||
Eメール | varchar(256) | Not null | |||
encrypted_password | encrypted_password | varchar(256) | Not null | ||
reset_password_token | reset_password_token | varchar(256) | |||
reset_password_sent_at | reset_password_sent_at | date | |||
remember_created_at | remember_created_at | date | |||
sign_in_count | sign_in_count | int | Not null | ||
current_sign_in_at | current_sign_in_at | date | |||
last_sign_in_at | last_sign_in_at | date | |||
current_sign_in_ip | current_sign_in_ip | varchar(15) | |||
last_sign_in_ip | last_sign_in_ip | varchar(256) | |||
created_at | created_at | date | Not null | ||
updated_at | updated_at | date | Not null | ||
confirmation_token | confirmation_token | string | Not null | ||
confirmed_at | confirmed_at | datetime | Not null | ||
confirmation_sent_at | confirmation_sent_at | datetime | Not null | ||
unconfirmed_email | unconfirmed_email | string | Not null | ||
##UserLog: |
カラム名 | 物理名 | 型 | NULL | 初期値 | インデックス |
---|---|---|---|---|---|
ID | id | int | Not null | ||
User_id | user_id | int | |||
Log_data | log_data | int | |||
Created_at | created_at | Date | Not null | ||
Updated_at | cpdated_at | Date | Not null | ||
##Goal: |
カラム名 | 物理名 | 型 | NULL | 初期値 | インデックス |
---|---|---|---|---|---|
ID | id | int | Not null | ||
User_id | user_id | int | |||
Content | content | string | Not null | ||
Deadline | deadline | datetime | Not null | ||
Created_at | created_at | Date | Not null | ||
Updated_at | cpdated_at | Date | Not null |