2015-06-02 32 views
0

![数据库我的网上购物商店的图] [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 

我有我的这些数据库中的所有表。我想制作一个类图。如果你需要的话,所有图像表格的连通性(我无法附加)。管理员未连接。因为该表不作为外键在任何其他表中使用。并且支付表未连接。因为付款只能在这里添加以显示已完成的付款。 我真的很担心这一点。我需要类图。这让我很头疼。我是能够编码的人,但不能绘制图表。我在课堂图上需要帮助。

+0

你想用你的ER模型炸薯条吗? – C8H10N4O2

回答

1

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

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

附上图片供您参考。 enter image description here

+0

http://stackoverflow.com/questions/2488/auto-generate-database-diagram-mysql –

相关问题