Skip to content

koki-73/furimart

Repository files navigation

README

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

  • ...

README

users table

Column Type Options
nickname string null: false
email string null: false defalt
encrypted_password string null: false defalt
family_name string null: false
first_name string null: false
family_name_kana string null: false
first_name_kana string null: false
birth_day date null: false
reset_password_token string
reset_password_sent_at datetime

Association

  • has_many :comments, dependent: :destroy
  • has_many :items, dependent: :destroy
  • has_many :likes
  • has_many :user_rates
  • has_one :profile, dependent: :destroy
  • has_one :credit_card, dependent: :destroy

profiles table

Column Type Options
post_code string null: false
tel_number string
prefecture_id integer null: false
city string null: false
address string null: false
building string
image string
user_id reference null: false
introduce text

Association

  • belongs_to :user

credit_cards table

Column Type Options
user_id integer null: false
custumer_id string null: false
card_id string null: false

Association

  • belongs_to :user

user_rates

Column Type Options
user_id reference null: false fk true
item_id reference null: false fk true
rate string null: false

Association

  • belongs_to :user
  • belongs_to :item

items table

Column Type Options
name string null: false
price integer null: false
status integer null: false
brand string
buyer_id reference fk true
delivery_fee integer null: false
category_id reference null: false
user_id reference null: false
size_id reference fk true
delivery_method integer null: false
delivery_from_location integer null: false
item_explanation text null: false
preparation_day integer null: false

Association

  • has_many :comments, dependent: :destroy
  • has_many :likes
  • has_many :item_images, dependent: :destroy
  • has_many :user_rates
  • belongs_to :user
  • belongs_to :category
  • belongs_to :size
  • belongs_to :buyer, class_name: "User"
  • belongs_to_active_hash :item_status
  • belongs_to_active_hash :item_delivery_fee
  • belongs_to_active_hash :item_delivery_method
  • belongs_to_active_hash :item_prefecture
  • belongs_to_active_hash :item_preparation_day

likes table

Column Type Options
user_id reference null: false
item_id reference null: false

Association

  • belongs_to :user
  • belongs_to :item

comments table

Column Type Options
content text null: false
user_id reference null: false
item_id reference null: false

Association

  • belongs_to :user
  • belongs_to :item

categories table

Column Type Options
name string null: false
ancestry string

Association

  • has_many :items

item_images table

Column Type Options
image string null: false
item_id reference null: false

Association

  • belongs_to :item

sizes table

Column Type Options
size string null: false

Association

  • has_many :items

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published