push_device_info.go 1.1 KB
package models

import (
	"time"

	"github.com/astaxie/beego/orm"
)

type PushDeviceInfo struct {
	Id               int       `orm:"column(id);auto"`
	Uid              int64     `orm:"column(uid);null" description:"企业平台用户id (muid)"`
	Phone            string    `orm:"column(phone);size(100);null" description:"设备手机号"`
	ClientId         string    `orm:"column(client_id);size(100);null" description:"设备识别码 推送标识"`
	DeviceToken      string    `orm:"column(device_token);size(100);null" description:"设备识别码 推送标识"`
	CreateAt         time.Time `orm:"column(create_at);type(timestamp);null" description:"创建时间"`
	UpdateAt         time.Time `orm:"column(update_at);type(timestamp);null" description:"更新时间"`
	IsActive         int       `orm:"column(is_active);null" description:"是否在活动  1:在线 0:离线(解绑,切换账号)"`
	ProjectMasterKey string    `orm:"column(project_master_key);size(50);null" description:"主项目唯一标识  ability"`
}

func (t *PushDeviceInfo) TableName() string {
	return "push_device_info"
}

func init() {
	orm.RegisterModel(new(PushDeviceInfo))
}