Skip to content

Commit

Permalink
fix: model username allow null
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Trotsenko committed Aug 5, 2023
1 parent ae6a78e commit 23a39ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Meta:

class User(BaseModel):
id = BigAutoField(unique=True)
username = CharField()
username = CharField(null=True)
first_name = CharField()
last_name = CharField(null=True)
chat_id = BigIntegerField()
Expand Down

0 comments on commit 23a39ee

Please sign in to comment.