initial commit

This commit is contained in:
2023-01-09 13:03:16 +01:00
commit d0c0668fad
89 changed files with 12472 additions and 0 deletions

View File

@@ -0,0 +1 @@
from .routes import router as order_router

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

13
back/app/order/models.py Normal file
View File

@@ -0,0 +1,13 @@
from datetime import datetime
from beanie import Document
class Order(Document):
id: str
client: str
created_at: datetime
updated_at: datetime
class Settings:
name = "order_collection"

5
back/app/order/routes.py Normal file
View File

@@ -0,0 +1,5 @@
from ..core.routes import get_crud_router
from .models import Order
from .schemas import OrderCreate, OrderRead, OrderUpdate
router = get_crud_router(Order, OrderCreate, OrderRead, OrderUpdate)

14
back/app/order/schemas.py Normal file
View File

@@ -0,0 +1,14 @@
import uuid
from pydantic import BaseModel
class OrderRead(BaseModel):
pass
class OrderCreate(BaseModel):
login: str
class OrderUpdate(BaseModel):
pass