sqlalchemy.exc.ProgrammingError: (psycopg2.errors.DuplicateObject) type “orderstatus” already exists. Is the problem in my model or in my database?

Solution
enum_type = sa.Enum("ONE", "TWO", "THREE", name="enum")
sa.Column("enum", enum_type, nullable=True)
enum_type.drop(op.get_bind(), checkfirst=False)