0% found this document useful (0 votes)
47 views

Class PDF

The class diagram models an e-commerce application with entities for users, products, categories, shops, orders and other related entities. Key entities include: 1. Users who can have profiles, reset passwords and be associated with shops. 2. Products that belong to categories and can have attributes. 3. Shops owned by users where products can be sold. 4. Orders/invoices that capture sales of products to users. The diagram shows the relationships between these core entities and additional supporting entities like brands and user sessions.

Uploaded by

Rebhi adnen
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Class PDF

The class diagram models an e-commerce application with entities for users, products, categories, shops, orders and other related entities. Key entities include: 1. Users who can have profiles, reset passwords and be associated with shops. 2. Products that belong to categories and can have attributes. 3. Shops owned by users where products can be sold. 4. Orders/invoices that capture sales of products to users. The diagram shows the relationships between these core entities and additional supporting entities like brands and user sessions.

Uploaded by

Rebhi adnen
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Class Diagram2

<<ORM Persistable>> <<ORM Persistable>> <<ORM Persistable>>


Stocks Products Categories
<<ORM Persistable>> -id : int -id : int -id : int
1 sessions Sessions -shop_id : int -user_id : int -category_name : String
<<ORM Persistable>> users 1 -product_id : int 0..* products -product_name : String -user_id : int
-id : String 0..*
Users -unite_price : BigDecimal stocks 0..* -product_model : String 0..* categories -created_at : Timestamp
-payload : String
-total_product : int stocks -description : String products 0..* -updated_at : Timestamp
-id : int -last_activity : int
-first_name : String -user_id : int -brand_id : String -shopsid : int
-last_name : String -created_at : Timestamp -category_id : String
categories 0..*
-user_name : String -updated_at : Timestamp -unite_price : BigDecimal <<ORM Persistable>>
-email : String -created_at : Timestamp 1 product_attributes Product_attributes
-password : String <<ORM Persistable>> -updated_at : Timestamp products 1 -id : int
-country_id : int Password_resets -product_id : int
1 password_resets products 1
-mobile : String -email : String 0..* shops -attribute_name : String
users 1
-address : String -token : String <<ORM Persistable>> -attribute_value : String
-website : String -created_at : Timestamp Shops -c_order : int
-phone : String -id : int
-photo : String -user_id : int
-user_type : String <<ORM Persistable>> -name : String <<ORM Persistable>> 0..* brands
-active_status : String Shop_user 0..* shops -slug : String Invoice_items <<ORM Persistable>>
0..* products_invoices
-is_email_verified : String shop_user 1 -email : String Brands
-id : int <<ORM Persistable>> -id : int
-activation_code : String 1 shop_user -user_id : int -description : String Products_invoices -id : int
invoice_items -invoice_id : int
0..*
-is_online : String users 0..* -shop_id : int -address : String -brand_name : String
1 -product_id : int
products_invoices
-shop_id : int -user_type : String -bank_details : String products_invoices 0..* -qty : int -user_id : String
-referral_id : String <<ORM Persistable>> -created_at : Timestamp -logo : String -unit_price : BigDecimal -created_at : Timestamp
-referred_by : int Migrations -updated_at : Timestamp -status : String -unit_price_total : BigDecimal -updated_at : Timestamp
1 migrations
-last_login : Timestamp -migration : String -plan : String -created_at : Timestamp
-remember_token : String users 1 1
-batch : int -commission_type : String -updated_at : Timestamp
1 invoices
-created_at : Timestamp -commission_amount : String invoice_items
-updated_at : Timestamp <<ORM Persistable>> 0..* repair_invoice_items
1 -payment_method : String
-shop_userid : int Invoices <<ORM Persistable>> <<ORM Persistable>>
users -trial_ends_at : Timestamp
-subscription_ends_at : Timestamp -id : int Repair_invoices Repair_invoice_items
users 1 0..* messages <<ORM Persistable>> -shop_id : int
-created_at : Timestamp -id : int -id : int
<<ORM Persistable>> Options 1 shops -user_id : int
-updated_at : Timestamp -shop_id : int -invoice_id : int
0..* activities Messages -id : int options 1 -invoice_id : String -user_id : int -product_id : int
<<ORM Persistable>> -id : int -option_key : String -total_price : BigDecimal 1 repair_invoices -invoice_id : String -qty : int
Activities -user_id : int -option_value : String -customer_name : String invoices 0..* -total_price : BigDecimal -unit_price : BigDecimal
-id : int -sender_id : int -customer_email : String -customer_name : String -unit_price_total : BigDecimal
-user_id : int -subject : String -customer_phone : String -customer_email : String -status : String
-activity : String -message : String -customer_address : String -customer_phone : String -engineer_note : String
-is_read : String -is_read : String -created_at : Timestamp -customer_address : String -created_at : Timestamp
-created_at : Timestamp -message_for : String -updated_at : Timestamp -status : String -updated_at : Timestamp
-updated_at : Timestamp -from : String -special_note : String
-parent_id : int -delivery_date : Timestamp
-created_at : Timestamp -created_at : Timestamp
-updated_at : Timestamp -updated_at : Timestamp

You might also like