--创建孩子性格测试表
DROP TABLE IF EXISTS `mp_test_child_character`;
CREATE TABLE `mp_test_child_character`(
    `id`                 int NOT NULL AUTO_INCREMENT,
    `parent_id`          int NULL DEFAULT NULL COMMENT '家长Id',
    `grade`              varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '年级',
    `constellation`      varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '星座',
    `child_birth_date`   date NULL DEFAULT NULL COMMENT '出生年月',
    `child_gender`       varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '孩子性别(男，女)',
    `character_analysis` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '性格分析结果',
    `character_traits`   varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '性格特征',
    `suggestions`        varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '建议',
    `character_type`     varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '性格类型',
    `deleted`            int      NOT NULL COMMENT '逻辑删除(0-正常，1-已删除)',
    `create_time`        datetime NOT NULL COMMENT '创建时间',
    `create_by`          varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '创建人',
    `update_time`        datetime NULL DEFAULT NULL COMMENT '修改时间',
    `update_by`          varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '修改人',
    `tenant_id`          varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_german2_ci NULL DEFAULT NULL COMMENT '租户Id',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_german2_ci ROW_FORMAT = Dynamic;

SET
FOREIGN_KEY_CHECKS = 1;
