Prepare Specs UI for Windows review

This commit is contained in:
Alex
2026-10-10 11:30:27 +00:00
parent 6e6035c789
commit 25511870ff
68 changed files with 1931 additions and 1070 deletions
-145
View File
@@ -83,25 +83,6 @@ class System(SystemBase):
class Config:
from_attributes = True
# Key schemas
class KeyBase(TimestampMixin):
name: str
description: Optional[str] = None
system_id: int
guardian_id: int
class KeyCreate(KeyBase):
pass
class KeyUpdate(KeyBase):
pass
class Key(KeyBase):
id: int
class Config:
from_attributes = True
# Guardian schemas
class GuardianBase(TimestampMixin):
name: str
@@ -121,132 +102,6 @@ class Guardian(GuardianBase):
class Config:
from_attributes = True
# LicenseType schemas
class LicenseTypeBase(TimestampMixin):
name: str
description: Optional[str] = None
class LicenseTypeCreate(LicenseTypeBase):
pass
class LicenseTypeUpdate(LicenseTypeBase):
pass
class LicenseType(LicenseTypeBase):
id: int
class Config:
from_attributes = True
# Product schemas
class ProductBase(TimestampMixin):
name: str
description: Optional[str] = None
class ProductCreate(ProductBase):
pass
class ProductUpdate(ProductBase):
pass
class Product(ProductBase):
id: int
class Config:
from_attributes = True
# ResourcePool schemas
class ResourcePoolBase(TimestampMixin):
name: str
description: Optional[str] = None
class ResourcePoolCreate(ResourcePoolBase):
pass
class ResourcePoolUpdate(ResourcePoolBase):
pass
class ResourcePool(ResourcePoolBase):
id: int
class Config:
from_attributes = True
# PoolResource schemas
class PoolResourceBase(TimestampMixin):
resource_pool_id: int
product_id: int
license_type_id: int
class PoolResourceCreate(PoolResourceBase):
pass
class PoolResourceUpdate(PoolResourceBase):
pass
class PoolResource(PoolResourceBase):
id: int
class Config:
from_attributes = True
# PoolReceipt schemas
class PoolReceiptBase(TimestampMixin):
pool_resource_id: int
quantity: int
receipt_date: datetime
description: Optional[str] = None
class PoolReceiptCreate(PoolReceiptBase):
pass
class PoolReceiptUpdate(PoolReceiptBase):
pass
class PoolReceipt(PoolReceiptBase):
id: int
class Config:
from_attributes = True
# PoolAllocation schemas
class PoolAllocationBase(TimestampMixin):
pool_resource_id: int
quantity: int
allocation_date: datetime
description: Optional[str] = None
class PoolAllocationCreate(PoolAllocationBase):
pass
class PoolAllocationUpdate(PoolAllocationBase):
pass
class PoolAllocation(PoolAllocationBase):
id: int
class Config:
from_attributes = True
# License schemas
class LicenseBase(TimestampMixin):
system_id: int
key_id: Optional[int] = None
product_id: int
license_type_id: int
class LicenseCreate(LicenseBase):
pass
class LicenseUpdate(LicenseBase):
pass
class License(LicenseBase):
id: int
class Config:
from_attributes = True
# Contract schemas
class ContractBase(TimestampMixin):
project_id: int