This commit is contained in:
lzh
2025-06-16 16:46:46 +08:00
parent bc9e33ab4d
commit dfd813bfdd
25 changed files with 3542 additions and 80 deletions

View File

@@ -4,7 +4,7 @@ import "github.com/lzh-1625/go_process_manager/internal/app/constants"
type Process struct {
Uuid int `gorm:"primaryKey;autoIncrement;column:uuid" json:"uuid"`
Name string `gorm:"column:name" json:"name"`
Name string `gorm:"column:name;uniqueIndex;type:text" json:"name"`
Cmd string `gorm:"column:args" json:"cmd"`
Cwd string `gorm:"column:cwd" json:"cwd"`
AutoRestart bool `gorm:"column:auto_restart" json:"autoRestart"`