VILLASweb-backend-go/simulation/model.go
smavros a50626fd2f Improvement of models:
- Added 'not null' tags
- Followed associations according to Mongoose schemas from the current
backend
2019-03-31 13:48:26 +02:00

17 lines
448 B
Go

package simulation
import (
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/visualization"
"github.com/jinzhu/gorm"
// XXX: What about other models??
)
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
}