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

MySQL建表SQL语句

数据库结构:主机销售-产品:https://open.yesapi.cn/tablelist/yesapi_box_product.html


-- 数据库大全:主机销售-产品
-- 来源:YesApi.cn
CREATE TABLE `yesapi_box_product` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `product_category_id` bigint(20) NULL COMMENT '',
    `product_payment_id` bigint(20) NULL COMMENT '',
    `form_id` bigint(20) NULL COMMENT '',
    `title` varchar(255) NULL COMMENT '',
    `slug` varchar(255) NULL COMMENT '',
    `description` text NULL COMMENT '',
    `unit` varchar(50) NULL DEFAULT 'product' COMMENT '',
    `active` tinyint(1) NULL DEFAULT '1' COMMENT '',
    `status` varchar(50) NULL DEFAULT 'enabled' COMMENT 'enabled, disabled',
    `hidden` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `is_addon` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `setup` varchar(50) NULL DEFAULT 'after_payment' COMMENT '',
    `addons` text NULL COMMENT '',
    `icon_url` varchar(255) NULL COMMENT '',
    `allow_quantity_select` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `stock_control` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `quantity_in_stock` int(11) NULL DEFAULT '0' COMMENT '',
    `plugin` varchar(255) NULL COMMENT '',
    `plugin_config` text NULL COMMENT '',
    `upgrades` text NULL COMMENT '',
    `priority` bigint(20) NULL COMMENT '',
    `config` text NULL COMMENT '',
    `type` varchar(255) NULL COMMENT '',
    KEY `product_category_id` (`product_category_id`),
    KEY `product_payment_id` (`product_payment_id`),
    KEY `form_id` (`form_id`),
    UNIQUE KEY `slug` (`slug`),
    KEY `type` (`type`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '主机销售-产品';

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


MySQL数据库表结构设计

第 1-23 条, 共 23 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
product_category_idbigint(20)普通索引
product_payment_idbigint(20)普通索引
form_idbigint(20)普通索引
titlevarchar(255)无索引
slugvarchar(255)唯一索引
descriptiontext无索引
unitvarchar(50)product无索引product
activetinyint(1)1无索引1
statusvarchar(50)enabledenabled, disabled无索引enabled
hiddentinyint(1)0无索引0
is_addontinyint(1)0无索引0
setupvarchar(50)after_payment无索引after_payment
addonstext无索引
icon_urlvarchar(255)无索引
allow_quantity_selecttinyint(1)0无索引0
stock_controltinyint(1)0无索引0
quantity_in_stockint(11)0无索引0
pluginvarchar(255)无索引
plugin_configtext无索引
upgradestext无索引
prioritybigint(20)无索引
configtext无索引
typevarchar(255)普通索引

猜你喜欢

MySQL数据库设计 主机销售-活动管理员历史纪录

MySQL数据库设计 主机销售-活动客户邮箱

MySQL数据库设计 主机销售-活动客户历史

MySQL数据库设计 主机销售-活动系统

MySQL数据库设计 主机销售-管理员

MySQL数据库设计 主机销售-管理员分组

MySQL数据库设计 主机销售-购物车

MySQL数据库设计 主机销售-购物车商品

MySQL数据库设计 主机销售-客户

MySQL数据库设计 主机销售-客户钱包

MySQL数据库设计 主机销售-客户分组

MySQL数据库设计 主机销售-客户订单

MySQL数据库设计 主机销售-客户订单元数量

MySQL数据库设计 主机销售-客户订单状态

MySQL数据库设计 主机销售-客户密码重置

MySQL数据库设计 主机销售-汇率

MySQL数据库设计 主机销售-邮件模板

MySQL数据库设计 主机销售-扩展

MySQL数据库设计 主机销售-扩展元数据

MySQL数据库设计 主机销售-表单



回到顶部 ↑