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

MySQL建表SQL语句

数据库结构:公益商城-收藏夹表:https://open.yesapi.cn/tablelist/yesapi_morning_os_favorite.html


-- 数据库大全:公益商城-收藏夹表
-- 来源:YesApi.cn
CREATE TABLE `yesapi_morning_os_favorite` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `favorite_id` bigint(20) NULL COMMENT '收藏表ID',
    `user_id` bigint(20) NULL COMMENT '用户ID',
    `product_id` bigint(20) NULL COMMENT '商品ID',
    `product_number` bigint(20) NULL COMMENT '商品编号',
    `yesapi_morning_os_favorite_name` varchar(64) NULL COMMENT '商品名称',
    `pic_img` varchar(255) NULL COMMENT '展示图片',
    `show_price` decimal(10,2) NULL COMMENT '显示价格',
    `yesapi_morning_os_favorite_status` tinyint(2) NULL DEFAULT '1' COMMENT '商品状态:1,上架;2,下架',
    `create_time` datetime NULL COMMENT '创建时间',
    `create_by` varchar(64) NULL COMMENT '创建者',
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '公益商城-收藏夹表';

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


MySQL数据库表结构设计

第 1-10 条, 共 10 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
favorite_idbigint(20)收藏表ID无索引
user_idbigint(20)用户ID无索引
product_idbigint(20)商品ID无索引
product_numberbigint(20)商品编号无索引
yesapi_morning_os_favorite_namevarchar(64)商品名称无索引
pic_imgvarchar(255)展示图片无索引
show_pricedecimal(10,2)显示价格无索引
yesapi_morning_os_favorite_statustinyint(2)1商品状态:1,上架;2,下架无索引1
create_timedatetime创建时间无索引
create_byvarchar(64)创建者无索引

猜你喜欢

MySQL数据库设计 公益商城-系统配置表

MySQL数据库设计 公益商城-日志记录表

MySQL数据库设计 公益商城-目录表

MySQL数据库设计 公益商城-组织表

MySQL数据库设计 公益商城-角色表

MySQL数据库设计 公益商城-角色权限关联表

MySQL数据库设计 公益商城-管理员表

MySQL数据库设计 公益商城-管理员登陆表

MySQL数据库设计 公益商城-管理员角色关联表

MySQL数据库设计 公益商城-系统日志表

MySQL数据库设计 公益商城-收获地址表

MySQL数据库设计 公益商城-广告位表

MySQL数据库设计 公益商城-广告位管理表

MySQL数据库设计 公益商城-分类表

MySQL数据库设计 公益商城-类目广告表

MySQL数据库设计 公益商城-评价表

MySQL数据库设计 公益商城-评论回复表

MySQL数据库设计 公益商城-邮箱记录表

MySQL数据库设计 公益商城-产品类型表

MySQL数据库设计 公益商城-商品标签表



回到顶部 ↑