package model

import "time"

// UserFollow 关注关系
type UserFollow struct {
	FollowerID  uint      `gorm:"primaryKey;not null" json:"follower_id"`
	FolloweeID  uint      `gorm:"primaryKey;not null" json:"followee_id"`
	CreatedAt   time.Time `json:"created_at"`

	// 联表查询填充（非数据库字段）
	FollowerUsername string `gorm:"-:migration;<-:false;column:follower_username" json:"follower_username,omitempty"`
	FolloweeUsername string `gorm:"-:migration;<-:false;column:followee_username" json:"followee_username,omitempty"`
	FollowerAvatar   string `gorm:"-:migration;<-:false;column:follower_avatar" json:"follower_avatar,omitempty"`
	FolloweeAvatar   string `gorm:"-:migration;<-:false;column:followee_avatar" json:"followee_avatar,omitempty"`
	FollowerBio      string `gorm:"-:migration;<-:false;column:follower_bio" json:"follower_bio,omitempty"`
	FolloweeBio      string `gorm:"-:migration;<-:false;column:followee_bio" json:"followee_bio,omitempty"`
}
