Git Product home page Git Product logo

freemarket_sample_53b's Introduction

freemarket_sample_53b

It is a copy site of popular freemarket application. We are Osaka Tech::Expert 53term. The team B! The final product of the team B.

Database design

Users table

Column Type Options
email string null: false, unique: ture
nickname string null: false
first_name string
last_name string
first_name_kana string
last_name_kana string
birthday integer
image string
postal_cade integer
prefecture string
city string
address_number integer
building string
tell integer
gender string
profile text

association

  • has_many :items
  • has_many :credits
  • has_many :buy_histories
  • has_many :comments

Items table

Column Type Options
name string null: false
price integer null: false
description text
status string
delivery_burden string
delivery_method string
delivery_prefecture string
delivery_time string
category_id references null: false, foreign_key: true
user_id references null: false, foreign_key: true

association

  • belongs_to :user
  • belongs_to :category
  • has_many :comments
  • has_many :images
  • has_one :buy_history

Comments table

Column Type Options
user_id references null: false, foreign_key: true
item_id references null: false, foreign_key: true
text text
delete_flag boolean

association

  • belongs_to :item
  • belongs_to :user

Buy_histories table

Column Type Options
user_id references null: false, foreign_key: true
item_id references null: false, foreign_key: true, unique: true

association

  • belongs_to :user
  • belongs_to :item

Credits table

Column Type Options
credit_number integer null: false
expiry_date integer null: false
security_code integer null: false
user_id integer null: false, foreign_key: true

association

  • belongs_to :user

Images table

Column Type Options
item_id references null: false,foreign_key: true
image_url string

association

  • belongs_to :item

categories table

Column Type Options
name string null: false
parent_id references

association

  • has_many :items

freemarket_sample_53b's People

Contributors

ratovia avatar maeda5141 avatar hidemaro0427 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.