from app import db


class BuyerEmailDomain(db.Model):
    __tablename__ = 'buyer_email_domains'

    id = db.Column(db.Integer, primary_key=True)
    domain_name = db.Column(db.String(), nullable=False)

    def serialize(self):
        return {
            "id": self.id,
            "domainName": self.domain_name,
        }

@@ -195,16 +195,29 @@
 le=False
+, unique=True
 )%0A%0A    d

add unique constraint to domain_name to match migration state