Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct { ObjectID primitive.ObjectID `bson:"_id,omitempty"` UUID string `bson:"uuid,omitempty"` XID string `bson:"xid,omitempty"` KeyID string `bson:"keyId,omitempty"` Metadata map[string]any `bson:"metadata,omitempty"` CreatedAt time.Time `bson:"createdAt"` UpdatedAt time.Time `bson:"updatedAt"` DeletedAt *time.Time `bson:"deletedAt,omitempty"` }
BaseModel represents the base model
type UserModel ¶
type UserModel struct { BaseModel BaseModel `bson:"inline"` Name string `bson:"name"` Email string `bson:"email"` Skills []string `bson:"skills"` ImageUrl string `bson:"imageUrl"` JobTitle string `bson:"jobTitle"` PasswordHash string `bson:"passwordHash"` }
UserModel represents the model of a user as stored in a database
type UserVerificationModel ¶
type UserVerificationModel struct { BaseModel BaseModel `bson:"inline"` Code string `bson:"code"` UserId string `bson:"user_id"` IsVerified bool `bson:"is_verified"` }
UserVerificationModel represents the model of a user verification as stored in a database
func (*UserVerificationModel) String ¶
func (u *UserVerificationModel) String() string
Click to show internal directories.
Click to hide internal directories.