0% found this document useful (0 votes)
11 views3 pages

Database Schema for Product Transactions

The document outlines the tables and relationships in a database for tracking products, animals, customers, transactions, shipments and locations. There are tables for products, animals, manufacturers, customers, transactions, shipments and locations along with relationship tables to connect them.

Uploaded by

Dileesha A
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Database Schema for Product Transactions

The document outlines the tables and relationships in a database for tracking products, animals, customers, transactions, shipments and locations. There are tables for products, animals, manufacturers, customers, transactions, shipments and locations along with relationship tables to connect them.

Uploaded by

Dileesha A
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

TASK 3:

[Product]

- ProductID (PK)

- Name

- Category

- ManufacturerID (FK)

- Weight

- Flavor

- TargetHealthCondition

- Material

- Durability

- Color

- Size

- CareInstructions

[Animal]

- AnimalID (PK)

- Name

[Manufacturer]

- ManufacturerID (PK)

- Name

[Customer]

- CustomerID (PK)

- Name

- Email
[Transaction]

- TransactionID (PK)

- CustomerID (FK)

- Date

[TransactionProduct]

- TransactionID (PK, FK)

- ProductID (PK, FK)

[Location]

- LocationID (PK)

- Name

- ZipCode

[Shipment]

- ShipmentID (PK)

- OriginLocationID (FK)

- DestinationLocationID (FK)

- Date

[ShipmentProduct]

- ShipmentID (PK, FK)

- ProductID (PK, FK)

- Quantity

[ProductAnimal]

- ProductID (PK, FK)

- AnimalID (PK, FK)


Product -|-----|< ProductAnimal >|-----| Animal

| |

|-----| Manufacturer

|-----|< TransactionProduct >|-----| Transaction

|-----| Customer

Location -|-----|< ShipmentProduct >|-----| Shipment

|-----| Product

You might also like