Files
mayfly-go/server/internal/machine/domain/entity/machine_file.go

13 lines
646 B
Go
Raw Normal View History

package entity
import "mayfly-go/pkg/model"
type MachineFile struct {
model.Model
Name string `json:"name" gorm:"not null;size:50;comment:机器文件配置linux一切皆文件故也可以表示目录"` // 机器文件配置linux一切皆文件故也可以表示目录
MachineId uint64 `json:"machineId" gorm:"not null;comment:机器id"` // 机器id
Type string `json:"type" gorm:"not null;size:32;comment:1目录2文件"` // 1目录2文件
Path string `json:"path" gorm:"not null;size:150;comment:路径"` // 路径
}