VILLASweb-backend-go/simulationModel/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

18 lines
483 B
Go

package simulationModel
import (
"github.com/jinzhu/gorm"
// XXX: other models
)
type SimulationModel struct {
gorm.Model
Name string
OutputLength int `gorm:"default:1"`
InputLength int `gorm:"default:1"`
OutputMapping []string // TODO: Mixed Type
InputMapping []string // TODO: Mixed Type
StartParameters []string // TODO: Mixed Type
ModelSimulation Simulation `gorm:"not null"`
ModelSimulator Simulator `gorm:"not null"`
}