Advertisement
Guest User

Untitled

a guest
May 24th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. class Vmp {
  2. decimal VmpId; // Primary key
  3. }
  4. class RouteForVmp {
  5. Vmp Vmp;
  6. decimal RouteId;
  7. }
  8. class Amp {
  9. decimal AmpId; // Primary key
  10. Vmp Vmp;
  11. }
  12. class AvailableProduct {
  13. int Id; // Primary key
  14. Amp Amp;
  15. RouteForVmp Route;
  16. }
  17.  
  18. table t_vmp(vmpId)
  19. table t_route_for_vmp(vmpId, routeId)
  20. table t_amp(ampId, vmpId)
  21. table t_available_product(id, ampId, routeId)
  22.  
  23.  
  24. Vmp has-many Amp
  25. Vmp has-many RouteForVmp
  26. AvailableProduct has-one Amp, has-one Vmp, has-one RouteForVmp
  27. AvailableProduct.Amp.Vmp === AvailableProduct.RouteForVmp.Vmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement