-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
61 lines (50 loc) · 1.08 KB
/
Copy pathmodels.py
File metadata and controls
61 lines (50 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
from pydantic import BaseModel
from datetime import datetime
# FIRESTORE COLLECTION MODELS
class Convite(BaseModel):
uid_voluntario: str
nome_instituicao: str
titulo_evento: str
horario_evento: datetime
class Login(BaseModel):
email: str
password: str
class Cadastro(BaseModel):
nome: str
email: str
password: str
tipo: str
class Voluntario(BaseModel):
nome: str
logradouro: str
cidade: str
uf: str
cep: str
contato: str
habilidades: list[str]
disponibilidade: list[str]
class Instituicao(BaseModel):
nome: str
setor: str
logradouro: str
numero: int
cidade: str
uf: str
cep: str
contato: str
class Evento(BaseModel):
titulo_evento: str
instituicao: str
horario_evento: str
n_participantes: int
participantes: list[str]
status: str
# IBM WO CHAT MODELS
class StartSessionResponse(BaseModel):
session_id: str
class ChatRequest(BaseModel):
session_id: str
message: str
class ChatResponse(BaseModel):
session_id: str
response: str