MySQL建表SQL语句
数据库结构:电商-会员统计信息:https://open.yesapi.cn/tablelist/yesapi_mall_ums_member_statistics_info.html
-- 数据库大全:电商-会员统计信息
-- 来源:YesApi.cn
CREATE TABLE `yesapi_mall_ums_member_statistics_info` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`member_id` bigint(20) NULL COMMENT '',
`consume_amount` decimal(10,2) NULL COMMENT '累计消费金额',
`order_count` int(11) NULL COMMENT '订单数量',
`coupon_count` int(11) NULL COMMENT '优惠券数量',
`comment_count` int(11) NULL COMMENT '评价数',
`return_order_count` int(11) NULL COMMENT '退货数量',
`login_count` int(11) NULL COMMENT '登录次数',
`attend_count` int(11) NULL COMMENT '关注数量',
`fans_count` int(11) NULL COMMENT '粉丝数量',
`collect_product_count` int(11) NULL COMMENT '',
`collect_subject_count` int(11) NULL COMMENT '',
`collect_topic_count` int(11) NULL COMMENT '',
`collect_comment_count` int(11) NULL COMMENT '',
`invite_friend_count` int(11) NULL COMMENT '',
`recent_order_time` datetime NULL COMMENT '最后一次下订单时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '电商-会员统计信息';
复制后,到数据库执行,即可创建此数据库表。
MySQL数据库表结构设计
第 1-15 条, 共 15 条.
字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
---|---|---|---|---|---|---|
member_id | bigint(20) | 是 | 无索引 | |||
consume_amount | decimal(10,2) | 是 | 累计消费金额 | 无索引 | ||
order_count | int(11) | 是 | 订单数量 | 无索引 | ||
coupon_count | int(11) | 是 | 优惠券数量 | 无索引 | ||
comment_count | int(11) | 是 | 评价数 | 无索引 | ||
return_order_count | int(11) | 是 | 退货数量 | 无索引 | ||
login_count | int(11) | 是 | 登录次数 | 无索引 | ||
attend_count | int(11) | 是 | 关注数量 | 无索引 | ||
fans_count | int(11) | 是 | 粉丝数量 | 无索引 | ||
collect_product_count | int(11) | 是 | 无索引 | |||
collect_subject_count | int(11) | 是 | 无索引 | |||
collect_topic_count | int(11) | 是 | 无索引 | |||
collect_comment_count | int(11) | 是 | 无索引 | |||
invite_friend_count | int(11) | 是 | 无索引 | |||
recent_order_time | datetime | 是 | 最后一次下订单时间 | 无索引 |