MySQL数据库表结构设计
第 1-30 条, 共 30 条.
| 字段名称 | 字段类型 | 字段默认值 | 是否允许为空 | 字段描述 | 索引 | 字段数据示例 |
|---|---|---|---|---|---|---|
| product_id | int(11) | 否 | 无索引 | |||
| address_id | int(11) | 否 | 无索引 | |||
| stock_status_id | int(11) | 否 | 无索引 | |||
| freight_template_id | int(11) | 否 | 无索引 | |||
| image | varchar(255) | 否 | 无索引 | |||
| manufacturer_id | int(11) | 否 | 无索引 | |||
| shipping | tinyint(1) | 1 | 否 | 无索引 | 1 | |
| price | decimal(15,4) | 0.0000 | 否 | 无索引 | 0.0000 | |
| points | int(8) | 0 | 否 | 无索引 | 0 | |
| user_points | int(11) | 否 | 无索引 | |||
| tax_class_id | int(11) | 否 | 无索引 | |||
| weight | decimal(15,8) | 0.00000000 | 否 | 无索引 | 0.00000000 | |
| weight_class_id | int(11) | 0 | 否 | 无索引 | 0 | |
| length | decimal(15,8) | 0.00000000 | 否 | 无索引 | 0.00000000 | |
| width | decimal(15,8) | 0.00000000 | 否 | 无索引 | 0.00000000 | |
| height | decimal(15,8) | 0.00000000 | 否 | 无索引 | 0.00000000 | |
| length_class_id | int(11) | 0 | 否 | 无索引 | 0 | |
| subtract | tinyint(1) | 1 | 否 | 无索引 | 1 | |
| maximum | int(3) | 否 | 无索引 | |||
| commission_rate | int(11) | 1 | 否 | 无索引 | 1 | |
| store_id | int(11) | 0 | 否 | 无索引 | 0 | |
| sort_order | int(11) | 0 | 否 | 无索引 | 0 | |
| seo_order | float(11,4) | 0.0000 | 否 | 无索引 | 0.0000 | |
| yesapi_openant_product_status | tinyint(1) | 0 | 否 | 上下架 | 无索引 | 0 |
| viewed | int(11) | 0 | 否 | 无索引 | 0 | |
| quantity | int(11) | 否 | 无索引 | |||
| invalid | tinyint(1) | 0 | 否 | 永久屏蔽 | 无索引 | 0 |
| date_added | datetime | 否 | 无索引 | |||
| date_modified | datetime | 否 | 无索引 | |||
| date_invalid | datetime | 否 | 无索引 |
MySQL建表SQL语句 免费MySQL数据库表结构设计
数据库结构:openant电商-商品:https://open.yesapi.cn/tablelist/yesapi_openant_product.html
-- 数据库大全:openant电商-商品
-- 来源:YesApi.cn
CREATE TABLE `yesapi_openant_product` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`product_id` int(11) NOT NULL COMMENT '',
`address_id` int(11) NOT NULL COMMENT '',
`stock_status_id` int(11) NOT NULL COMMENT '',
`freight_template_id` int(11) NOT NULL COMMENT '',
`image` varchar(255) NOT NULL COMMENT '',
`manufacturer_id` int(11) NOT NULL COMMENT '',
`shipping` tinyint(1) NOT NULL DEFAULT '1' COMMENT '',
`price` decimal(15,4) NOT NULL DEFAULT '0.0000' COMMENT '',
`points` int(8) NOT NULL DEFAULT '0' COMMENT '',
`user_points` int(11) NOT NULL COMMENT '',
`tax_class_id` int(11) NOT NULL COMMENT '',
`weight` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
`weight_class_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`length` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
`width` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
`height` decimal(15,8) NOT NULL DEFAULT '0.00000000' COMMENT '',
`length_class_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`subtract` tinyint(1) NOT NULL DEFAULT '1' COMMENT '',
`maximum` int(3) NOT NULL COMMENT '',
`commission_rate` int(11) NOT NULL DEFAULT '1' COMMENT '',
`store_id` int(11) NOT NULL DEFAULT '0' COMMENT '',
`sort_order` int(11) NOT NULL DEFAULT '0' COMMENT '',
`seo_order` float(11,4) NOT NULL DEFAULT '0.0000' COMMENT '',
`yesapi_openant_product_status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '上下架',
`viewed` int(11) NOT NULL DEFAULT '0' COMMENT '',
`quantity` int(11) NOT NULL COMMENT '',
`invalid` tinyint(1) NOT NULL DEFAULT '0' COMMENT '永久屏蔽',
`date_added` datetime NOT NULL COMMENT '',
`date_modified` datetime NOT NULL COMMENT '',
`date_invalid` datetime NOT NULL COMMENT '',
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'openant电商-商品';
复制后,到数据库执行,即可创建此数据库表。
猜你喜欢
粤公网安备44011302002121号
|
