Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BaseModel
    • default

Index

Constructors

constructor

  • Returns default

Properties

createdAt

createdAt: DateTime

The date the user was created on

email

email: string

The email for the user

id

id: number

The id for the user

nationAdmin

nationAdmin: boolean

If the user is a nation admin

nationId

nationId: number

The nation that this user is a part of

password

password: string

The password for the user

Optional rememberMeToken

rememberMeToken: string

Not used at the moment!

updatedAt

updatedAt: DateTime

The date the user was updated on

Methods

Static hashPassword

  • hashPassword(user: default): Promise<void>
  • Method that hashes passwords for a user

    Parameters

    • user: default

      Takes in a user model and extracts the password that is assigned for the user

    Returns Promise<void>

Generated using TypeDoc