Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

yuki-uchida/chat-space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Lineのようなアプリケーション開発

#機能 -1対1のチャット機能 -1対多のグループチャット機能 -メッセージの自動更新機能

#使用技術 -Ajax -Haml -Sass

#データベース設計

users table

column type Options
name string index: true, null: false, unique: true

Association has_many :messages has_many :groups_users has_many :groups, through: group_users

messages table

column type Options
body text
image string
group_id references foreign_key: true
user_id references foreign_key: true

Association belongs_to :user belongs_to :group

groups table

column type Options
name string unique: true

Association has_many :groups_users has_many :users,through:groups_users has_many :messages

groups_users table

column type Options
group_id references null: false,foreign_key: true
user_id references null: false,foreign_key: true

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published