def METHOD_NAME():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_constraint("fk_users_gid_groups", "users", type_="foreignkey")
    op.drop_column("users", "primary_gid")
    op.drop_column("users", "modified")
    op.drop_table("user_to_groups")
    op.drop_table("groups")
    # ### end Alembic commands ###
    # manually added migration
    op.execute("DROP TRIGGER IF EXISTS user_modification on users;")
    op.execute("DROP FUNCTION set_user_groups()")
    op.execute("DROP TRIGGER IF EXISTS group_delete_trigger on groups")
    op.execute("DROP FUNCTION group_delete_procedure()")
    op.execute("DROP FUNCTION check_group_uniqueness(name text, type text)")
    op.execute("DROP TYPE IF EXISTS grouptype")
    op.alter_column("users", "created_at", server_default=None)