build schema