Flatten assignments + use a collection for table/table/assignments