Column | Type | Options |
---|---|---|
postal_code | string | null: false |
prefecture | string | null: false |
city | string | null: false |
street | string | null: false |
building | string | |
user_id | references | foreign_key: true |
- belongs_to :user
Column | Type | Options |
---|---|---|
customer_id | string | null: false |
card_id | string | null: false |
user_id | references | foreign_key: true |
- has_one :user
Column | Type | Options |
---|---|---|
price | integer | null: false |
hope_id | references | null: false, foreign_key: true |
user_id | references | null: false, foreign_key: true |
- belongs_to :hope
- belongs_to :user
Column | Type | Options |
---|---|---|
image | string | null: false |
message | string | null: false |
desired_price | integer | null: false |
user_id | references | null: false, foreign_key: true |
- belings_to :user
- has_many :gifts
Column | Type | Options |
---|---|---|
picture | string | null: false |
myphoto | string | |
mycomment | string | |
user_id | references | null: false, foreign_key: true |
- has_one :user
Column | Type | Options |
---|---|---|
nickname | string | null: false, uniqueness: true |
string | null: false | |
password | string | null: false |
provider | string | |
uid | string |
- has_many :addresses
- has_many :hopes
- has_one :profile
- has_one :card