Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type MyLink struct {
- gorm.Model
- Title string
- Url string
- }
- // group of links under a single title
- type MyLinkSection struct {
- gorm.Model
- Title string
- Links []MyLink
- }
- type MyPage struct {
- gorm.Model
- PageUrl MyLink
- Artists []MyLinkSection
- }
- PageUrl MyLink `gorm:"ForeignKey:PageUrlId"`
- PageUrl Id uint
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement