You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package Models
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gofrs/uuid"
|
|
)
|
|
|
|
// Set with User being the requestee, and FriendID being the requester
|
|
type Friend struct {
|
|
Base
|
|
UserID uuid.UUID `gorm:"type:uuid;column:user_id;not null;" json:"user_id"`
|
|
User User `json:"user"`
|
|
FriendID []byte `gorm:"not null" json:"friend_id"` // Stored encrypted
|
|
AcceptedAt time.Time `json:"accepted_at"`
|
|
}
|