Pular para conteúdo

Sales pipeline model

SalesPipelineSourceModel

Bases: DBBaseModel

Represents sales pipeline data stored in the database.

Attributes:

Name Type Description
__tablename__ str

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

opportunity_id str

The unique identifier for the sales opportunity.

sales_agent str

The sales agent handling the opportunity.

product str

The product associated with the opportunity.

account str

The account linked to the opportunity.

deal_stage str

The current stage of the sales deal.

engage_date str

The date the opportunity was first engaged.

close_date str

The date the opportunity was closed.

close_value str

The closing value of the deal.

Source code in api/models/sales_pipeline_model.py
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class SalesPipelineSourceModel(settings.DBBaseModel):
    """
    Represents sales pipeline data stored in the database.

    Attributes:
        __tablename__ (str): 
            The name of the database table ("sales_pipeline_source").
        opportunity_id (str): 
            The unique identifier for the sales opportunity.
        sales_agent (str): 
            The sales agent handling the opportunity.
        product (str): 
            The product associated with the opportunity.
        account (str, optional): 
            The account linked to the opportunity.
        deal_stage (str): 
            The current stage of the sales deal.
        engage_date (str, optional): 
            The date the opportunity was first engaged.
        close_date (str, optional): 
            The date the opportunity was closed.
        close_value (str, optional): 
            The closing value of the deal.
    """
    __tablename__ = 'sales_pipeline_source'

    opportunity_id = Column(String, nullable=False, primary_key=True)
    sales_agent = Column(String, nullable=False)
    product = Column(String, nullable=False)
    account = Column(String, nullable=True)
    deal_stage = Column(String, nullable=False)
    engage_date = Column(String, nullable=True)
    close_date = Column(String, nullable=True)
    close_value = Column(String, nullable=True)