MySQL Create Table SQL
Table Structure: okayapi_openant_user_coupon:/tablelist/okayapi_openant_user_coupon.html
-- MySQL Table okayapi_openant_user_coupon
-- From: OkayAPI.com
CREATE TABLE `okayapi_openant_user_coupon` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`coupon_id` int(11) NOT NULL COMMENT '',
`user_id` int(11) NOT NULL COMMENT '',
`okayapi_openant_user_coupon_value` float(8,8) NOT NULL COMMENT '',
`okayapi_openant_user_coupon_condition` int(8) NOT NULL COMMENT '',
`store_id` int(11) NOT NULL COMMENT '',
`okayapi_openant_user_coupon_status` tinyint(1) NOT NULL COMMENT '',
`date_added` datetime NOT NULL COMMENT '',
`date_expired` datetime NOT NULL COMMENT '',
KEY `coupon_id` (`coupon_id`),
KEY `user_id` (`user_id`),
KEY `okayapi_openant_user_coupon_value` (`okayapi_openant_user_coupon_value`),
KEY `okayapi_openant_user_coupon_condition` (`okayapi_openant_user_coupon_condition`),
KEY `store_id` (`store_id`),
KEY `okayapi_openant_user_coupon_status` (`okayapi_openant_user_coupon_status`),
KEY `date_added` (`date_added`),
KEY `date_expired` (`date_expired`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'openant电商-用户优惠券';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-8 of 8 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
coupon_id | int(11) | 否 | ||||
user_id | int(11) | 否 | ||||
okayapi_openant_user_coupon_value | float(8,8) | 否 | ||||
okayapi_openant_user_coupon_condition | int(8) | 否 | ||||
store_id | int(11) | 否 | ||||
okayapi_openant_user_coupon_status | tinyint(1) | 否 | ||||
date_added | datetime | 否 | ||||
date_expired | datetime | 否 |