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

MySQL建表SQL语句

数据库结构:智果内容付费-商城商品:https://open.yesapi.cn/tablelist/yesapi_zhiguo_ocenter_mall_goods.html


-- 数据库大全:智果内容付费-商城商品
-- 来源:YesApi.cn
CREATE TABLE `yesapi_zhiguo_ocenter_mall_goods` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `uid` int(11) NOT NULL COMMENT '操作者',
    `yesapi_zhiguo_ocenter_mall_goods_name` varchar(32) NOT NULL COMMENT '商品名称',
    `url` varchar(200) NOT NULL COMMENT '商品的外链',
    `yesapi_zhiguo_ocenter_mall_goods_status` tinyint(4) NOT NULL COMMENT '商品状态',
    `price` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '商品价格',
    `cate` int(11) NOT NULL COMMENT '商品类型',
    `size` varchar(200) NOT NULL COMMENT '商品尺寸',
    `color` varchar(200) NOT NULL COMMENT '商品颜色',
    `introduce` text NOT NULL COMMENT '商品介绍',
    `pictures` varchar(64) NOT NULL COMMENT '商品图片',
    `banner` int(11) NOT NULL COMMENT '商品详情页图',
    `is_hot` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否热门',
    `views` int(11) NOT NULL DEFAULT '0' COMMENT '阅读量',
    `praise` int(11) NOT NULL DEFAULT '0' COMMENT '被点赞数目',
    `yesapi_zhiguo_ocenter_mall_goods_show` text NOT NULL COMMENT '商品展示部分',
    `sales` int(11) NOT NULL DEFAULT '0' COMMENT '销量',
    `is_index` int(11) NOT NULL DEFAULT '0' COMMENT '是否是首页商品',
    `profit` decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '该商品的收益',
    KEY `cate` (`cate`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '智果内容付费-商城商品';

复制后,到数据库执行,即可创建此数据库表。


MySQL数据库表结构设计

第 1-18 条, 共 18 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
uidint(11)操作者无索引
yesapi_zhiguo_ocenter_mall_goods_namevarchar(32)商品名称无索引
urlvarchar(200)商品的外链无索引
yesapi_zhiguo_ocenter_mall_goods_statustinyint(4)商品状态无索引
pricedecimal(10,2)0.00商品价格无索引0.00
cateint(11)商品类型普通索引
sizevarchar(200)商品尺寸无索引
colorvarchar(200)商品颜色无索引
introducetext商品介绍无索引
picturesvarchar(64)商品图片无索引
bannerint(11)商品详情页图无索引
is_hottinyint(4)0是否热门无索引0
viewsint(11)0阅读量无索引0
praiseint(11)0被点赞数目无索引0
yesapi_zhiguo_ocenter_mall_goods_showtext商品展示部分无索引
salesint(11)0销量无索引0
is_indexint(11)0是否是首页商品无索引0
profitdecimal(10,2)0.00该商品的收益无索引0.00

猜你喜欢

MySQL数据库设计 智果内容付费-中国省市区乡镇数据表

MySQL数据库设计 智果内容付费-系统行为表

MySQL数据库设计 智果内容付费-

MySQL数据库设计 智果内容付费-行为日志表

MySQL数据库设计 智果内容付费-插件表

MySQL数据库设计 智果内容付费-附件表

MySQL数据库设计 智果内容付费-权限组与分类的对应关系表

MySQL数据库设计 智果内容付费-权限分组

MySQL数据库设计 智果内容付费-权限妥组接入

MySQL数据库设计 智果内容付费-授权规则

MySQL数据库设计 智果内容付费-头像

MySQL数据库设计 智果内容付费-表达式

MySQL数据库设计 智果内容付费-表达式包

MySQL数据库设计 智果内容付费-i表达式

MySQL数据库设计 智果内容付费-i表达式链接

MySQL数据库设计 智果内容付费-频道

MySQL数据库设计 智果内容付费-用户导航

MySQL数据库设计 智果内容付费-登记

MySQL数据库设计 智果内容付费-配置

MySQL数据库设计 智果内容付费-中国省市区乡镇数据表



回到顶部 ↑