CREATE TABLE IF NOT EXISTS map_0_data (
    id BIGINT(20) NOT NULL AUTO_INCREMENT,
    type VARCHAR(12) NOT NULL,
    points MEDIUMTEXT NOT NULL,
    point VARCHAR(255) NOT NULL,
    color VARCHAR(255),
    phase INT(1) NOT NULL,
    width INT(11),
    child_relations MEDIUMTEXT,
    father_relation VARCHAR(255),
    child_nodes MEDIUMTEXT,
    father_node VARCHAR(255),
    details MEDIUMTEXT,
    custom MEDIUMTEXT,
    PRIMARY KEY (id)
);

CREATE TABLE IF NOT EXISTS map_0_layer (
    id BIGINT(20) NOT NULL AUTO_INCREMENT,
    type VARCHAR(255) NOT NULL,
    members MEDIUMTEXT NOT NULL,
    structure MEDIUMTEXT NOT NULL,
    phase INT(1) NOT NULL,
    PRIMARY KEY (id)
);

CREATE TABLE IF NOT EXISTS account_data (
    user_email VARCHAR(255) NOT NULL,
    user_name VARCHAR(255) NOT NULL,
    pass_word VARCHAR(255) NOT NULL,
    map_layer INT(11),
    default_a1 VARCHAR(255),
    save_point MEDIUMTEXT,
    user_qq VARCHAR(255),
    head_color VARCHAR(6),
    mode INT(1) NOT NULL,
    phase INT(1) NOT NULL,
    custom MEDIUMTEXT,
    PRIMARY KEY (user_email)
);