batch and batch_assignment models