type Post struct {
gorm.Model Title string `json:"title" gorm:"type:text"`
Content string `json:"content" gorm:"type:text"`
UserID uint User User `gorm:"foreignkey:UserID"`
}
type User struct {
gorm.Model Email string `json:"email" gorm:"type:varchar(200);"`
Name string `json:"name" gorm:"type:varchar(200);"`
Password string `json:"password" gorm:"type:varchar(200);"`
Post []Post}