Skip to content

Commit

Permalink
encrypted field
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Swiss authored and Michael Swiss committed Oct 28, 2023
1 parent 22adbb6 commit 6285858
Show file tree
Hide file tree
Showing 3 changed files with 498 additions and 456 deletions.
3 changes: 2 additions & 1 deletion harambot/database/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from peewee import SqliteDatabase
from peewee import Model
from peewee import TextField, IntegerField, BigIntegerField, TimestampField
from peewee_encrypted_field import EncryptedField
from playhouse.db_url import connect
from harambot.config import settings

Expand All @@ -17,7 +18,7 @@ class Meta:

class Guild(BaseModel):
guild_id = TextField(unique=True)
access_token = TextField()
access_token = EncryptedField()
refresh_token = TextField()
expires_in = IntegerField()
token_type = TextField()
Expand Down
Loading

0 comments on commit 6285858

Please sign in to comment.