Created
September 28, 2015 09:00
-
-
Save Iverson/04483a8c3f4d439d17a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type User struct { | |
gorm.Model | |
Email string | |
Password string | |
Apps []App | |
} | |
type App struct { | |
gorm.Model | |
Name string | |
UserID uint `sql:"index"` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment