arkitel / backend /models.py
CBV01
Initialize project and prepare for Render deployment
9e497a6
Raw History Blame Contribute Delete
371 Bytes
from typing import Optional, List
from pydantic import BaseModel
class Account(BaseModel):
id: int
phone_number: str
session_string: str
status: str # active, banned, pending
class Task(BaseModel):
id: int
account_id: int
scheduled_time: str
message_text: str
target_groups: str
status: str # pending, running, completed, failed