user.ts 879 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. export interface User {
  2. _id: string;
  3. username: string;
  4. role: string;
  5. email: {
  6. verified: boolean;
  7. verificationToken?: string;
  8. address: string;
  9. };
  10. avatar: {
  11. type: string;
  12. url?: string;
  13. color?: string;
  14. };
  15. services: {
  16. password?: {
  17. password: string;
  18. reset: {
  19. code: string;
  20. expires: Date;
  21. };
  22. set: {
  23. code: string;
  24. expires: Date;
  25. };
  26. };
  27. github?: {
  28. id: number;
  29. access_token: string;
  30. };
  31. };
  32. password?: boolean;
  33. github?: boolean;
  34. statistics: {
  35. songsRequested: number;
  36. };
  37. likedSongsPlaylist: string;
  38. dislikedSongsPlaylist: string;
  39. favoriteStations: string[];
  40. name: string;
  41. location: string;
  42. bio: string;
  43. createdAt: Date;
  44. preferences: {
  45. orderOfPlaylists: string[];
  46. nightmode: boolean;
  47. autoSkipDisliked: boolean;
  48. activityLogPublic: boolean;
  49. anonymousSongRequests: boolean;
  50. activityWatch: boolean;
  51. };
  52. }