このドキュメントでは、Confluence スキーマの図とデータモデルの概念の概要を提供しています。
メモ:
- Hibernate マッピング ファイルは Confluence データ モデル用の信頼される参照情報です。これらは
*.hbm.xml ファイルで、主要な Confluence JAR ファイル (<CONFLUENCE-INSTALLATION>\confluence\WEB-INF\lib\confluence-5.1.1.jar) 内にあります。 - テーブル、カラム、およびその他の属性は、Confluence の各メジャー リリースで変更される可能性があります。Confluence サイトの正確な DDL を見つけるには、インストール後にクエリを実行してください。
データベース図
詳細図
以下のSVG 画像(Scalable Vector Graphics)には Confluence データベースのすべてのテーブルが含まれています。以下のリンクをクリックしてブラウザで画像を開くか、あとで使用するために SVG ファイルをダウンロードします。ブラウザのズーム(Ctrl と + または Cmd と +)を使用して、図をより詳細に確認することができます。
概要図
この画像は主要なテーブルを表示します。画像が非常に大きいことに注意してください。(画像を右クリックして)これをダウンロードし、画像ビューアーで表示する必要がある場合があります。別の方法として、前のセクションでリンクされた SVG 画像を使用します。
データベース テーブルと参照
以下のリンクを展開し、各テーブルの主キーと外部キーのテーブルを表示します。
| 主キー テーブル名 | 主キー カラム名 | 外部キー テーブル名 | 外部キー カラム名 | 外部キー名 | 主キー名 |
|---|
| AO_9412A1_AOUSER | ID | AO_9412A1_USER_APP_LINK | USER_ID | fk_ao_9412a1_user_app_link_user_id | AO_9412A1_AOUSER_pkey |
| attachments | attachmentid | attachmentdata | attachmentid | fk9dc3e34d34a4917e | attachments_pkey |
| attachments | attachmentid | attachments | prevver | fk54475f9017d4a070 | attachments_pkey |
| attachments | attachmentid | content_label | attachmentid | fkf0e7436e34a4917e | attachments_pkey |
| attachments | attachmentid | imagedetails | attachmentid | fka768048734a4917e | attachments_pkey |
| content | contentid | attachments | pageid | fk54475f908c38fbea | content_pkey |
| content | contentid | bodycontent | contentid | fka898d4778dd41734 | content_pkey |
| content | contentid | confancestors | ancestorid | fk9494e23c37e35a2e | content_pkey |
| content | contentid | confancestors | descendentid | fk9494e23cc45e94dc | content_pkey |
| content | contentid | content | prevver | fk6382c05917d4a070 | content_pkey |
| content | contentid | content | parentid | fk6382c05974b18345 | content_pkey |
| content | contentid | content | parentcommentid | fk6382c059b97e9230 | content_pkey |
| content | contentid | content | pageid | fk6382c0598c38fbea | content_pkey |
| content | contentid | content_label | contentid | fkf0e7436e8dd41734 | content_pkey |
| content | contentid | content_perm_set | content_id | fkbf45a7992caf22c1 | content_pkey |
| content | contentid | contentproperties | contentid | fk984c5e4c8dd41734 | content_pkey |
| content | contentid | extrnlnks | contentid | fk97c10fe78dd41734 | content_pkey |
| content | contentid | いいね! | contentid | fk4514b9c8dd41734 | content_pkey |
| content | contentid | links | contentid | fk45157998dd41734 | content_pkey |
| content | contentid | 通知 | pageid | fk594acc88c38fbea | content_pkey |
| content | contentid | スペース | homepage | fk9228242d11b7bfee | content_pkey |
| content | contentid | スペース | spacedescid | fk9228242d2c72d3d2 | content_pkey |
| content | contentid | trackbacklinks | contentid | fkf6977a478dd41734 | content_pkey |
| content_perm_set | ID | content_perm | cps_id | fkbd74b31676e33274 | content_perm_set_pkey |
| cwd_app_dir_mapping | ID | cwd_app_dir_group_mapping | app_dir_mapping_id | fk_app_dir_group_mapping | cwd_app_dir_mapping_pkey |
| cwd_app_dir_mapping | ID | cwd_app_dir_operation | app_dir_mapping_id | fk_app_dir_mapping | cwd_app_dir_mapping_pkey |
| cwd_application | ID | cwd_app_dir_group_mapping | application_id | fk_app_dir_group_app | cwd_application_pkey |
| cwd_application | ID | cwd_app_dir_mapping | application_id | fk52050e2fb347aa6a | cwd_application_pkey |
| cwd_application | ID | cwd_application_address | application_id | fk_application_address | cwd_application_pkey |
| cwd_application | ID | cwd_application_attribute | application_id | fk_application_attribute | cwd_application_pkey |
| cwd_directory | ID | cwd_app_dir_group_mapping | directory_id | fk_app_dir_group_dir | cwd_directory_pkey |
| cwd_directory | ID | cwd_app_dir_mapping | directory_id | fk_app_dir_dir | cwd_directory_pkey |
| cwd_directory | ID | cwd_directory_attribute | directory_id | fk_directory_attribute | cwd_directory_pkey |
| cwd_directory | ID | cwd_directory_operation | directory_id | fk_directory_operation | cwd_directory_pkey |
| cwd_directory | ID | cwd_group | directory_id | fk_directory_id | cwd_directory_pkey |
| cwd_directory | ID | cwd_group_attribute | directory_id | fk_group_attr_dir_id | cwd_directory_pkey |
| cwd_directory | ID | cwd_user | directory_id | fk_user_dir_id | cwd_directory_pkey |
| cwd_directory | ID | cwd_user_attribute | directory_id | fk_user_attr_dir_id | cwd_directory_pkey |
| cwd_group | ID | cwd_group_attribute | group_id | fk_group_attr_id_group_id | cwd_group_pkey |
| cwd_group | ID | cwd_membership | parent_id | fk_parent_grp | cwd_group_pkey |
| cwd_group | ID | cwd_membership | child_group_id | fk_child_grp | cwd_group_pkey |
| cwd_user | ID | cwd_membership | child_user_id | fk_child_user | cwd_user_pkey |
| cwd_user | ID | cwd_user_attribute | user_id | fk_user_attribute_id_user_id | cwd_user_pkey |
| cwd_user | ID | cwd_user_credential_record | user_id | fk76f874f73aee0f | cwd_user_pkey |
| external_entities | ID | external_members | extentityid | fkd8c8d8a5f25e5d5f | external_entities_pkey |
| groups | ID | external_members | groupid | fkd8c8d8a5117d5fda | groups_pkey |
| groups | ID | local_members | groupid | fk6b8fb445117d5fda | groups_pkey |
| keystore | keyid | trustedapp | public_key_id | fkddb119ca9c85adb1 | keystore_pkey |
| ラベル | labelid | content_label | labelid | fkf0e7436e27072aef | label_pkey |
| os_group | ID | os_user_group | group_id | fk932472461e2e76db | os_group_pkey |
| os_user | ID | os_user_group | user_id | fk93247246f73aee0f | os_user_pkey |
| ページ テンプレート | templateId | content_label | pagetemplateid | fkf0e7436ed32042e4 | pagetemplates_pkey |
| ページ テンプレート | templateId | ページ テンプレート | prevver | fkbc7ce96a17d4a070 | pagetemplates_pkey |
| spacegroups | spacegroupid | spacegrouppermissions | spacegroupid | fk487d958b16994414 | spacegroups_pkey |
| spacegroups | spacegroupid | スペース | spacegroupid | fk9228242d16994414 | spacegroups_pkey |
| スペース | spaceid | content | spaceid | fk6382c059b2dc6081 | spaces_pkey |
| スペース | spaceid | 通知 | spaceid | fk594acc8b2dc6081 | spaces_pkey |
| スペース | spaceid | ページ テンプレート | spaceid | fkbc7ce96ab2dc6081 | spaces_pkey |
| スペース | spaceid | スペース権限 | spaceid | fkd33f23beb2dc6081 | spaces_pkey |
| trustedapp | trustedappid | trustedapprestriction | trustedappid | fke8496ba235d1d865 | trustedapp_pkey |
| users | ID | local_members | userid | fk6b8fb445ce2b3226 | users_pkey |
以下のセクションでは、認証、コンテンツ、システム情報など、Confluence の各論理エリアに関連する主要なテーブルについて説明しています。
認証
このセクションでは、Confluence に埋め込まれた Atlassian Crowd フレームワーク経由で実装されたユーザー認証に関連するテーブルについて説明しています。
| 表 | 説明 |
|---|
cwd_user | Confluence の各ユーザーの情報。 |
cwd_group | ユーザーが属することができるグループ。 |
cwd_membership | グループへのユーザーのメンバーシップのマッピング。 |
cwd_directory
| Confluence サイト内のユーザー ディレクトリ。ディレクトリの例として、Confluence 内部ディレクトリまたは LDAP ディレクトリがあります。 |
cwd_application | 認証フレームワークに定義されたアプリケーション(JIRA、Confluence など)。 |
コンテンツ
このセクションでは、コンテンツの保存に関係するテーブルについて説明しています。コンテンツとは、Confluence ユーザーが保存、共有している情報です、
| 表 | 説明 |
|---|
attachmentdata | 添付ファイルのバイナリ データ。このテーブルは、Confluence がデータベースに添付ファイルを保存するように設定されている場合のみ、使用されます。そうでない場合、添付ファイルはローカルのファイル システムに保存されます。 |
attachments
| Confluence ページに添付されたファイルのメタデータ。 |
bodycontent | Confluence ページの内容。ここには、バージョン情報やその他のメタデータは格納されません。それらはすべて content テーブルにあります。 |
content | オブジェクトの ContentEntityObject クラス用の永続テーブル。サブクラスは contenttype 列で示されます。 |
content_label | コンテンツの任意のラベル テキスト。 |
label | content_label システムの残り半分。 |
content_perm
| コンテンツレベルの権限オブジェクト。 |
content_perm_set | 追加されたメタデータによるコンテンツ アイテムとそれらの権限の1対多のマッピング。 |
pagetemplates | テンプレート機能のバックエンド。 |
likes | 特定のユーザーによってリンクされたページとその他のコンテンツ。 |
follow_connections | 他のユーザーをフォローしているユーザーのマッピング。 |
クラスタリング
以下のテーブルには、クラスターされた Confluence サイトについての情報が含まれています。
| 表 | 説明 |
|---|
clustersafety
| 通常、このテーブルには 1 行のみ記録されています。safetynumber の値は、Confluence が、クラスタ外部の別の Confluence サイトがデータベースを共有しているかどうかを調べるために使用します。 |
これらのテーブルは Confluence サイトのステータスと設定に関係するデータを格納します。
| 表 | 説明 |
|---|
confversion
| アップグレードを取り決めるために、システムのアップグレードによって、データベースから除外するものを決定するのに使用されます。 |
plugindata | インストールされたプラグインとそれらのインストールされた日時を示すレコード。
data は実際のプラグイン JAR ファイルの BLOB です。これは主にクラスタに関連します。 |
スペース
このテーブルは、スペースの管理に関連します。
| 表 | 説明 |
|---|
spaces
| スペース自身についての情報:キー、人間がわかりやすい名前、数字のID。 |
外観
以下のテーブルには、Confluence サイトのルック アンド フィールについての情報が含まれています。
| 表 | 説明 |
|---|
decorator
| The custom display templates used to customise Velocity layouts. |
その他
このセクションには、コメントするに値するその他のテーブルが含まれています。
| 表 | 説明 |
|---|
os_propertyentry
| エンティティとプロパティの任意の関連付け。 |
bandana | 包括的な永続レイヤー。このテーブルには、ユーザー設定やスペースレベルまたはグローバルレベルの設定データのようなものが含まれており、ダイナミック タスク リスト プラグインなどのプラグインによってストレージとして使用されます。基本的に他のどのテーブルにも当てはまらない任意のデータを格納します。 |
extrnlnks | 紹介リンク。 |
hibernate_unique_key | 高/低 ID ジェネレーター – 主キーを生成するサブシステムによって使用されます このテーブルに干渉すると、Confluence にオブジェクトを作成できない場合があります。 |
indexqueueentries | システム全体のフルコンテンツ インデクシングを管理します。このテーブルには通常、再起動後のクラスタ ノードの再同期を許可するために、更新の最後の約12時間が含まれています。 |
keystore | 信頼されたアプリ フレームワークによって、サーバーの秘密鍵とその他のサーバーの公開鍵を保存するのに使用されます。 |
links | サーバー内(つまりスペース間、スペース内)のリンクを追跡します。 |
notifications | ページレベルおよびスペースレベルのウォッチを保存します。 |
trackbacklinks | トラックバック リンク。 |
confancestors | すべてのページの祖先のクイック ルックアップを許可することで、権限チェックの速度の向上に使用されます。 |