user.interface.ts 480 B

12345678910111213141516
  1. import { Role } from '../../auth/role';
  2. import { Address } from '../address/address.interface';
  3. /**
  4. * A registered user of the system, either a Customer or Administrator. The User interface / entity is responsible
  5. * for the identity of the user for the purposes of authentication & authorization.
  6. */
  7. export class User {
  8. id: number;
  9. identifier: string;
  10. passwordHash: string;
  11. roles: Role[];
  12. lastLogin: string;
  13. createdAt: string;
  14. updatedAt: string;
  15. }