devlloping the core code of creating multype table with defrentte option