Giter VIP home page Giter VIP logo

pairs-clone's Introduction

README

DB設計

usersテーブル

Column Type Options
nickname string null: false
mail string null: false, unique:true
birthday integer null: false
residence string null:false
gender integer null:false

Association

  • has_many :images
  • has_many :groups
  • has_one :profile
  • has_one :female
  • has_one :man
  • has_many :communities, through: :members

user_imagesテーブル

Column Type Options
content string
user_id references null: false, foreign_key:true
status integer

Association

  • belongs_to :user

profilesテーブル

Column Type Options
user_id references null: false, foreign_key:true
age integer

Association

  • belongs_to :user

malesテーブル

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

Association

  • has_many :followers, through: :relationships
  • belongs_to :user

femalesテーブル

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

Association

  • has_many :followings, through: :relationships
  • belongs_to :user

relationshipsテーブル

Column Type Options
like_man references null: false, foreign_key:true
like_female references null: false, foreign_key:true
match_male_id referances null: false, foreign_key:true
match_female_id referances null: false, foreign_key:true

Association

  • belongs_to :man
  • belongs_to :female

messagesテーブル

Column Type Options
content string null: false
rerationsships_id integer null: false, foreign_key:true
image_url string

Association

  • belongs_to :relationships

communitiesテーブル

Column Type Options
category integer null: false
community_name string null: false
image string null: false

Association

  • has_many :users, through: :members

membersテーブル

Column Type Options
user references null: false, foreign_key: true
community references null: false, foreign_key: true

Association

  • belongs_to :community
  • belongs_to :user

pairs-clone's People

Contributors

yukiyanagikubo avatar

Stargazers

KKK avatar  avatar

Watchers

James Cloos 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.