記事管理モジュールとタグモジュールがありますタグは行アイテムごとに1つのタグです
私がやりたいのは、すべてのタグのリストを(チェックボックスとして)記事モジュールに埋め込むことです
埋め込みフォームでこれを行うことはできますか?
編集:
これは私のスキーマです:
article:
id: ~
title: { type: VARCHAR, size: '255', required: true }
tags: { type: VARCHAR, size: '500' }
created_at: { type: TIMESTAMP, required: true }
updated_at: { type: TIMESTAMP, required: true }
tag:
id: ~
tag: { type: VARCHAR, size: '500', required: true }
ord_id: { type: INTEGER, required: true }
created_at: ~
updated_at: ~
item_tag:
id: ~
item_id: { type: INTEGER, required: true, foreignTable: item, foreignReference: id, onDelete: cascade }
tag_id: { type: INTEGER, required: true, foreignTable: tag, foreignReference: id, onDelete: restrict }
created_at: ~
item:
id: ~
article_id: { type: INTEGER, foreignTable: article, foreignReference: id, onDelete: cascade }
したがって、タグを表示する必要があり、上記のテーブルを更新する場合