From 132e0fe607396123a9fc5390c8657ef145bba3c6 Mon Sep 17 00:00:00 2001 From: roerick Date: Sun, 19 Oct 2025 14:24:40 -0600 Subject: initial commit with auth working --- models/models.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'models') 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"` } -- cgit v1.2.3