as_dm_class function

Generate a dm class with fact and dimension tables