source: ChapterX.API/DTOs/UserDto.cs@ 73b69b2

main
Last change on this file since 73b69b2 was 877c13c, checked in by kikisrbinoska <srbinoskakristina07@…>, 4 months ago

Added files

  • Property mode set to 100644
File size: 1.1 KB
Line 
1using Microsoft.AspNetCore.DataProtection.KeyManagement;
2using System.Xml.Linq;
3
4namespace ChapterX.API.DTOs
5{
6 public class UserDto
7 {
8 public int Id { get; set; }
9 public string Username { get; set; } = string.Empty;
10 public string Email { get; set; } = string.Empty;
11 public string Name { get; set; } = string.Empty;
12 public string Surname { get; set; } = string.Empty;
13 public string Password { get; set; } = string.Empty;
14 public DateTime CreatedAt { get; set; }
15 public DateTime UpdatedAt { get; set; }
16
17 // Navigation
18 public AdminDto? Admin { get; set; }
19 public RegularUserDto? RegularUser { get; set; }
20 public WriterDto? Writer { get; set; }
21 public ICollection<ReadingListDto> ReadingLists { get; set; } = [];
22 public ICollection<LikesDto> Likes { get; set; } = [];
23 public ICollection<CommentDto> Comments { get; set; } = [];
24 public ICollection<CollaborationDto> Collaborations { get; set; } = [];
25 public ICollection<NotifyDto> Notifies { get; set; } = [];
26 }
27}
Note: See TracBrowser for help on using the repository browser.