Files
wangxiaolei 10d95d32ad fix: fix update plugin query plugin not use source (#763)
* chore: log more detail about failed to get session info from cache

* fix: fix update plugin query plugin not use source
2026-07-02 11:32:33 +08:00
..
2025-01-06 14:52:02 +08:00

package models

// PluginReadmeRecord represents the readme content of a plugin in a specific language.
//
// NOTE: originally, this was named PluginReadme, but `tenant_id` column was added, which is a technical issue
// as readme is not a tenant-specific resource.
// however, it's hard to only delete a column in production environments
// without affecting existing data, so, a new model PluginReadmeRecord is introduced to replace PluginReadme without
// tenant specificity.
type PluginReadmeRecord struct {
	Model
	PluginUniqueIdentifier string `json:"plugin_unique_identifier" gorm:"column:plugin_unique_identifier;size:255;index;not null"`
	Language               string `json:"language" gorm:"column:language;size:10;not null"`
	Content                string `json:"content" gorm:"column:content;type:text;not null"`
}