mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00

- Added 'not null' tags - Followed associations according to Mongoose schemas from the current backend
18 lines
483 B
Go
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"`
|
|
}
|