Creating entities for booking and resource in code.