Files
wzdj/new/wz-api/scripts/wanzhi_user_auths.sql

15 lines
644 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- 玩值手机号账密user_authsAutoMigrate 通常已建表,本脚本供禁用了 AutoMigrate 的环境手工执行。
CREATE TABLE IF NOT EXISTS `user_auths` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
`user_id` varchar(50) NOT NULL,
`auth_type` varchar(20) NOT NULL,
`auth_id` varchar(64) NOT NULL,
`credential` varchar(255) NOT NULL,
`created_at` datetime(3) DEFAULT NULL,
`updated_at` datetime(3) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `ux_user_auth_type_id` (`auth_type`,`auth_id`),
KEY `idx_user_auths_user_id` (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;