package models import "time" type CategoryDB struct { ID int64 `gorm:"primaryKey;autoIncrement"` PartnerID int64 `gorm:"not null"` Name string `gorm:"type:varchar(255);not null"` CreatedAt time.Time `gorm:"autoCreateTime"` UpdatedAt time.Time `gorm:"autoUpdateTime"` DeletedAt *time.Time } func (CategoryDB) TableName() string { return "categories" }