Javelina/classes/custom_channel.py

16 lines
283 B
Python
Raw Permalink Normal View History

from dataclasses import dataclass
from datetime import datetime
from bson import ObjectId
@dataclass
class CustomChannel:
_id: ObjectId
channel_id: int
owner_id: int
allow_comments: bool
allow_reactions: bool
created: datetime
deleted: datetime | None