79256652

Date: 2024-12-06 01:40:30
Score: 0.5
Natty:
Report link

You can delete gorm.Model from your struct and manually include only the ID, CreateAt and UpdateAt properties without DeleteAt, it looks something like this:

type YourModel sruct {
    ID uint `gorm:"primaryKey"`
    CreatedAt time.Time
    UpdatedAt time.Time
    Name string
    ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Fernando Rossato