Files
soul-yongping/soul-api/internal/model/ckb_submit.go

16 lines
765 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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" }