MySQL Create Table SQL
Table Structure: okayapi_member_datas_log:/tablelist/okayapi_member_datas_log.html
-- MySQL Table okayapi_member_datas_log
-- From: OkayAPI.com
CREATE TABLE `okayapi_member_datas_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`member_id` int(11) NULL COMMENT '用户id',
`credit_type` varchar(30) NULL COMMENT '变动类型[integral:积分;money:余额]',
`credit_group` varchar(30) NULL COMMENT '变动的详细组别',
`old_num` double NULL DEFAULT '0' COMMENT '之前的数据',
`new_num` double NULL DEFAULT '0' COMMENT '变动后的数据',
`num` double NULL DEFAULT '0' COMMENT '变动的数据',
`remark` varchar(200) NULL COMMENT '备注',
`status` tinyint(4) NULL DEFAULT '1' COMMENT '状态[-1:删除;0:禁用;1启用]',
KEY `member_id` (`member_id`),
KEY `credit_type` (`credit_type`),
KEY `credit_group` (`credit_group`),
KEY `old_num` (`old_num`),
KEY `new_num` (`new_num`),
KEY `num` (`num`),
KEY `remark` (`remark`),
KEY `status` (`status`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT '会员数据变动记录表';
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 |
---|---|---|---|---|---|---|
member_id | int(11) | 是 | 用户id | |||
credit_type | varchar(30) | 否 | 变动类型[integral:积分;money:余额] | |||
credit_group | varchar(30) | 是 | 变动的详细组别 | |||
old_num | double | 0 | 是 | 之前的数据 | 0 | |
new_num | double | 0 | 是 | 变动后的数据 | 0 | |
num | double | 0 | 是 | 变动的数据 | 0 | |
remark | varchar(200) | 是 | 备注 | |||
status | tinyint(4) | 1 | 是 | 状态[-1:删除;0:禁用;1启用] | 1 |