add cms_template foreign key