Freemarket clone site / Ruby on Rails + Haml, SCSS(BEM) + jQuery + MySQL + AWS(EC2, S3)
This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
Ruby version
System dependencies
Configuration
Database creation 以下参照
Database initialization
How to run the test suite
Services (job queues, cache servers, search engines, etc.)
Deployment instructions
...
Column | Type | Options |
---|---|---|
nickname | string | null: false |
string | null: false, unique: true | |
last_name | string | null: false |
first_name | string | null: false |
last_name_kana | string | null: false |
first_name_kana | string | null: false |
birthday | integer | |
profile | text |
Column | Type | Options |
---|---|---|
postcode | string | null: false |
prefecture | string | null: false |
municipality | string | null: false |
address | string | null: false |
room_number | string | |
phone | integer | |
sendname_last | string | null: false |
sendname_first | string | null: false |
sendname_last_kana | string | null: false |
sendname_first_kana | string | null: false |
user_id | integer | null: false, foreign_key: true |
※セキュリティの観点から、クレジットカードの番号やCVCをDBに保存してはいけない。 そのため、payjpにて生成される、customer_id(永続利用)を保存する
Column | Type | Options |
---|---|---|
user_id | integer | null: false, foreign_key: true |
customer_id | string | null: false |
card_id | string |
Column | Type | Options |
---|---|---|
name | string | null: false |
explanation | text | null: false |
brand | string | |
condition | string | null: false |
postage | integer | null: false |
area | string | null: false |
days | integer | null: false |
price | integer | null: false |
user_id | integer | null: false, foreign_key: true |
category_id | integer | null: false, foreign_key: true |
status | integer | null: false |
Column | Type | Options |
---|---|---|
image | string | null: false |
item_id | string | null: false, foreign_key: true |
Column | Type | Options |
---|---|---|
item_id | integer | null: false, foreign_key: true |
user_id | integer | null: false, foreign_key: true |
Column | Type | Options |
---|---|---|
name | string | null: false, index: true |
ancestory | gem | ※親子関係 |
Column | Type | Options |
---|---|---|
item_id | integer | null: false, foreign_key: true |
user_id | integer | null: false, foreign_key: true |
comment | text | null: false |
Column | Type | Options |
---|---|---|
item_id | integer | null: false, foreign_key: true |
user_id | integer | null: false, foreign_key: true |