user

package
v0.6.47 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID             primitive.ObjectID `json:"id" bson:"_id"`
	Username       string             `json:"username" bson:"username"`
	FirstName      string             `json:"first_name" bson:"first_name"`
	LastName       string             `json:"last_name" bson:"last_name"`
	HashedPassword string             `json:"hashed_password" bson:"hashed_password"`
	DeletedAt      time.Time          `json:"deleted_at,omitempty" bson:"deleted_at,omitempty"`
	Birthdate      time.Time          `json:"birthdate,omitempty" bson:"birthdate,omitempty"`
	JoinedAt       time.Time          `json:"joined_at" bson:"joined_at"`
	UUID           string             `json:"uuid" bson:"uuid"`
}

User is the MongoDB for the user entity

type UserEmail

type UserEmail struct {
	ID         primitive.ObjectID `json:"id" bson:"_id"`
	UserID     primitive.ObjectID `json:"user_id" bson:"user_id"`
	Email      string             `json:"email" bson:"email"`
	AssignedAt time.Time          `json:"assigned_at" bson:"assigned_at"`
	VerifiedAt time.Time          `json:"verified_at,omitempty" bson:"verified_at,omitempty"`
	RevokedAt  time.Time          `json:"revoked_at,omitempty" bson:"revoked_at,omitempty"`
	IsPrimary  bool               `json:"is_primary" bson:"is_primary"`
}

UserEmail is the MongoDB for the user email entity

type UserEmailVerification

type UserEmailVerification struct {
	ID          primitive.ObjectID `json:"id" bson:"_id"`
	UserEmailID primitive.ObjectID `json:"user_email_id" bson:"user_email_id"`
	UUID        string             `json:"uuid" bson:"uuid"`
	CreatedAt   time.Time          `json:"created_at" bson:"created_at"`
	ExpiresAt   time.Time          `json:"expires_at" bson:"expires_at"`
	VerifiedAt  time.Time          `json:"verified_at,omitempty" bson:"verified_at,omitempty"`
	RevokedAt   time.Time          `json:"revoked_at,omitempty" bson:"revoked_at,omitempty"`
}

UserEmailVerification is the MongoDB for the user email verification entity

type UserHashedPasswordLog

type UserHashedPasswordLog struct {
	ID             primitive.ObjectID `json:"id" bson:"_id"`
	UserID         primitive.ObjectID `json:"user_id" bson:"user_id"`
	HashedPassword string             `json:"hashed_password" bson:"hashed_password"`
	AssignedAt     time.Time          `json:"assigned_at" bson:"assigned_at"`
}

UserHashedPasswordLog is the MongoDB for the user hashed password log entity

type UserPhoneNumber

type UserPhoneNumber struct {
	ID          primitive.ObjectID `json:"id" bson:"_id"`
	UserID      primitive.ObjectID `json:"user_id" bson:"user_id"`
	PhoneNumber string             `json:"phone_number" bson:"phone_number"`
	AssignedAt  time.Time          `json:"assigned_at" bson:"assigned_at"`
	VerifiedAt  time.Time          `json:"verified_at,omitempty" bson:"verified_at,omitempty"`
	RevokedAt   time.Time          `json:"revoked_at,omitempty" bson:"revoked_at,omitempty"`
}

UserPhoneNumber is the MongoDB for the user phone number entity

type UserPhoneNumberVerification

type UserPhoneNumberVerification struct {
	ID                primitive.ObjectID `json:"id" bson:"_id"`
	UserPhoneNumberID primitive.ObjectID `json:"user_phone_number_id" bson:"user_phone_number_id"`
	VerificationCode  string             `json:"verification_code" bson:"verification_code"`
	CreatedAt         time.Time          `json:"created_at" bson:"created_at"`
	ExpiresAt         time.Time          `json:"expires_at" bson:"expires_at"`
	VerifiedAt        time.Time          `json:"verified_at,omitempty" bson:"verified_at,omitempty"`
	RevokedAt         time.Time          `json:"revoked_at,omitempty" bson:"revoked_at,omitempty"`
}

UserPhoneNumberVerification is the MongoDB for the user phone number verification entity

type UserResetPassword

type UserResetPassword struct {
	ID        primitive.ObjectID `json:"id" bson:"_id"`
	UserID    primitive.ObjectID `json:"user_id" bson:"user_id"`
	UUID      string             `json:"uuid" bson:"uuid"`
	CreatedAt time.Time          `json:"created_at" bson:"created_at"`
	ExpiresAt time.Time          `json:"expires_at" bson:"expires_at"`
	UsedAt    time.Time          `json:"used_at,omitempty" bson:"used_at,omitempty"`
	RevokedAt time.Time          `json:"revoked_at,omitempty" bson:"revoked_at,omitempty"`
}

UserResetPassword is the MongoDB for the user password reset entity

type UserUsernameLog

type UserUsernameLog struct {
	ID         primitive.ObjectID `json:"id" bson:"_id"`
	UserID     primitive.ObjectID `json:"user_id" bson:"user_id"`
	Username   string             `json:"username" bson:"username"`
	AssignedAt time.Time          `json:"assigned_at" bson:"assigned_at"`
}

UserUsernameLog is the MongoDB for the user username log entity

Jump to

Keyboard shortcuts

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