【文件属性】:
文件名称:chat-app
文件大小:278KB
文件格式:ZIP
更新时间:2021-03-26 18:32:57
Ruby
テーブル设计
用户テーブル
柱子
类型
选项
姓名
细绳
null:假
电子邮件
细绳
null:假
密码
细绳
null:假
协会
has_many:room_users
has_many:房间,通过:room_users
has_many:消息
房间テーブル
柱子
类型
选项
姓名
细绳
null:假
协会
has_many:room_users
has_many:房间,通过:room_users
has_many:消息
room_usersテーブル
柱子
类型
选项
用户
参考
null:false,foreign_key:true
房间
参考
null:false,foreign_key:true
协会
当属:房间
当属:用户
消息テーブル
柱子
类型
选项
内容
细绳
用户
参考
null:false,foreign_key:true
房间
参考
null:false