123456789101112131415161718192021222324252627282930313233343536 |
- package yb_activity_remind
- import "time"
- type YbActivityRemind struct {
- ID uint32 `gorm:"primaryKey;column:id;type:int(11) unsigned;not null" json:"-"`
- ActivityID uint32 `gorm:"index:inx_activity_id;column:activity_id;type:int(11) unsigned;not null;default:0" json:"activityId"`
- UserID uint64 `gorm:"index:inx_user_id;column:user_id;type:bigint(20) unsigned;not null;default:0" json:"userId"`
- CompanyID uint64 `gorm:"column:company_id;type:bigint(20) unsigned;not null;default:0" json:"companyId"`
- RealName string `gorm:"column:real_name;type:varchar(32);not null;default:''" json:"realName"`
- Mobile string `gorm:"column:mobile;type:varchar(32);not null;default:''" json:"mobile"`
- CreateTime time.Time `gorm:"column:create_time;type:datetime;default:CURRENT_TIMESTAMP" json:"createTime"`
- }
- func (m *YbActivityRemind) TableName() string {
- return "yb_activity_remind"
- }
- var YbActivityRemindColumns = struct {
- ID string
- ActivityID string
- UserID string
- CompanyID string
- RealName string
- Mobile string
- }{
- ID: "id",
- ActivityID: "activity_id",
- UserID: "user_id",
- CompanyID: "company_id",
- RealName: "real_name",
- Mobile: "mobile",
- }
|