package models import "time" type PriceHistory struct { Price_id uint Product_id uint Product Product `gorm:"references:Product_id"` Created_at time.Time Updated_at time.Time `gorm:"default:null"` Removed_at time.Time `gorm:"default:null"` Is_removed bool `gorm:"default:false"` }