Files
tgex-backend/src/domain/subscriber.py
2025-12-11 14:39:07 +03:00

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'