Add device and category-flower relation