{
    "media_type": {
        "name": "media_type",
        "fields": {
            "media_type_id": {
                "name": "media_type_id",
                "type": "INT",
                "null": false,
                "primary": true,
                "autoincrement": true
            },
            "media_type_name": {
                "name": "media_type_name",
                "type": "VARCHAR(255)",
                "null": false
            },
            "media_type_isvisible": {
                "name": "media_type_isvisible",
                "type": "TINYINT(1)",
                "null": false
            }
        }
    },
    "media_type_l11n": {
        "name": "media_type_l11n",
        "fields": {
            "media_type_l11n_id": {
                "name": "media_type_l11n_id",
                "type": "INT",
                "null": false,
                "primary": true,
                "autoincrement": true
            },
            "media_type_l11n_title": {
                "name": "media_type_l11n_title",
                "type": "VARCHAR(255)",
                "null": false
            },
            "media_type_l11n_type": {
                "name": "media_type_l11n_type",
                "type": "INT",
                "null": false,
                "foreignTable": "media_type",
                "foreignKey": "media_type_id"
            },
            "media_type_l11n_language": {
                "name": "media_type_l11n_language",
                "type": "VARCHAR(2)",
                "default": null,
                "null": true,
                "foreignTable": "language",
                "foreignKey": "language_639_1"
            }
        }
    },
    "media_parsed": {
        "name": "media_parsed",
        "fields": {
            "media_parsed_id": {
                "name": "media_parsed_id",
                "type": "INT",
                "null": false,
                "primary": true,
                "autoincrement": true
            },
            "media_parsed_content": {
                "name": "media_parsed_content",
                "type": "LONGTEXT",
                "null": false
            }
        }
    },
    "media": {
        "name": "media",
        "fields": {
            "media_id": {
                "name": "media_id",
                "type": "INT",
                "null": false,
                "primary": true,
                "autoincrement": true
            },
            "media_name": {
                "name": "media_name",
                "type": "VARCHAR(255)",
                "null": false
            },
            "media_type": {
                "name": "media_type",
                "type": "INT",
                "null": true,
                "foreignTable": "media_type",
                "foreignKey": "media_type_id"
            },
            "media_description": {
                "name": "media_description",
                "type": "TEXT",
                "default": null,
                "null": true
            },
            "media_description_raw": {
                "name": "media_description_raw",
                "type": "TEXT",
                "default": null,
                "null": true
            },
            "media_versioned": {
                "name": "media_versioned",
                "type": "TINYINT",
                "null": false
            },
            "media_status": {
                "name": "media_status",
                "type": "TINYINT",
                "null": false
            },
            "media_file": {
                "name": "media_file",
                "type": "VARCHAR(255)",
                "null": false
            },
            "media_virtual": {
                "name": "media_virtual",
                "type": "VARCHAR(255)",
                "null": false
            },
            "media_absolute": {
                "name": "media_absolute",
                "type": "TINYINT",
                "null": false
            },
            "media_nonce": {
                "name": "media_nonce",
                "type": "VARCHAR(255)",
                "null": true,
                "default": null
            },
            "media_password": {
                "name": "media_password",
                "type": "VARCHAR(255)",
                "null": true,
                "default": null
            },
            "media_extension": {
                "name": "media_extension",
                "type": "VARCHAR(50)",
                "default": null,
                "null": true
            },
            "media_class": {
                "name": "media_class",
                "type": "TINYINT",
                "default": null,
                "null": true
            },
            "media_size": {
                "name": "media_size",
                "type": "INT",
                "default": null,
                "null": true
            },
            "media_content": {
                "name": "media_content",
                "type": "INT",
                "null": true,
                "default": null,
                "foreignTable": "media_parsed",
                "foreignKey": "media_parsed_id"
            },
            "media_source": {
                "name": "media_source",
                "type": "INT",
                "null": true,
                "foreignTable": "media",
                "foreignKey": "media_id"
            },
            "media_created_by": {
                "name": "media_created_by",
                "type": "INT",
                "null": false,
                "foreignTable": "account",
                "foreignKey": "account_id"
            },
            "media_created_at": {
                "name": "media_created_at",
                "type": "DATETIME",
                "null": false
            }
        }
    },
    "media_relation": {
        "name": "media_relation",
        "fields": {
            "media_relation_id": {
                "name": "media_relation_id",
                "type": "INT",
                "null": false,
                "primary": true,
                "autoincrement": true
            },
            "media_relation_src": {
                "name": "media_relation_src",
                "type": "INT",
                "null": false,
                "foreignTable": "media",
                "foreignKey": "media_id"
            },
            "media_relation_dst": {
                "name": "media_relation_dst",
                "type": "INT",
                "null": false,
                "foreignTable": "media",
                "foreignKey": "media_id"
            }
        }
    },
    "media_tag": {
        "name": "media_tag",
        "fields": {
            "media_tag_id": {
                "name": "media_tag_id",
                "type": "INT",
                "null": false,
                "primary": true,
                "autoincrement": true
            },
            "media_tag_src": {
                "name": "media_tag_src",
                "type": "INT",
                "null": false,
                "foreignTable": "media",
                "foreignKey": "media_id"
            },
            "media_tag_dst": {
                "name": "media_tag_dst",
                "type": "INT",
                "null": false,
                "foreignTable": "tag",
                "foreignKey": "tag_id"
            }
        }
    }
}