MySQL Create Table SQL
Table Structure: okayapi_shopxo_s_user_integral_log:/tablelist/okayapi_shopxo_s_user_integral_log.html
-- MySQL Table okayapi_shopxo_s_user_integral_log
-- From: OkayAPI.com
CREATE TABLE `okayapi_shopxo_s_user_integral_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(11) NOT NULL DEFAULT '0' COMMENT '用户id',
`okayapi_shopxo_s_user_integral_log_type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '操作类型(0减少, 1增加)',
`original_integral` int(10) NOT NULL DEFAULT '0' COMMENT '原始积分',
`new_integral` int(10) NOT NULL DEFAULT '0' COMMENT '最新积分',
`msg` char(255) NOT NULL COMMENT '操作原因',
`operation_id` int(11) NOT NULL DEFAULT '0' COMMENT '操作人员id',
KEY `user_id` (`user_id`),
KEY `okayapi_shopxo_s_user_integral_log_type` (`okayapi_shopxo_s_user_integral_log_type`),
KEY `original_integral` (`original_integral`),
KEY `new_integral` (`new_integral`),
KEY `msg` (`msg`),
KEY `operation_id` (`operation_id`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'ShopXO商城-用户积分日志';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-6 of 6 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(11) | 0 | 否 | 用户id | Normal Index | 0 |
okayapi_shopxo_s_user_integral_log_type | tinyint(1) | 0 | 否 | 操作类型(0减少, 1增加) | 0 | |
original_integral | int(10) | 0 | 否 | 原始积分 | 0 | |
new_integral | int(10) | 0 | 否 | 最新积分 | 0 | |
msg | char(255) | 是 | 操作原因 | |||
operation_id | int(11) | 0 | 否 | 操作人员id | 0 |