summaryrefslogtreecommitdiff
path: root/models/models.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go
index 355851a..b36cc59 100644
--- a/models/models.go
+++ b/models/models.go
@@ -5,7 +5,5 @@ type Blog struct {
Title string `gorm:"not null" json:"title"`
Content string `gorm:"not null" json:"content"`
UserID uint `gorm:"not null" json:"user_id"`
- User User `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"user"`
- Comments []Comment `gorm:"foreignKey:BlogID" json:"comments"`
}