MySQL Create Table SQL
Table Structure: okayapi_zheng_ucenter_user_oauth:/tablelist/okayapi_zheng_ucenter_user_oauth.html
-- MySQL Table okayapi_zheng_ucenter_user_oauth
-- From: OkayAPI.com
CREATE TABLE `okayapi_zheng_ucenter_user_oauth` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`user_id` int(10) NOT NULL COMMENT '帐号编号',
`oauth_id` int(10) NOT NULL COMMENT '认证方式编号',
`open_id` varbinary(50) NOT NULL COMMENT '第三方ID',
`okayapi_zheng_ucenter_user_oauth_status` tinyint(4) NOT NULL COMMENT '绑定状态(0:解绑,1:绑定)',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
KEY `user_id` (`user_id`),
KEY `oauth_id` (`oauth_id`),
KEY `open_id` (`open_id`),
KEY `okayapi_zheng_ucenter_user_oauth_status` (`okayapi_zheng_ucenter_user_oauth_status`),
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) | 否 | 帐号编号 | Normal Index | ||
oauth_id | int(10) | 否 | 认证方式编号 | Normal Index | ||
open_id | varbinary(50) | 否 | 第三方ID | |||
okayapi_zheng_ucenter_user_oauth_status | tinyint(4) | 是 | 绑定状态(0:解绑,1:绑定) | |||
create_time | timestamp | CURRENT_TIMESTAMP | 否 | 创建时间 | CURRENT_TIMESTAMP |