Skip to main content

CRM

 

class Enquiry(db.Model):
    id = db.Column(db.Integer, primary_key=True)
    enquiry_no = db.Column(db.String(20))
    client = db.Column(db.String(100))
    end_user = db.Column(db.String(100))
    project_name = db.Column(db.String(200))
    # ... other columns ...

    def __init__(self, enquiry_no, client, end_user, project_name, ...):
        self.enquiry_no = enquiry_no
        self.client = client
        self.end_user = end_user
        self.project_name = project_name
        # ... initialize other columns ...

 

 

Sno    
Enquiry No ENQ/TMAE/10000/2024 Red color to increment
Client    
End User    
Project Name    
Project Stage BID to BID,BID to BUY,QUOTE DD
Supply of    
Region UAE,Iraq,Saudi,Oman,Bahrin DD
Sector Name O&G,Infrastructure,Power,Others,Steel,Utility,Water,Water & Electricity.Water Wsste water  
Business Unit    
Status Dropped,Quoted,  
Closing Date for Quote    
Quote Number    
Enquiry Received date    
Quotation Submitted Date    
Rework on a quote already submitted    
Revision Number    
Engineer Quoting    
Approving Manager    
Account Manager(if any)    
Estimated Value in USD    
Estimated Value in AED    
Estimated value for revision 0    
Estimated value for revision 1    
Estimated value for revision 2    
Estimated value for revision 3    
Estimated value for revision 4    
Status of Quote /Reason for Revision    
% of Winning Probablity    

 

Tables:

  1. Customers

    • customer_id (INT PRIMARY KEY): Unique identifier for the customer
    • company_name (VARCHAR(255)): Name of the customer company
    • contact_name (VARCHAR(255)): Name of the contact person at the customer company
    • email (VARCHAR(255)): Email address of the contact person
    • phone_number (VARCHAR(20)): Phone number of the contact person
    • address (TEXT): Billing and/or shipping address of the customer
  2. Contacts (Optional - Can be linked to Customers table for multiple contacts)

    • contact_id (INT PRIMARY KEY): Unique identifier for the contact
    • customer_id (INT FOREIGN KEY REFERENCES Customers(customer_id)): Foreign key referencing the customer
    • first_name (VARCHAR(255)): First name of the contact person
    • last_name (VARCHAR(255)): Last name of the contact person
    • email (VARCHAR(255)): Email address of the contact person
    • phone_number (VARCHAR(20)): Phone number of the contact person
    • title (VARCHAR(255)): Title/designation of the contact person
  3. Products/Services

    • product_id (INT PRIMARY KEY): Unique identifier for the product or service
    • name (VARCHAR(255)): Name of the product or service
    • description (TEXT): Description of the product or service
    • unit_price (DECIMAL(10,2)): Price per unit of the product or service
    • category (VARCHAR(255)): Category of the product or service (e.g., Software, Hardware, Consulting)
  4. Quotes

    • quote_id (INT PRIMARY KEY): Unique identifier for the quote
    • customer_id (INT FOREIGN KEY REFERENCES Customers(customer_id)): Foreign key referencing the customer
    • created_date (DATETIME): Date and time the quote was created
    • expiry_date (DATETIME): Date and time the quote expires
    • total_price (DECIMAL(10,2)): Total price of the quote (sum of all line items)
    • status (VARCHAR(255)): Status of the quote (e.g., Draft, Sent, Accepted, Rejected)
  5. Quote_Items

    • quote_item_id (INT PRIMARY KEY): Unique identifier for the quote item
    • quote_id (INT FOREIGN KEY REFERENCES Quotes(quote_id)): Foreign key referencing the quote
    • product_id (INT FOREIGN KEY REFERENCES Products/Services(product_id)): Foreign key referencing the product or service
    • quantity (INT): Quantity of the product or service included in the quote
    • unit_price (DECIMAL(10,2)): Price per unit for the item in this specific quote (can be different from product price)
    • total_price (DECIMAL(10,2)): Total price for this item (quantity * unit_price)
  6. Bids (Optional - Can be an extension of Quotes table with additional fields)

    • bid_id (INT PRIMARY KEY): Unique identifier for the bid (can inherit from Quotes table if Bids are a specific type of Quote)
    • quote_id (INT FOREIGN KEY REFERENCES Quotes(quote_id)): Foreign key referencing the original quote (can be null if Bids are a separate entity)
    • competitor (VARCHAR(255)): Name of the competitor (if any)
    • bid_price (DECIMAL(10,2)): Total price offered in the bid
    • win_status (BOOLEAN): Flag indicating if the bid was won (optional)

Relationships:

  • A Customer can have many Quotes. (One-to-Many)
  • A Quote belongs to one Customer. (Many-to-One)
  • A Quote can have many Quote Items. (One-to-Many)
  • A Quote Item belongs to one Quote. (Many-to-One)
  • A Product/Service can be included in many Quotes. (Many-to-Many) (Implemented through Quote Items table)
  • A Contact can be linked to a Customer (Optional - One-to-Many)
  • A Quote can be converted to a Bid (Optional - One-to-One)

Comments

Popular posts from this blog

AI Agents for Enterprise Leaders -Next Era of Organizational Transformation

  AI Agents for Enterprise Leaders: Charting a Course into the Next Era of Organizational Transformation Introduction AI agents and multiagent AI systems represent more than just technological advancements. They signify a fundamental shift in how organizations can automate processes, improve human-machine collaboration, generate insights, and respond dynamically to complex challenges. These systems offer the potential to unlock significant value across a wide range of functions—from enhancing customer interactions and optimizing supply chains to driving innovation in product development and service delivery. Realizing the Benefits To realize these benefits, organizations must engage in deliberate planning, make strategic investments, and foster a culture of continuous improvement and technological advancement. By aligning AI agent initiatives with core business goals, investing in the right infrastructure, and nurturing a culture of innovation, enterprises can position themselves t...

Airport twin basic requirements

  1. 3D Model of  New Terminal Arrivals Area: Develop a high-fidelity 3D model of the New Terminal Arrivals Area using provided LiDAR/CAD data and images. Include key elements like baggage carousels, immigration counters, customs checkpoints, and waiting areas. 2. Real-time Passenger Flow Monitoring: Integrate with Xovis and CCTV systems to track passenger movement in real-time. Visualize passenger flow on the 3D model, highlighting congestion areas and potential bottlenecks. Display real-time passenger count and density information on dashboards. 3. Baggage Handling Visualization: Integrate with the baggage handling system to track baggage movement in real-time. Visualize baggage flow on the 3D model, showing baggage movement from aircraft to carousels. Display real-time baggage status and potential delays on dashboards. 4. Security Monitoring: Integrate with CCTV feeds to monitor the Arrivals Area for suspicious activities. Implement AI-powered video analytics f...

The AI Revolution: Are You Ready? my speech text in multiple languages -Hindi,Arabic,Malayalam,English

  The AI Revolution: Are You Ready?  https://www.linkedin.com/company/105947510 CertifAI Labs My Speech text on Future of Tomorrow in English, Arabic ,Hindi and Malayalam , All translations done by Gemini LLM "Imagine a world with self-writing software, robots working alongside us, and doctors with instant access to all the world's medical information. This isn't science fiction, friends; this is the world AI is building right now. The future isn't a distant dream, but a wave crashing upon our shores, rapidly transforming the job landscape. The question isn't if this change will happen, but how we will adapt to it." "Think about how we create. For generations, software development was a complex art mastered by a select few. But what if anyone with an idea and a voice could bring that idea to life? What if a child could build a virtual solar system in minutes, simply by asking? We're moving towards a world where computers speak our language, paving the...