【发布时间】:2022-12-02 04:45:21
【问题描述】:
I am usign GORM and I am mapping legacy tables.
By default GORM has this struct:
type Model struct {
ID uint `gorm:\"primarykey\"`
CreatedAt time.Time
UpdatedAt time.Time
DeletedAt DeletedAt `gorm:\"index\"`
}
I don\'t have CreatedAt UpdatedAt DeletedAt fields in the legacy table, I need to avoid or disable this default structure.
I don\'t find a way to avoid this columns.
Thank you.