SNS 社交网站数据库设计.docx
《SNS 社交网站数据库设计.docx》由会员分享,可在线阅读,更多相关《SNS 社交网站数据库设计.docx(4页珍藏版)》请在三一办公上搜索。
1、SNS 社交网站数据库设计用户表:users 列名 user_id user_name password email age school address sex state 类型 INT(8) VARCHAR(20) INT(8) 约束 NOT NULL NOT NULL 键 主键 描述 自增 登录的状态 VARCHAR NOT NULL VARCHAR(128) Unique VARCHAR(100) VARCHAR(100) CARCHAR(10) Tinyint CHECK OPTION 男 女 Check option Tinyint Tinyint Birthday Telepho
2、ne Picture Date Varchar Varchar 用户头像的路径 好友关系表:friends 列名 my_id friend_id State 类型 INT(8) INT(8) Tinyint 约束 NOT NULL Not null Check option Tinyint Tinyint 键 主键/外键 外键 描述 参照users表 参照users表 0:接听 1:朋友 消息表:messages 列名 Message_id From_id To_id content Type 类型 INT(8) INT(8) INT(8) Varchar(300) Int 约束 NOT NU
3、LL Not null Not null Check option In 键 主键 外键 外键 描述 自增 参照users表 参照users表 留言的内容 消息类别 注:当Type=0时是系统消息 Type=1时好友申请消息 Type=2时是留言板消息 活动表:activitys 列名 Activity_id owner_id Create_date End_date Address Max_num State Topic Content Current_num 类型 Int(8) Int Timestamp Timestamp Varchar Int(8) Varchar Varchar V
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SNS 社交网站数据库设计 社交 网站 数据库 设计

链接地址:https://www.31ppt.com/p-3062360.html