0% found this document useful (0 votes)
25 views2 pages

New Text Document

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

New Text Document

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

@startuml

' Define the classes


class Product {
+productID: String
+name: String
+price: Double
+stockQuantity: Integer
+category: String
}

class Customer {
+customerID: String
+name: String
+email: String
+phoneNumber: String
-viewPurchaseHistory(): void
}

class Employee {
+employeeID: String
+name: String
-username: String
-password: String
+role: String
#salary: Double
-generateBill(): void
#updateInventory(): void
-updateStock(): void
#applyDiscount(): void
}

class Order {
+orderID: String
+orderDate: Date
+totalAmount: Double
+customerID: String
#calculateTotal(): Double
+generateReceipt(): void
}

class Supplier {
+supplierID: String
+name: String
+contactInfo: String
+address: String
-sendOrder(): void
+receivePayment(): void
}

class Admin {
+adminID: String
+name: String
-username: String
-password: String
-manageUsers(): void
-viewReports(): void
}

class Inventory {
+inventoryID: String
+productID: String
#currentStock: Integer
#reorderLevel: Integer
#checkStock(): Boolean
-generateReorder(): void
}

' Define the relationships


Product "1" o-- "1..*" Order : "Aggregation"
Customer "1" -- "0..*" Order : "Association"
Employee "1" -- "0..*" Order : "Association"
Admin "1" o-- "1..*" Employee : "Aggregation"
Supplier "1" o-- "1..*" Product : "Aggregation"
Inventory "1" *-- "1" Product : "Composition"
@enduml

You might also like