#foreach ($index in $table.Indices) create #if($index.IsUnique)unique#end INDEX $index.IndexName on $table.Name ($index.IndexColumnList); #end