summaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorroerick <roerick@wyo.town>2025-10-19 14:24:40 -0600
committerroerick <roerick@wyo.town>2025-10-19 14:24:40 -0600
commit132e0fe607396123a9fc5390c8657ef145bba3c6 (patch)
tree9a420d6f89a2de70d17bfb08789a26ccc501a9b9 /models
parenta1c3883334a9c54358173ebd822a5a85036dcda6 (diff)
initial commit with auth working
Diffstat (limited to 'models')
-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"`
}