Pular para conteúdo

Products model

ProductsSourceModel

Bases: DBBaseModel

Represents product-related data stored in the database.

Attributes:

Name Type Description
__tablename__ str

The name of the database table ("products_source").

id UUID

The unique identifier for the product.

product str

The name of the product.

series str

The series to which the product belongs.

sales_price str

The sales price of the product.

Source code in api/models/products_model.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class ProductsSourceModel(settings.DBBaseModel):
    """
    Represents product-related data stored in the database.

    Attributes:
        __tablename__ (str): 
            The name of the database table ("products_source").
        id (UUID): 
            The unique identifier for the product.
        product (str): 
            The name of the product.
        series (str): 
            The series to which the product belongs.
        sales_price (str): 
            The sales price of the product.
    """
    __tablename__ = 'products_source'

    id = Column(UUID(as_uuid=True), primary_key=True, default=uuid.uuid4)
    product = Column(String, nullable=False)
    series = Column(String, nullable=False)
    sales_price = Column(String, nullable=False)