【问题标题】:How can I make class diagram from the database diagram?如何从数据库图制作类图?
【发布时间】:2015-08-16 15:17:34
【问题描述】:

![我的网购商城数据库图][1]

brands
Column
brand_id    
brand_title

table cart
Column
cart_id 
p_id    
ip_add  
customer_id 
qty 

categories
Column  
cat_id
cat_title

customers
Column
customer_id
customer_name
customer_email  
customer_pass
customer_country
customer_city
customer_contact
customer_address
customer_image
customer_ip 

customer_orders
Column  
order_id    
customer_id 
due_amount  
invoice_no  
total_products  
order_date
order_status

payments
Column  
payment_id
invoice_no
amount
payment_mode
ref_no  
code
payment_date    

pending_orders
Column  T
order_id    
customer_id 
invoice_no
product_id  
qty 
order_status

products
Column  
product_id  
cat_id  
brand_id        
date
product_title
product_img1    
product_img2    
product_img3    
product_price   
product_desc    
product_keywords    
status  

admins
Column  
admin_id    
admin_email
admin_pass

我有我的数据库的所有表。我想做一个类图。如果您需要,图像中所有表格的连接性(我无法附加它)。管理员未连接。因为此表未用作任何其他表中的外键。和付款表未连接。因为这里仅添加付款以显示已完成的付款。 我真的非常非常担心。我需要类图。这让我很头疼。我是一个会写代码,但不会做图表的人。我需要类图中的帮助。

【问题讨论】:

  • 您的 ER 模型要炸薯条吗?

标签: mysql class class-diagram database-diagram


【解决方案1】:

您可以使用 MySQL 工作台的逆向工程功能轻松制作 ER 图。 您只需要遵循几个简单的步骤:

Ctrl+R 然后下一步直到完成。

附上一张图片供您参考。

【讨论】:

    猜你喜欢
    • 2020-10-10
    • 2022-01-09
    • 1970-01-01
    • 2011-08-27
    • 2012-09-02
    • 1970-01-01
    • 2015-01-10
    • 2018-05-29
    • 2020-11-10
    相关资源
    最近更新 更多