formating cosmetics

This commit is contained in:
Sonja Happ 2019-04-04 08:42:37 +02:00
parent b5e070b2b1
commit 25ea047bd7

View file

@ -20,12 +20,12 @@ type Simulator struct {
type File struct { type File struct {
gorm.Model gorm.Model
Name string Name string `gorm:"not null"`
Path string `gorm:"not null"` Path string `gorm:"not null"`
Type string Type string `gorm:"not null"`
Size uint Size uint `gorm:"not null"`
ImageHeight uint ImageHeight uint //only required in case file is an image
ImageWidth uint ImageWidth uint //only required in case file is an image
FileUser User `gorm:"not null"` FileUser User `gorm:"not null"`
Date time.Time `gorm:"default:Time.Now"` Date time.Time `gorm:"default:Time.Now"`
} }
@ -50,14 +50,14 @@ type Simulation struct {
type SimulationModel struct { type SimulationModel struct {
gorm.Model gorm.Model
Name string Name string `gorm:"not null"`
OutputLength int `gorm:"default:1"` OutputLength int `gorm:"default:1"`
InputLength int `gorm:"default:1"` InputLength int `gorm:"default:1"`
OutputMapping []Signal //order of signals is important OutputMapping []Signal //order of signals is important
InputMapping []Signal //order of signals is important InputMapping []Signal //order of signals is important
StartParameters postgres.Jsonb // TODO: default value? StartParameters postgres.Jsonb // TODO: default value?
ModelSimulation Simulation `gorm:"not null"` BelongsToSimulation Simulation `gorm:"not null"`
ModelSimulator Simulator `gorm:"not null"` BelongsToSimulator Simulator `gorm:"not null"`
} }
type User struct { type User struct {
@ -84,7 +84,7 @@ type Signal struct {
gorm.Model gorm.Model
Name string `gorm:"not null"` Name string `gorm:"not null"`
Unit string `gorm:"not null"` Unit string `gorm:"not null"`
//IsRecorded bool `gorm:"default:false"` //IsRecorded bool `gorm:"default:false"`
} }
type Widget struct { type Widget struct {