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

MySQL建表SQL语句

数据库结构:主机销售-优惠折扣:https://open.yesapi.cn/tablelist/yesapi_box_promo.html


-- 数据库大全:主机销售-优惠折扣
-- 来源:YesApi.cn
CREATE TABLE `yesapi_box_promo` (
    `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `code` varchar(100) NULL COMMENT '',
    `description` text NULL COMMENT '',
    `type` varchar(30) NULL DEFAULT 'percentage' COMMENT 'absolute, percentage, trial',
    `value` decimal(18,2) NULL COMMENT '',
    `maxuses` int(11) NULL DEFAULT '0' COMMENT '',
    `used` int(11) NULL DEFAULT '0' COMMENT '',
    `freesetup` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `once_per_client` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `recurring` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `active` tinyint(1) NULL DEFAULT '0' COMMENT '',
    `products` text NULL COMMENT '',
    `periods` text NULL COMMENT '',
    `client_groups` text NULL COMMENT '',
    `start_at` datetime NULL COMMENT '',
    `end_at` datetime NULL COMMENT '',
    KEY `code` (`code`),
    KEY `active` (`active`),
    KEY `start_at` (`start_at`),
    KEY `end_at` (`end_at`),
    PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '主机销售-优惠折扣';

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


MySQL数据库表结构设计

第 1-15 条, 共 15 条.
字段名称字段类型字段默认值是否允许为空字段描述索引字段数据示例
codevarchar(100)普通索引
descriptiontext无索引
typevarchar(30)percentageabsolute, percentage, trial无索引percentage
valuedecimal(18,2)无索引
maxusesint(11)0无索引0
usedint(11)0无索引0
freesetuptinyint(1)0无索引0
once_per_clienttinyint(1)0无索引0
recurringtinyint(1)0无索引0
activetinyint(1)0普通索引0
productstext无索引
periodstext无索引
client_groupstext无索引
start_atdatetime普通索引
end_atdatetime普通索引

猜你喜欢

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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



回到顶部 ↑