mirror of https://github.com/1Panel-dev/1Panel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
418 B
15 lines
418 B
4 months ago
|
package model
|
||
|
|
||
|
type Command struct {
|
||
|
BaseModel
|
||
|
Name string `gorm:"type:varchar(64);unique;not null" json:"name"`
|
||
|
GroupID uint `gorm:"type:decimal" json:"groupID"`
|
||
|
Command string `gorm:"type:varchar(256);not null" json:"command"`
|
||
|
}
|
||
|
|
||
|
type RedisCommand struct {
|
||
|
BaseModel
|
||
|
Name string `gorm:"type:varchar(64);unique;not null" json:"name"`
|
||
|
Command string `gorm:"type:varchar(256);not null" json:"command"`
|
||
|
}
|