File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ type Audit struct {
60
60
// Operation represents the operation, it will be the HTTP method for API events.
61
61
Operation string `gorm:"column:operation;type:varchar(256);not null;comment:operation" json:"operation"`
62
62
// OperatedAt represents the operation time.
63
- OperatedAt time.Time `gorm:"column:operated_at;type:timestamp;not null;comment:operation time " json:"operated_at"`
63
+ OperatedAt time.Time `gorm:"column:operated_at;type:timestamp;default:current_timestamp " json:"operated_at"`
64
64
// State represents the state, it indicates the state of the operation, e.g SUCCESS for API status code >= 200 & < 300.
65
65
State string `gorm:"column:state;type:varchar(100);not null;comment:state" json:"state"`
66
66
// Path represents the request path, it will be the URL path for API events.
You can’t perform that action at this time.
0 commit comments