16 lines
765 B
Go
16 lines
765 B
Go
package model
|
||
|
||
import "time"
|
||
|
||
// CkbSubmitRecord 加好友/留资类接口提交记录(存客宝 lead/join/match)
|
||
type CkbSubmitRecord struct {
|
||
ID int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||
Action string `gorm:"column:action;size:20;not null" json:"action"` // lead | join | match
|
||
UserID string `gorm:"column:user_id;size:50;index" json:"userId"` // 用户 id
|
||
Nickname string `gorm:"column:nickname;size:100" json:"nickname"` // 昵称
|
||
Params string `gorm:"column:params;type:json;not null" json:"params"` // 用户提交的传参 JSON
|
||
CreatedAt time.Time `gorm:"column:created_at" json:"createdAt"`
|
||
}
|
||
|
||
func (CkbSubmitRecord) TableName() string { return "ckb_submit_records" }
|