refactor into singular

models should always by singular
This commit is contained in:
dni ⚡ 2023-06-27 11:57:16 +02:00
parent cdcba0073a
commit 1032bd9d7e
No known key found for this signature in database
GPG key ID: 886317704CC4E618
2 changed files with 19 additions and 19 deletions

View file

@ -1,4 +1,4 @@
from fastapi.param_functions import Query
from fastapi import Query
from pydantic import BaseModel
@ -18,7 +18,7 @@ class CreateTicket(BaseModel):
email: str
class Events(BaseModel):
class Event(BaseModel):
id: str
wallet: str
name: str
@ -32,7 +32,7 @@ class Events(BaseModel):
time: int
class Tickets(BaseModel):
class Ticket(BaseModel):
id: str
wallet: str
event: str