Commit graph

17 commits

Author SHA1 Message Date
Sonja Happ
8d3f7c4fa0 remove Files from User, add relation to to Widget 2019-05-17 15:32:58 +02:00
Sonja Happ
6894dd961f fix api documentation for new CIM file endpoints 2019-05-15 16:10:00 +02:00
Sonja Happ
64af5a6434 add missing IDs for has many relations 2019-05-15 13:39:06 +02:00
Sonja Happ
ababe1e315 remove file belongs to user relationship 2019-05-15 13:33:43 +02:00
Sonja Happ
3c6e76ce7c add slices of Files to associations of SimulationModel 2019-05-15 13:04:12 +02:00
smavros
e000a518e3 Breaks down the associations of dummyDB to groups:
The three different groups are :
    - HasMany and BelongsTo
    - HasMany
    - BelongsTo
    For the first category only the BelongsTo associations are created
    and the HasMany are going to automatically retrieved since we have
    the same foreign key as the BelongsTo
2019-04-28 16:50:39 +02:00
smavros
518af7ca65 Changes in Models for debugging purposes:
- Replaces gorm.Model with ID uint for primary_key
    - Deactivates association_autoupdate for every association
2019-04-22 11:45:17 +02:00
smavros
629e0218d9 Sets associations autoupdate to pass the tests
This is not a formal solution. The associations_autoupdate tag was
    set manually to just pass the test.
2019-04-22 11:04:43 +02:00
smavros
9df906bc15 Associations autoupdate OFF. Formated model structs. 2019-04-14 20:50:26 +02:00
smavros
3682ae265a Renamed visualization struct field:
- VisualizationUser to User and the corresponding foreign key
2019-04-14 20:32:19 +02:00
smavros
ae0f729a55 Formating using Gofmt with local tab=4*stops 2019-04-05 00:22:08 +02:00
smavros
608e772c9b Simplified associations for models related with has many and belongs to 2019-04-04 19:31:36 +02:00
smavros
e58c2b2dae Added all the associations in models 2019-04-04 19:22:55 +02:00
Sonja Happ
515c64782c formating cosmetics - next try 2019-04-04 08:49:07 +02:00
Sonja Happ
25ea047bd7 formating cosmetics 2019-04-04 08:42:37 +02:00
Sonja Happ
b5e070b2b1 fixed syntax of Widget struct 2019-04-04 08:33:02 +02:00
Sonja Happ
91f52a409b move all data structs to one file to avoid circular dependencies; use all data structs in start.go for testing compilation; dependency updates 2019-04-03 14:54:55 +02:00