Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Vmp {
- decimal VmpId; // Primary key
- }
- class RouteForVmp {
- Vmp Vmp;
- decimal RouteId;
- }
- class Amp {
- decimal AmpId; // Primary key
- Vmp Vmp;
- }
- class AvailableProduct {
- int Id; // Primary key
- Amp Amp;
- RouteForVmp Route;
- }
- table t_vmp(vmpId)
- table t_route_for_vmp(vmpId, routeId)
- table t_amp(ampId, vmpId)
- table t_available_product(id, ampId, routeId)
- Vmp has-many Amp
- Vmp has-many RouteForVmp
- AvailableProduct has-one Amp, has-one Vmp, has-one RouteForVmp
- AvailableProduct.Amp.Vmp === AvailableProduct.RouteForVmp.Vmp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement