Where can I view the use of PluginStoreRow?

I do not want to touch the main tables in the Discourse database.

Interestingly, there are examples of using PluginStorRov that would add the necessary information. In my case, I want to add information to the topics. This is equivalent if you add a column to the topic table.

1 Like

In general we would use topic custom fields for that particular case as it fits nicer into the system.

1 Like

You mean something like that?

   Topic.register_custom_field_type('topic_info', :text)
   add_to_serializer(:topic_view, :custom_fields, false) {object.topic.custom_fields}

similar I would look at the source code for discourse-assign for a working example.