fixed infinite comment length

This commit is contained in:
rawleyIfowler
2022-02-25 21:49:38 -06:00
parent 81b2a9a7f9
commit d5719e934a
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ type Comment struct {
gorm.Model
Id uint `json:"id" gorm:"primaryKey, AUTO_INCREMENT"`
Date string `json:"date" gorm:"default:NOW()"`
Author string `json:"author" form:"author"`
Content string `json:"content" form:"content"`
Author string `json:"author" form:"author" gorm:"type:varchar(50)"`
Content string `json:"content" form:"content" gorm:"type:varchar(500)"`
AssociatedPost string
}