We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
表创建语句
DROP TABLE IF EXISTS `test_db`; CREATE TABLE `test_db` ( `id` int(0) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键', `created_at` datetime(0) NOT NULL COMMENT '创建时间', `updated_at` datetime(0) NOT NULL COMMENT '更新时间', `deleted_at` datetime(0) NULL DEFAULT NULL COMMENT '删除时间', `type_id` bigint(0) UNSIGNED NOT NULL DEFAULT 0, `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `age` int(0) NULL DEFAULT NULL, `avatar_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `passwd` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `created` datetime(0) NULL DEFAULT NULL, `updated` datetime(0) NULL DEFAULT NULL, `gender` enum('one','two') CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL, `birthday` datetime(0) NULL DEFAULT NULL, `email` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, `detial` json NULL, `price` decimal(10, 2) UNSIGNED NULL DEFAULT NULL, PRIMARY KEY (`id`, `type_id`) USING BTREE, UNIQUE INDEX `uix_test_db_email`(`email`) USING BTREE, INDEX `idx_test_db_deleted_at`(`deleted_at`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = DYNAMIC; SET FOREIGN_KEY_CHECKS = 1;
其中price,生成model时会报错 table: test_db unable to generate struct field: price type: udecimal error: unknown sql type: udecimal.
table: test_db unable to generate struct field: price type: udecimal error: unknown sql type: udecimal
The text was updated successfully, but these errors were encountered:
Please pull v0.9.10 - I pushed a release that fixes the issue
Sorry, something went wrong.
No branches or pull requests
表创建语句
其中price,生成model时会报错
table: test_db unable to generate struct field: price type: udecimal error: unknown sql type: udecimal
.The text was updated successfully, but these errors were encountered: