15 lines
425 B
Python
15 lines
425 B
Python
from tortoise import fields
|
|
|
|
from .base import TimestampedModel
|
|
|
|
|
|
class Subscriber(TimestampedModel):
|
|
id = fields.UUIDField(pk=True)
|
|
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 = 'subscriber'
|