source: ChapterX.Domain/DTOs/UserDto.cs@ a8f4a2d

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

Added files

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