diff --git a/doc/tduck-v4.sql b/doc/tduck-v4.sql index 0cc9872bbf90916adeb0d9b7e1b5ebba8dabe507..539bfcc07cc5165aca973525fd17b7f266dbe105 100644 --- a/doc/tduck-v4.sql +++ b/doc/tduck-v4.sql @@ -77,7 +77,7 @@ CREATE TABLE `ac_user_token` `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`) USING BTREE, - KEY `token` (`token`) + constraint token unique (token) ) ENGINE=InnoDB AUTO_INCREMENT=26 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC COMMENT='用户'; -- ----------------------------