def METHOD_NAME(cls, metadata):
    Table(
        "table1",
        metadata,
        Column(
            "id", Integer, primary_key=True, test_needs_autoincrement=True
        ),
        Column(
            "related_id", Integer, ForeignKey("table1.id"), nullable=True
        ),
        Column("type", String(30)),
        Column("name", String(30)),
    )
    Table(
        "table2",
        metadata,
        Column("id", Integer, ForeignKey("table1.id"), primary_key=True),
    )
    Table(
        "table3",
        metadata,
        Column("id", Integer, ForeignKey("table1.id"), primary_key=True),
    )
    Table(
        "data",
        metadata,
        Column(
            "id", Integer, primary_key=True, test_needs_autoincrement=True
        ),
        Column("node_id", Integer, ForeignKey("table1.id")),
        Column("data", String(30)),
    )