VILLASweb-backend-go/simulation/model.go
2019-03-31 13:56:33 +02:00

18 lines
550 B
Go

package simulation
import (
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/project"
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/simulationModel"
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/user"
"github.com/jinzhu/gorm"
)
type Simulation struct {
gorm.Model
Name string `gorm:"not null"`
Running bool `gorm:"default:false"`
Models []SimulationModel
Projects []Project
SimulationUser User `gorm:"not null"`
StartParameters []string // TODO: Mixed Type
}