I have three table below:
type struct Product {
Id int
Name string
}
type struct Order {
Id int
Name string
Status int //0-not use 1 - use
UserId int 'foreginKey:UserId'
ProductId int 'foreignKey:ProductId, reference:Id'
}
type struct User {
Id int
Name int
}
Can I you preload from to load all product of 1 user - mean status is 1 using preload (because no foregin key from device to user)?