scope-passed
This commit is contained in:
28
validations/inbox.py
Normal file
28
validations/inbox.py
Normal file
@@ -0,0 +1,28 @@
|
||||
from typing import Optional, Text, List
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class Message(BaseModel):
|
||||
id: int
|
||||
body: Text
|
||||
author: int
|
||||
chatId: Text
|
||||
createdAt: int
|
||||
updatedAt: Optional[int]
|
||||
replyTo: Optional[int]
|
||||
|
||||
|
||||
class Member(BaseModel):
|
||||
id: int
|
||||
name: Text
|
||||
pic: Optional[Text]
|
||||
# TODO: extend chat member model
|
||||
|
||||
|
||||
class Chat(BaseModel):
|
||||
createdAt: int
|
||||
createdBy: int
|
||||
users: List[int]
|
||||
updatedAt: Optional[int]
|
||||
title: Optional[Text]
|
||||
description: Optional[Text]
|
Reference in New Issue
Block a user