wiki:RelationalDesign

Version 6 (modified by 221181, 3 weeks ago) ( diff )

--

Релациска шема со мапирачка трансформација

  • Примарни клучеви означени со underline
  • Надворешни клучеви означени со * и табела кон која покажува
  • Not null атрибути означени со bold

Users (userId, username, password, full_name, email, role, is_active)

Customer (customerId, name, email, phone, address)

Product (productId, name, description, sku, unit_price, reorder_level, categoryId*(Category), supplierId*(Supplier))

Category (categoryId, name, description)

Supplier (supplierId, name, contact_person, phone, email, address)

Warehouse (warehouseId, name, location, capacity)

Sale (saleId, date_time, total_amount, userId*(Users), customerId*(Customer), warehouseId*(Warehouse))

SaleItem (saleId*(Sale), productId*(Product), quantity, unit_price_at_sale)

PurchaseOrder (poId, order_date, expected_delivery_date, status, supplierId*(Supplier), warehouseId*(Warehouse))

PurchaseOrderItem (poId*(PurchaseOrder), productId*(Product), quantity, unit_cost)

WarehouseStock (warehouseId*(Warehouse), productId*(Product), quantity_on_hand, last_updated)

DDL скрипта за бришење на табелите и креирање на табелите

schema_creation.sql

DML скрипта за полнење на табелите со податоци

data_load.sql

Релациски дијаграм изваден од DBeaver

No image "800px" attached to RelationalDesign

Attachments (3)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.