Add files via upload

This commit is contained in:
Arc 2023-02-11 08:06:45 +00:00 committed by GitHub
commit bcde392f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1714 additions and 0 deletions

43
models.py Normal file
View file

@ -0,0 +1,43 @@
from fastapi.param_functions import Query
from pydantic import BaseModel
class CreateEvent(BaseModel):
wallet: str
name: str
info: str
closing_date: str
event_start_date: str
event_end_date: str
amount_tickets: int = Query(..., ge=0)
price_per_ticket: int = Query(..., ge=0)
class CreateTicket(BaseModel):
name: str
email: str
class Events(BaseModel):
id: str
wallet: str
name: str
info: str
closing_date: str
event_start_date: str
event_end_date: str
amount_tickets: int
price_per_ticket: int
sold: int
time: int
class Tickets(BaseModel):
id: str
wallet: str
event: str
name: str
email: str
registered: bool
paid: bool
time: int