MySQL数据库表结构设计
第 1-11 条, 共 11 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
album_id | int(10) | 否 | 无索引 | |||
album_name | varchar(50) | 是 | 无索引 | |||
is_available | enum('Y','N') | Y | 是 | 无索引 | Y | |
views | int(11) | 是 | 浏览次数 | 无索引 | ||
photo_count | int(10) | 是 | 照片数量 | 无索引 | ||
user_id | int(10) | 是 | 无索引 | |||
username | varchar(50) | 否 | 无索引 | |||
friend | tinyint(4) | 是 | 相册隐私设置:"0"全站用户可见,"1"为全好友可见,"2"为仅指定的好友可见,"3"为仅自己可见,"4"为凭密码查看 | 无索引 | ||
yesapi_xqw_member_album_password | varchar(100) | 是 | 相册密码 | 无索引 | ||
target_user_ids | text | 是 | 可以浏览该相册的用户列表,用逗号分割 | 无索引 | ||
description | text | 是 | 相册描述 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:相亲-会员相册:https://open.yesapi.cn/tablelist/yesapi_xqw_member_album.html
-- 数据库大全:相亲-会员相册
-- 来源:YesApi.cn
CREATE TABLE `yesapi_xqw_member_album` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`album_id` int(10) NULL COMMENT '',
`album_name` varchar(50) NULL COMMENT '',
`is_available` enum('Y','N') NULL DEFAULT 'Y' COMMENT '',
`views` int(11) NULL COMMENT '浏览次数',
`photo_count` int(10) NULL COMMENT '照片数量',
`user_id` int(10) NULL COMMENT '',
`username` varchar(50) NULL COMMENT '',
`friend` tinyint(4) NULL COMMENT '相册隐私设置:"0"全站用户可见,"1"为全好友可见,"2"为仅指定的好友可见,"3"为仅自己可见,"4"为凭密码查看',
`yesapi_xqw_member_album_password` varchar(100) NULL COMMENT '相册密码',
`target_user_ids` text NULL COMMENT '可以浏览该相册的用户列表,用逗号分割',
`description` text NULL COMMENT '相册描述',
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '相亲-会员相册';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢

