もしあなたのサイトに Data Explorer プラグイン がインストールされている場合、エントリにカーソルを合わせると使用されている数値コードの詳細を確認できます。
例えば、posts の post_type フィールドにカーソルを合わせると、以下の値が表示されます。
- regular: 1
- moderator action: 2
- small action: 3
- whisper: 4
Data Explorer 以外では、この情報が記載されているのは Discourse のソースコードのみです。例えば、user_actions テーブルの各 action_type の意味を確認するには、Rails コンソールで UserAction.types と入力してください。すると、以下の値が返されます。
{:like=>1, :was_liked=>2, :bookmark=>3, :new_topic=>4, :reply=>5, :response=>6, :mention=>7, :quote=>9, :edit=>11, :new_private_message=>12, :got_private_message=>13, :solved=>15, :assigned=>16}
