package models

import (
	"git.apinb.com/bsm-sdk/core/types"
)

// FriendData 好友列表
type RelationFriend struct {
	types.Std_IICUDS
	types.Std_Passport
	FriendrelationID       uint   `gorm:"column:friend_relation_id;not null;" json:"friend_relation_id"`             //好友的会员唯一ID
	FriendrelationIdentity string `gorm:"column:friend_relation_identity;not null;" json:"friend_relation_identity"` //好友的会员唯一标识
	RemarkName             string `gorm:"column:remark_name;type:varchar(255);default:'';" json:"remark_name"`       //备注
	Popular                int    `gorm:"column:popular;type:int2;default:0;" json:"popular"`                        //是否置顶,默认：否
	SessionID              string `gorm:"column:session_id;not null;" json:"session_id"`                             //与好友的会话ID
}

// TableName .
func (fd *RelationFriend) TableName() string {
	return "relation_friend"
}
