# SalesPro SRMS Entity Relationship Diagram

Entities:

- Customer
  - customerNumber (PK)
  - firstName
  - lastName
  - telephone
  - address

- Product
  - productCode (PK)
  - productName
  - quantitySold
  - unitPrice

- Sale
  - invoiceNumber (PK)
  - salesDate
  - paymentMethod
  - totalAmountPaid
  - customerNumber (FK -> Customer)
  - productCode (FK -> Product)
  - quantitySold

Relationships:

- Customer 1 --- N Sale
- Product 1 --- N Sale

Diagram (text version):

Customer(customerNumber PK) 1..* <--- Sale(invoiceNumber PK, customerNumber FK, productCode FK) ---> 1..* Product(productCode PK)

Each Sale is linked to one Customer and one Product. A Customer can have many Sales. A Product can appear in many Sales.
