User

User

Documentation generated from user.entity.ts on Feb 19 2019 at 16:20

A User represents any authenticated user of the Vendure API. This includes both Administrators as well as registered Customers.

Signature

class User {
  constructor(input: DeepPartial<User>)
  @Column({ unique: true })
    identifier: string;
  @Column() passwordHash: string;
  @Column({ default: false })
    verified: boolean;
  @Column({ type: 'varchar', nullable: true })
    verificationToken: string | null;
  @ManyToMany(type => Role)
    @JoinTable()
    roles: Role[];
  @Column({ nullable: true })
    lastLogin: string;
  @Column(type => CustomUserFields)
    customFields: CustomUserFields;
}

Members

constructor

method
type:
(input: DeepPartial<User>) => User

identifier

property
type:
string

passwordHash

property
type:
string

verified

property
type:
boolean

verificationToken

property
type:
string | null

roles

property
type:
Role[]

lastLogin

property
type:
string

customFields

property
type:
CustomUserFields
alpha