<gh_stars>1-10
from pydantic import BaseModel


# about User
class User(BaseModel):
    id: int
    username: str
    slack_id: str
    my_reaction: int

    class Config:
        orm_mode = True


class UserCreate(BaseModel):
    username: str
    slack_id: str
    avatar_url: str


class UserReaction(BaseModel):
    username: str
    slack_id: str
    avatar_url: str
    my_reaction: int
    total_reaction: int


# about Reaction
class Reaction(BaseModel):
    id: int
    year: int
    month: int
    to_user: int
    from_user: int
    type: str
    count: int

    class Config:
        orm_mode = True


class ReactionCreate(BaseModel):
    year: int
    month: int
    to_user: int
    from_user: int
    type: str


# ETC
class SlackEventHook(BaseModel):
    token: str
    team_id: str
    api_app_id: str
    event: dict
    type: str
    event_id: str
    event_time: int
    authorizations: list
    is_ext_shared_channel: bool
    event_context: str

from pydantic import BaseModel


# about User
class User(BaseModel):
    id: int
    username: str
    slack_id: str
    my_reaction: int

    class Config:
        orm_mode = True


class UserCreate(BaseModel):
    username: str
    slack_id: str
    avatar_url: str


class UserReaction(BaseModel):
    username: str
    slack_id: str
    avatar_url: str
    my_reaction: int
    total_reaction: int


# about Reaction
class Reaction(BaseModel):
    id: int
    year: int
    month: int
    to_user: int
    from_user: int
    type: str
    count: int

    class Config:
        orm_mode = True


class ReactionCreate(BaseModel):
    year: int
    month: int
    to_user: int
    from_user: int
    type: str


# ETC
class SlackEventHook(BaseModel):
    token: str
    team_id: str
    api_app_id: str
    event: dict
    type: str
    event_id: str
    event_time: int
    authorizations: list
    is_ext_shared_channel: bool
    event_context: str
# about User # about Reaction # ETC