E.W.O. Next / All files / src/engine/models User.ts

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                            11x 11x 11x 11x 11x    
/**
 * @module Engine.Models
 * User
 */
 
export interface User {
  id: number;
  name: string;
  hash: string;
  email: string;
  token?: string; // Token for socket.io
  role?: UserRole;
}
 
export enum UserRole {
  NonValidated = 0,
  User = 1,
  AntiCheat = 10,
  Admin = 20,
}