Here we shared Enterprise management system Database Schema Diagram. This image represents a relational database schema for a system (likely an order management or business application) under the database leenaenterprises. It consists of six tables: orders, products, contact, employees, pages, and admin. This database is designed to streamline and centralize key business functions such as order management, product tracking, customer communication, staff administration, and content/page management.


Here’s an explanation of each table and their relationships:

๐Ÿ”ท orders Table

  • Use: Tracks every customer order including the products ordered, quantity, pricing, delivery, and order status.
  • Value: Helps manage logistics, track sales, monitor delivery timelines, and analyze order trends.
  • Example: A manager can query which orders are pending or delivered, and calculate total revenue from orders.

Purpose: Stores customer orders.

Columns:

  • orderid: Primary key.
  • productid: Foreign key referencing products.productid.
  • enquiryid: Foreign key referencing contact.enquiryid.
  • orderdate, deliverydate: Dates related to the order.
  • protype, qtytype: Type of product and quantity type.
  • quantity: Number of items ordered.
  • cost, totalcost: Unit cost and total cost of the order.
  • orderstatus: Status of the order (e.g., pending, completed).

Relationships:

  • โœ… Linked to products table via productid.
  • โœ… Linked to contact table via enquiryid.

๐Ÿ”ท products Table

  • Purpose: Stores details about products offered.
  • Use: Maintains the list of products the enterprise sells, including type and cost.
  • Value: Acts as a master table for product reference in orders, enabling consistent pricing and product info.
  • Example: Useful for generating price lists or for checking stock availability if integrated with inventory.

Columns:

  • productid: Primary key.
  • productname, productinfo, producttype: Basic details.
  • cost: Unit cost of the product.

๐Ÿ”ท contact Table

  • Purpose: Stores customer contact/enquiry information.
  • Use: Stores enquiry details from potential or existing customers.
  • Value: Enables tracking of customer queries and follow-ups. It helps build customer history and support.
  • Example: Employees can see all enquiries and convert them into orders through the orders table.

Columns:

  • enquiryid: Primary key.
  • name, staddress, city, pincode, mobile, email, message: Customer contact details.

๐Ÿ”ท employees Table

  • Purpose: Stores employee login and identity details.
  • Use: Stores login credentials and identity of employees using the system.
  • Value: Enables secure access control and tracks employee activity like login sessions.
  • Example: Admin can monitor which employee accessed the system and when.

Columns:

  • empid: Primary key.
  • empname, emploginid, password: Login credentials.
  • lastlogin: Last login timestamp.

๐Ÿ”ท pages Table

  • Purpose: Likely for content management on a website.
  • Use: Manages dynamic web content such as page titles, images, and descriptions.
  • Value: Useful for enterprises maintaining a website, allowing non-technical users to manage pages.
  • Example: Pages like โ€œAbout Us,โ€ โ€œServices,โ€ or โ€œContactโ€ can be managed from this table.

Columns:

  • pageid: Primary key.
  • pagename, pagetitle: Display info.
  • imagepath: Image associated with the page.
  • description: Page content or summary.

๐Ÿ”ท admin Table

  • Purpose: Admin login and management info.
  • Use: Manages administrator access with login and password, similar to employees but with higher privileges.
  • Value: Secures high-level access to the system and manages overall database control.
  • Example: Admins can add/edit products, view all orders, manage employees, and content pages.

Columns:

  • admin_id: Primary key.
  • admin_name, login_id, password: Admin credentials.
  • last_login: Admin last login timestamp.

๐Ÿ” Relationships Summary:

  • orders.productid โ†’ products.productid (many-to-one)
  • orders.enquiryid โ†’ contact.enquiryid (many-to-one)

The other tables (employees, pages, admin) are standalone and do not have explicit foreign key relationships in this schema.


Download Enterprise management system Database Schema Diagram

Download Enterprise management system Database Schema Diagram

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.