remove not null constraint on Product.template_id