This commit is contained in:
devStorm 2021-05-26 22:34:50 -07:00
parent 258d505cbf
commit e6192ece01
No known key found for this signature in database
GPG key ID: D52E1B66F336AC57

View file

@ -163,11 +163,11 @@ class AliasGeneratorEnum(EnumE):
uuid = 2 # aliases are generated based on uuid uuid = 2 # aliases are generated based on uuid
class AliasSuffixEnum(EnumE): class AliasSuffixEnum(EnumE):
word = 0 # Random word from dictionary file word = 0 # Random word from dictionary file
random_string = 1 # Completely random string random_string = 1 # Completely random string
class Hibp(db.Model, ModelMixin): class Hibp(db.Model, ModelMixin):
__tablename__ = "hibp" __tablename__ = "hibp"
name = db.Column(db.String(), nullable=False, unique=True, index=True) name = db.Column(db.String(), nullable=False, unique=True, index=True)
@ -177,7 +177,6 @@ class Hibp(db.Model, ModelMixin):
return f"<HIBP Breach {self.id} {self.name}>" return f"<HIBP Breach {self.id} {self.name}>"
class Fido(db.Model, ModelMixin): class Fido(db.Model, ModelMixin):
__tablename__ = "fido" __tablename__ = "fido"
credential_id = db.Column(db.String(), nullable=False, unique=True, index=True) credential_id = db.Column(db.String(), nullable=False, unique=True, index=True)