Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Latest commit

 

History

History
45 lines (30 loc) · 1.68 KB

custom_fields_roles.md

File metadata and controls

45 lines (30 loc) · 1.68 KB

custom_fields_roles

概要

カスタムフィールド⇔ロール

テーブル定義
CREATE TABLE `custom_fields_roles` (
  `custom_field_id` int(11) NOT NULL,
  `role_id` int(11) NOT NULL,
  UNIQUE KEY `custom_fields_roles_ids` (`custom_field_id`,`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci

カラム一覧

名前 タイプ デフォルト値 NULL許可 子テーブル 親テーブル コメント
custom_field_id int(11) false custom_fields
role_id int(11) false roles

制約一覧

名前 タイプ 定義
custom_fields_roles_ids UNIQUE UNIQUE KEY custom_fields_roles_ids (custom_field_id, role_id)

INDEX一覧

名前 定義
custom_fields_roles_ids UNIQUE KEY custom_fields_roles_ids (custom_field_id, role_id) USING BTREE

ER図

er


Generated by tbls