Pipelinen parannuksia building blockeilla

This commit is contained in:
Jaakko Vanhala
2026-04-12 18:48:14 +03:00
parent c1a5f8aff5
commit b2ee8b9031
175 changed files with 13311 additions and 237 deletions

View File

@@ -0,0 +1,38 @@
from pydantic import BaseModel
from datetime import date
class ProductCreate(BaseModel):
product_id: int
name: str
description: str | None = None
category: str
class ProductResponse(ProductCreate):
id: int
class Config:
from_attributes = True
class StorageLocationCreate(BaseModel):
location_id: int
name: str
capacity: int = 0
class StorageLocationResponse(StorageLocationCreate):
id: int
class Config:
from_attributes = True
class TransferCreate(BaseModel):
transfer_id: int
product_id: int
from_location_id: int
to_location_id: int
quantity: int = 0
class TransferResponse(TransferCreate):
id: int
class Config:
from_attributes = True