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: 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 `bson:"_id,omitempty"`
	Username     *string             `bson:"username,omitempty"`
	Email        *string             `bson:"email,omitempty"`
	PasswordHash *string             `bson:"passwordHash,omitempty"`
	Bio          *string             `bson:"bio,omitempty"`
	Image        *string             `bson:"image,omitempty"`
	CreatedAt    *time.Time          `bson:"createdAt,omitempty"`
	UpdatedAt    *time.Time          `bson:"updatedAt,omitempty"`
	LastSession  *time.Time          `bson:"lastSession,omitempty"`
}

Jump to

Keyboard shortcuts

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