define tables in model