Skip to content

nissy7ok/chat-space

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

  • ...

ChatSpace DB設計

userテーブル

Column Type Options
name string null: false, unique: true
email string null: false, unique: true
password string null: false

Association

  • has_many :users_groups
  • has_many :groups, through: :users_groups
  • has_many :messages

groupテーブル

Column Type Options
name string null: false, unique: true

Association

  • has_many :group_users
  • has_many :users, through: :group_users
  • has_many :messages

group_userテーブル

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

Association

  • belongs_to :user
  • belongs_to :group

messageテーブル

Column Type Options
user references null: false, foreign_key: true
group references null: false, foreign_key: true
message string
image string

Association

  • belongs_to :user
  • belongs_to :group

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors