Files
tgex-backend/src/domain/user.py

14 lines
378 B
Python

from tortoise import fields
from .base import TimestampedModel
class User(TimestampedModel):
telegram_id = fields.BigIntField(unique=True, index=True)
username = fields.CharField(max_length=255, null=True)
first_name = fields.CharField(max_length=255, null=True)
last_name = fields.CharField(max_length=255, null=True)
class Meta:
table = 'user'