user_property.go 604 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package model

import (
	"time"
)

const (
	UserPropertyYesUsing = 1
	UserPropertyNoUsing  = 0
)

type UserProperty struct {
	CreatedTime time.Time `json:"created_time"` // CreatedTime
	EndTime     time.Time `json:"end_time"`     // 有效截至时间
	Id          int64     `json:"id"`           // id
	PropertyId  int64     `json:"property_id"`  // 道具ID
	UpdatedTime time.Time `json:"updated_time"` // UpdatedTime
	UserId      int64     `json:"user_id"`      // 用户ID
	Using       int       `json:"using"`        // Using
}

func (u *UserProperty) TableName() string {
	return "user_property"
}