source: ChapterX.API/DTOs/UserDto.cs@ e882b92

main
Last change on this file since e882b92 was e882b92, checked in by kikisrbinoska <srbinoskakristina07@…>, 13 days ago

Added corrected entitef from the ER diagram and changes for the logic to be coresponding to the ddl

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[877c13c]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; } = [];
[e882b92]25 public ICollection<NotificationDto> Notifications { get; set; } = [];
[877c13c]26 }
27}
Note: See TracBrowser for help on using the repository browser.