Refactor entry to ID

This commit is contained in:
= 2025-01-02 18:40:50 -05:00
parent 5528c9b858
commit 61c48828ac

View File

@ -197,7 +197,7 @@ def migrate(migrator, database, **kwargs):
BaseModel (_type_): _description_
"""
entry = peewee.CharField(primary_key=True, default="", index=True)
id = peewee.CharField(primary_key=True, default="", index=True)
name = peewee.CharField(default="TOTP")
user = peewee.ForeignKeyField(Users, backref="totp_user")
totp_secret = peewee.CharField()
@ -219,7 +219,7 @@ def migrate(migrator, database, **kwargs):
BaseModel (_type_): _description_
"""
entry = peewee.CharField(primary_key=True, default="", index=True)
id = peewee.CharField(primary_key=True, default="", index=True)
user = peewee.ForeignKeyField(Users, backref="totp_user")
recovery_secret = peewee.CharField()