MySQL Create Table SQL
Table Structure: okayapi_zheng_ucenter_user_log:/tablelist/okayapi_zheng_ucenter_user_log.html
-- MySQL Table okayapi_zheng_ucenter_user_log
-- From: OkayAPI.com
CREATE TABLE `okayapi_zheng_ucenter_user_log` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) NOT NULL COMMENT '用户编号',
`content` varbinary(100) NOT NULL COMMENT '内容',
`ip` varchar(20) NOT NULL COMMENT '操作IP地址',
`agent` varbinary(200) NOT NULL COMMENT '操作环境',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '操作时间',
KEY `user_id` (`user_id`),
KEY `content` (`content`),
KEY `ip` (`ip`),
KEY `agent` (`agent`),
KEY `create_time` (`create_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB COMMENT 'zheng敏捷开发-用户操作日志表';
After replication, you can go to the database to create the database table.
MySQL database table structure design
Displaying 1-5 of 5 results.
Field Name | Field Type | Default | IS NULL | Field Comment | Index | Demo Data |
---|---|---|---|---|---|---|
user_id | int(10) | 是 | 用户编号 | |||
content | varbinary(100) | 是 | 内容 | |||
ip | varchar(20) | 是 | 操作IP地址 | |||
agent | varbinary(200) | 是 | 操作环境 | |||
create_time | timestamp | CURRENT_TIMESTAMP | 否 | 操作时间 | CURRENT_TIMESTAMP |