+ 立即免费创建此表 返回数据库大全

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_idbigint(20)无索引
consume_amountdecimal(10,2)累计消费金额无索引
order_countint(11)订单数量无索引
coupon_countint(11)优惠券数量无索引
comment_countint(11)评价数无索引
return_order_countint(11)退货数量无索引
login_countint(11)登录次数无索引
attend_countint(11)关注数量无索引
fans_countint(11)粉丝数量无索引
collect_product_countint(11)无索引
collect_subject_countint(11)无索引
collect_topic_countint(11)无索引
collect_comment_countint(11)无索引
invite_friend_countint(11)无索引
recent_order_timedatetime最后一次下订单时间无索引

猜你喜欢

MySQL数据库设计 电商-会员收货地址表

MySQL数据库设计 电商-会员积分成长规则表

MySQL数据库设计 电商-后台用户角色和权限关系表

MySQL数据库设计 k8s管理-镜像同步

MySQL数据库设计 小区物业管理系统-模型

MySQL数据库设计 小区物业管理系统-团购



回到顶部 ↑