sql server - adding one time options to items -


i'm building event registration site. given event, we'll have handful of items choose from. have table these items. each event might have special options users. example, 1 of events new users buy item not available other users. may not apply events. other events might have other restriction on items. checking programmatically on application side. though, set column containing flag in items table. don't find feasible because condition may apply 1 particular event. don't want future items have column. approach take in such situation? should create special "restrictions" table , join? how handle on application side?

yes, going need additional table list of items have special rules. sounds 'special options' idea still evolving, it's know whether think of containing 'restrictions' or 'bonuses'

and of course you'll need table maps items particular groups of users.

general advice in sort of situation: should simple until spec gets @ least semi-frozen. i've gone through myself: marketing guys had kinds of ideas special deals , discounts. if had taken time build perfect engine, have gotten tossed month later when changed direction.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -