'How to declare a model start with '_' in Gorm?

I'm trying to declare a model and insert some data in a table with a column named '_update_time'.

type User struct{
...
UpdateTime time.Time `gorm:"column(_update_time)"`
...
}

However, it doesn't work with the Error 'Unknown column 'update_time' in 'field list'.

It works when I try to "create from map" but I need the back filled primary key :(



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source