You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
package model
const TableNameSlowLog = "slow_log"
// SlowLog mapped from table <slow_log>
type SlowLog struct {
ID int64 ` gorm:"column:id;type:bigint;primaryKey" json:"id" `
CreatedAt int64 ` gorm:"column:created_at;type:bigint;not null;index:idx_created_at_method,priority:1" json:"created_at" `
Method string ` gorm:"column:method;type:varchar(64);not null;index:idx_created_at_method,priority:2;comment:执行的方法标识" json:"method" `
Req string ` gorm:"column:req;type:json;not null;comment:处理的数据" json:"req" `
Res string ` gorm:"column:res;type:json;not null;comment:处理后返回的结果" json:"res" `
Sec int64 ` gorm:"column:sec;type:bigint;not null;comment:耗时(单位:ms) " json:"sec" `
TraceID string ` gorm:"column:trace_id;type:varchar(20);not null;uniqueIndex:uniq_trace_id,priority:1;comment:全局追踪id" json:"trace_id" `
}
// TableName SlowLog's table name
func ( * SlowLog ) TableName ( ) string {
return TableNameSlowLog
}