models

package
v0.0.0-...-65dd222 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Follower

type Follower struct {
	ID       *primitive.ObjectID `bson:"_id,omitempty"`
	Followed *string             `bson:"followed"`
	Follower *string             `bson:"follower"`
}

Follower represents a relationship between users, describing the followers that a particular user has.

  • "Followed" represents the ID of the user to be followed
  • "Follower" represents the ID of the user that is following

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL