QUESTION #1
Suppose that I have a Todo model struct with a foreign key of Task:
type Todo struct {
uadmin.Model
Task Task
TaskID uint
}
Fill in the blanks that corresponds to the inline based on the given structure above.
uadmin.RegisterInlines(models.___, map[string]string){
"___": "___",
}
QUESTION #2
Suppose that I have a Dog model struct with a foreign key of Cat:
type Dog struct {
uadmin.Model
Cat Cat
CatID uint
}
Fill in the blanks that corresponds to the inline based on the given structure above.
uadmin.RegisterInlines(models.___, map[string]string){
"___": "___",
}
QUESTION #3
Suppose that I have a Family model struct with a foreign key of Mother:
type Family struct {
uadmin.Model
Mother Mother
MotherID uint
}
Fill in the blanks that corresponds to the inline based on the given structure above.
uadmin.RegisterInlines(models.___, map[string]string){
"___": "___",
}
QUESTION #4
Suppose that I have a Restaurant model struct with a foreign key of Jollibee:
type Restaurant struct {
uadmin.Model
Jollibee Jollibee
JollibeeID uint
}
Fill in the blanks that corresponds to the inline based on the given structure above.
uadmin.RegisterInlines(models.___, map[string]string){
"___": "___",
}
QUESTION #5
Suppose that I have an A model struct with a foreign key of B:
type A struct {
uadmin.Model
B B
BID uint
}
Fill in the blanks that corresponds to the inline based on the given structure above.
uadmin.RegisterInlines(models.___, map[string]string){
"___": "___",
}
QUESTION #6
Given a register inline function that has a parent model of House and a Roof model inside it:
uadmin.RegisterInlines(models.House, map[string]string){
"Roof": "HouseID",
}
Fill in the blanks that corresponds to the model struct based on the given structure above.
type ___ struct {
uadmin.Model
___ ___
___ ___
}
QUESTION #7
Given a register inline function that has a parent model of Dog and a Cat model inside it:
uadmin.RegisterInlines(models.Dog, map[string]string){
"Cat": "DogID",
}
Fill in the blanks that corresponds to the model struct based on the given structure above.
type ___ struct {
uadmin.Model
___ ___
___ ___
}
QUESTION #8
Given a register inline function that has a parent model of Food and a Rice model inside it:
uadmin.RegisterInlines(models.Food, map[string]string){
"Rice": "FoodID",
}
Fill in the blanks that corresponds to the model struct based on the given structure above.
type ___ struct {
uadmin.Model
___ ___
___ ___
}
QUESTION #9
Given a register inline function that has a parent model of Bread and a Caramel model inside it:
uadmin.RegisterInlines(models.Bread, map[string]string){
"Caramel": "BreadID",
}
Fill in the blanks that corresponds to the model struct based on the given structure above.
type ___ struct {
uadmin.Model
___ ___
___ ___
}
QUESTION #10
Given a register inline function that has a parent model of Bread and a Caramel model inside it:
uadmin.RegisterInlines(models.NewYork, map[string]string){
"USA": "NewYorkID",
}
Fill in the blanks that corresponds to the model struct based on the given structure above.
type ___ struct {
uadmin.Model
___ ___
___ ___
}