I have a scenario where I need to assign some Items to a Guest.
GuestTable has columns like
1. Guest ID
2. GuestType
3. Age
4. Height
5. Gender
ItemTable has columns like
1. ItemID
2. Item Name
Every item is sold to guest based on item's availability as well as attributes of guest i.e. Age Group or Height range etc.
eg. An item is available every Monday and Tuesday from 2-4 PM and 6-8 PM for Male Spa guest as well as Hotel Guest having height greater than 5" and less than 5'5".
Since number of filter conditions are large and configurable by end user. As well as system should be scalable enough to accommodate new filter criteria, How should I manage these rules. Is it OK to store these rules as expression in database tables? How to model the database tables for this scenario?
OR
Should I consider using some rule engine for it?