i'm designing a database and there's 2 parts that i have issues with
everything is working, it's just that it feels wrong, like i repeatedly feel that i'm doing the wrong thing, that no database should be designed in this way
it's weird, i can't explain it
1st thing
there are services that they provide and every service has fields that other services don't have. so every service comes with its own set of fields that other services don't have
2nd thing
billing structure for each service is so different that i couodn't find a way to do it other than to do this
if service=1 bill in this way
service=2 bill in that way
both of these bother me a lot. first of all what if they provide some other service with some more fields tomorrow, then i will have to program them in, there's no flexibility.
what do large companies do? this seems so wrong to me that i'm almost sure i'm not getting something, that there's a solution out there that i can't come up with
here's a billling example
if it's service 1 then it's 5% for the first 90 days and 2,5 for any additional 30 days or $750, whichever is larger
if it's service 2 then it's 5% of the amount of goods or $750, whichever is larger
service 3 is 100 bucks a piece
what would you do? for fields i hide and show a huge number of fields based on service selected
for billing i have a billing structure assigned to each service (i came up with 3 billing structures, % for # days or $, whichever is larger, % for additional cycles of #days, % for # items)
also
but not as bad as hiding and showing 10000 fields with every selection
everything is working, it's just that it feels wrong, like i repeatedly feel that i'm doing the wrong thing, that no database should be designed in this way
it's weird, i can't explain it
1st thing
there are services that they provide and every service has fields that other services don't have. so every service comes with its own set of fields that other services don't have
2nd thing
billing structure for each service is so different that i couodn't find a way to do it other than to do this
if service=1 bill in this way
service=2 bill in that way
both of these bother me a lot. first of all what if they provide some other service with some more fields tomorrow, then i will have to program them in, there's no flexibility.
what do large companies do? this seems so wrong to me that i'm almost sure i'm not getting something, that there's a solution out there that i can't come up with
here's a billling example
if it's service 1 then it's 5% for the first 90 days and 2,5 for any additional 30 days or $750, whichever is larger
if it's service 2 then it's 5% of the amount of goods or $750, whichever is larger
service 3 is 100 bucks a piece
what would you do? for fields i hide and show a huge number of fields based on service selected
for billing i have a billing structure assigned to each service (i came up with 3 billing structures, % for # days or $, whichever is larger, % for additional cycles of #days, % for # items)
also