short-url-fastapi/surl.sql
2023-09-08 09:46:29 +08:00

16 lines
633 B
SQL

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for surl
-- ----------------------------
DROP TABLE IF EXISTS `surl`;
CREATE TABLE `surl` (
`id` CHAR(36) NOT NULL PRIMARY KEY DEFAULT (UUID()),
`source` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`target` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`createTime` datetime DEFAULT NOW(),
`expireTime` datetime NULL DEFAULT NULL
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci ROW_FORMAT = Dynamic;
SET FOREIGN_KEY_CHECKS = 1;