def METHOD_NAME():
    op.create_table(
        "ses_emails",
        sa.Column(
            "id",
            postgresql.UUID(as_uuid=True),
            server_default=sa.text("gen_random_uuid()"),
            nullable=False,
        ),
        sa.Column(
            "created", sa.DateTime(), server_default=sa.text("now()"), nullable=False
        ),
        sa.Column(
            "status", SESEmailStatuses, nullable=False, server_default="Accepted"
        ),
        sa.Column("message_id", sa.Text(), nullable=False),
        sa.Column("from", sa.Text(), nullable=False),
        sa.Column("to", sa.Text(), nullable=False),
        sa.Column("subject", sa.Text(), nullable=False),
        sa.PrimaryKeyConstraint("id"),
    )
    op.create_index(
        op.f("ix_ses_emails_message_id"), "ses_emails", ["message_id"], unique=True
    )
    op.create_index(op.f("ix_ses_emails_to"), "ses_emails", ["to"], unique=False)
    op.create_table(
        "ses_events",
        sa.Column(
            "id",
            postgresql.UUID(as_uuid=True),
            server_default=sa.text("gen_random_uuid()"),
            nullable=False,
        ),
        sa.Column(
            "created", sa.DateTime(), server_default=sa.text("now()"), nullable=False
        ),
        sa.Column("email_id", postgresql.UUID(as_uuid=True), nullable=False),
        sa.Column("event_id", sa.Text(), nullable=False),
        sa.Column("event_type", SESEventTypes, nullable=False),
        sa.Column(
            "data",
            postgresql.JSONB(astext_type=sa.Text()),
            server_default=sa.text("'{}'"),
            nullable=False,
        ),
        sa.ForeignKeyConstraint(
            ["email_id"], ["ses_emails.id"], initially="DEFERRED", deferrable=True
        ),
        sa.PrimaryKeyConstraint("id"),
    )
    op.create_index(
        op.f("ix_ses_events_event_id"), "ses_events", ["event_id"], unique=True
    )
    EmailFailureTypes.create(op.get_bind(), checkfirst=True)
    op.add_column(
        "accounts_email", sa.Column("unverify_reason", EmailFailureTypes, nullable=True)
    )
    op.add_column(
        "accounts_email",
        sa.Column(
            "transient_bounces",
            sa.Integer(),
            server_default=sa.text("0"),
            nullable=False,
        ),
    )