mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Refactor entry to ID
This commit is contained in:
parent
5528c9b858
commit
61c48828ac
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user