mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
18 lines
517 B
Go
18 lines
517 B
Go
package project
|
|
|
|
import (
|
|
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/simulation"
|
|
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/user"
|
|
"git.rwth-aachen.de/acs/public/villas/villasweb-backend-go/visualization"
|
|
"github.com/jinzhu/gorm"
|
|
)
|
|
|
|
type Project struct {
|
|
gorm.Model
|
|
Name string `gorm:"not null"`
|
|
ProjectUser User `gorm:"not null"`
|
|
Visualizations []Visualization
|
|
ProjectSimulation Simulation `gorm:"not null"`
|
|
}
|
|
|
|
// TODO: execute before project.delete()
|