14 lines
378 B
Python
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'
|