package models

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

// FriendApply 好友申请
type FriendApply struct {
	types.Std_IICUDS
	FromID        uint   `gorm:"column:from_id;not null;" json:"from_id"`                              //申请人id
	FromIdentity  string `gorm:"column:from_identity;type:varchar(50);not null;" json:"from_identity"` //申请人identity
	ToID          uint   `gorm:"column:to_id;not null;" json:"to_id"`                                  //目的人id
	ToIdentity    string `gorm:"column:to_identity;type:varchar(50);not null;" json:"to_identity"`     //目的人identity
	LastMessageID uint   `gorm:"column:last_message_id;not null;" json:"last_message_id"`              //最后交流ID
}

// TableName .
func (fg *FriendApply) TableName() string {
	return "relation_friend_apply"
}
