Version 29 (modified by 5 weeks ago) ( diff ) | ,
---|
Релациска шема (со мапирачка трансформација)
Ознаки
- Примарните клучеви се означени со bold и underline
- Надворешните клучеви се означени со *
- Задолжителни атрибути, односно not null со bold
Табели
- Address (AddressId, Street, City, PostCode, PhoneNumber, StreetNumber)
- WineType (WineTypeId, WineTypeName, WineTypeDescription, WineTypeRegion)
- Wine (WineId, !WineTypeID*(WineType), WineName, BasePrice, YearProduced)
- CustomerType (CustomerTypeId, CustomerTypeName, CustomerTypeDescription)
- Customer (CustomerId, CustomerTypeId*(CustomerType), AddressId*(Address), CustomerName, CustomerEmail)
- VehicleType (VehicleTypeId, VehicleTypeName)
- Vehicle (VehicleId, VehicleTypeId*(VehicleType), Make, Model, Registration, Capacity)
- ExpenseType (ExpenseTypeId, ExpenseTypeName, ExpenseTypeDescription)
- Employee (EmployeeId, EmployeeName, EmployeeSurname)
- Warehouse (WarehouseId, AddressId*(Address), WarehouseName)
- Shipment (ShipmentId, EmployeeId*(Employee), PaymentId*(Payment), VehicleId*(Vehicle), ShipmentDate)
- Payment (PaymentId, PaymentStatus)
- Load (LoadId, ShipmentId*(Shipment),CustomerId*(Customer), WineId*(Wine), Quantity, BasePrice, AgreedPrice)
DDL скрипта за бришење на табелите и креирање на табелите
DML скрипта за полнење на табелите со податоци
Релациски дијаграм изваден од DBeaver
Attachments (6)
- V1_Init_DB.sql (5.0 KB ) - added by 5 weeks ago.
- ERDiagramDBeaverV2.png (65.7 KB ) - added by 4 weeks ago.
- V1_Polnenje_DB.sql (6.3 KB ) - added by 4 weeks ago.
- ERDiagramDBeaverV3.png (67.4 KB ) - added by 7 days ago.
- V2_Init_DB.sql (5.3 KB ) - added by 7 days ago.
- V2_Polnenje_DB.sql (6.4 KB ) - added by 7 days ago.
Download all attachments as: .zip
Note:
See TracWiki
for help on using the wiki.