22 lines
860 B
Go
22 lines
860 B
Go
package model
|
|
|
|
type Plugin struct {
|
|
ID int `gorm:"primaryKey;column:id" json:"id"`
|
|
Code string `gorm:"column:code" json:"code"`
|
|
Name string `gorm:"column:name" json:"name"`
|
|
Description *string `gorm:"column:description" json:"description"`
|
|
Version *string `gorm:"column:version" json:"version"`
|
|
Author *string `gorm:"column:author" json:"author"`
|
|
URL *string `gorm:"column:url" json:"url"`
|
|
Email *string `gorm:"column:email" json:"email"`
|
|
License *string `gorm:"column:license" json:"license"`
|
|
Requires *string `gorm:"column:requires" json:"requires"`
|
|
Config *string `gorm:"column:config" json:"config"`
|
|
Type *string `gorm:"column:type" json:"type"`
|
|
IsEnabled bool `gorm:"column:is_enabled" json:"is_enabled"`
|
|
}
|
|
|
|
func (Plugin) TableName() string {
|
|
return "v2_plugins"
|
|
}
|