mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
formating cosmetics
This commit is contained in:
parent
b5e070b2b1
commit
25ea047bd7
1 changed files with 15 additions and 15 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue