Changeset e882b92 for ChapterX.Domain


Ignore:
Timestamp:
08/24/26 20:57:09 (13 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Parents:
a6e33d1
Message:

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

Location:
ChapterX.Domain
Files:
18 deleted
18 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Domain/DTOs/AISuggestionDto.cs

    ra6e33d1 re882b92  
    66        public string OriginalText { get; set; } = string.Empty;
    77        public string SuggestedText { get; set; } = string.Empty;
     8        public string SuggestionType { get; set; } = string.Empty;
    89        public bool Accepted { get; set; }
    910        public DateTime CreatedAt { get; set; }
     
    1516        // Navigation
    1617        public StoryDto Story { get; set; } = null!;
    17         public ICollection<SuggestionTypeDto> SuggestionTypes { get; set; } = [];
    1818        public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = [];
    1919    }
  • ChapterX.Domain/DTOs/AdminDto.cs

    ra6e33d1 re882b92  
    44    {
    55        public int UserId { get; set; }
     6        public DateTime AssignedAt { get; set; }
    67
    78        // Navigation
  • ChapterX.Domain/DTOs/CollaborationDto.cs

    ra6e33d1 re882b92  
    55        public int UserId { get; set; }
    66        public int StoryId { get; set; }
     7        public string Role { get; set; } = string.Empty;
     8        public int? PermissionLevel { get; set; }
    79        public DateTime CreatedAt { get; set; }
    810
     
    1012        public UserDto User { get; set; } = null!;
    1113        public StoryDto Story { get; set; } = null!;
    12         public ICollection<RolesDto> Roles { get; set; } = [];
    13         public ICollection<PermissionLevelDto> PermissionLevels { get; set; } = [];
    1414    }
    1515}
  • ChapterX.Domain/DTOs/LikesDto.cs

    ra6e33d1 re882b92  
    55        public int UserId { get; set; }
    66        public int StoryId { get; set; }
    7         public DateTime CreatedAt { get; set; }
     7        public DateTime LikedAt { get; set; }
    88
    99        // Navigation
  • ChapterX.Domain/DTOs/NotificationDto.cs

    ra6e33d1 re882b92  
    55        public int Id { get; set; }
    66        public string Content { get; set; } = string.Empty;
     7        public string ContentType { get; set; } = string.Empty;
    78        public bool IsRead { get; set; }
     9        public string? Link { get; set; }
     10        public int UserId { get; set; }
     11        public int? StoryId { get; set; }
    812        public DateTime CreatedAt { get; set; }
    9 
    10         // Navigation
    11         public ICollection<ContentTypeDto> ContentTypes { get; set; } = [];
    12         public ICollection<NotifyDto> Notifies { get; set; } = [];
    1313    }
    1414}
  • ChapterX.Domain/DTOs/RegularUserDto.cs

    ra6e33d1 re882b92  
    44    {
    55        public int UserId { get; set; }
     6        public DateTime JoinedAt { get; set; }
    67
    78        // Navigation
  • ChapterX.Domain/DTOs/StoryDto.cs

    ra6e33d1 re882b92  
    77        public int Id { get; set; }
    88        public bool MatureContent { get; set; }
     9        public string Title { get; set; } = string.Empty;
    910        public string ShortDescription { get; set; } = string.Empty;
    1011        public string? Image { get; set; }
    1112        public string Content { get; set; } = string.Empty;
     13        public string Status { get; set; } = "draft";
    1214        public DateTime CreatedAt { get; set; }
    1315        public DateTime UpdatedAt { get; set; }
     
    1719        // Navigation
    1820        public WriterDto Writer { get; set; } = null!;
    19         public ICollection<StatusDto> Statuses { get; set; } = [];
    2021        public ICollection<ChapterDto> Chapters { get; set; } = [];
    2122        public ICollection<HasGenreDto> HasGenres { get; set; } = [];
     
    2425        public ICollection<CollaborationDto> Collaborations { get; set; } = [];
    2526        public ICollection<AISuggestionDto> AISuggestions { get; set; } = [];
    26         public ICollection<NotifyDto> Notifies { get; set; } = [];
    2727        public ICollection<ReadingListItemsDto> ReadingListItems { get; set; } = [];
    2828        public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = [];
  • ChapterX.Domain/DTOs/UserDto.cs

    ra6e33d1 re882b92  
    2222        public ICollection<CommentDto> Comments { get; set; } = [];
    2323        public ICollection<CollaborationDto> Collaborations { get; set; } = [];
    24         public ICollection<NotifyDto> Notifies { get; set; } = [];
     24        public ICollection<NotificationDto> Notifications { get; set; } = [];
    2525    }
    2626}
  • ChapterX.Domain/DTOs/WriterDto.cs

    ra6e33d1 re882b92  
    66    {
    77        public int UserId { get; set; }
     8        public string? Bio { get; set; }
    89
    910        // Navigation
  • ChapterX.Domain/Entities/AISuggestion.cs

    ra6e33d1 re882b92  
    1313        public string OriginalText { get; set; } = string.Empty;
    1414        public string SuggestedText { get; set; } = string.Empty;
     15        public string SuggestionType { get; set; } = string.Empty;
    1516        public bool? Accepted { get; set; }
    1617        public DateTime CreatedAt { get; set; }
     
    1920        public int StoryId { get; set; }
    2021        public Story Story { get; set; } = null!;
    21         public ICollection<SuggestionType> SuggestionTypes { get; set; } = [];
    2222        public ICollection<NeedApproval> NeedApprovals { get; set; } = [];
    2323
  • ChapterX.Domain/Entities/Admin.cs

    ra6e33d1 re882b92  
    66    {
    77        public int Id { get; set; } // maps to user_id
     8        public DateTime AssignedAt { get; set; }
    89        public User User { get; set; } = null!;
    910    }
  • ChapterX.Domain/Entities/Collaboration.cs

    ra6e33d1 re882b92  
    88        public int UserId { get; set; }
    99        public int StoryId { get; set; }
     10        public string Role { get; set; } = string.Empty;
     11        public int? PermissionLevel { get; set; }
    1012        public DateTime CreatedAt { get; set; }
    1113        public User User { get; set; } = null!;
  • ChapterX.Domain/Entities/Likes.cs

    ra6e33d1 re882b92  
    88        public int UserId { get; set; }
    99        public int StoryId { get; set; }
    10         public DateTime CreatedAt { get; set; }
     10        public DateTime LikedAt { get; set; }
    1111        public User User { get; set; } = null!;
    1212        public Story Story { get; set; } = null!;
  • ChapterX.Domain/Entities/Notification.cs

    ra6e33d1 re882b92  
    1212        public int Id { get; set; }
    1313        public string Content { get; set; } = string.Empty;
     14        public string ContentType { get; set; } = string.Empty;
    1415        public bool IsRead { get; set; }
     16        public string? Link { get; set; }
    1517        public DateTime CreatedAt { get; set; }
    16         public int? RecipientUserId { get; set; }
    17         public string? Type { get; set; }
    18         public string? Link { get; set; }
    1918
    20         public ICollection<ContentType> ContentTypes { get; set; } = [];
    21         public ICollection<Notify> Notifies { get; set; } = [];
    22 
     19        public int UserId { get; set; }
     20        public int? StoryId { get; set; }
     21        public User User { get; set; } = null!;
     22        public Story? Story { get; set; }
    2323    }
    2424}
  • ChapterX.Domain/Entities/RegularUser.cs

    ra6e33d1 re882b92  
    66    {
    77        public int Id { get; set; } // maps to user_id
     8        public DateTime JoinedAt { get; set; }
    89        public User User { get; set; } = null!;
    910    }
  • ChapterX.Domain/Entities/Story.cs

    ra6e33d1 re882b92  
    1616        public string? Image { get; set; }
    1717        public string Content { get; set; } = string.Empty;
     18        public string Status { get; set; } = "draft";
    1819        public DateTime CreatedAt { get; set; }
    1920        public DateTime UpdatedAt { get; set; }
     
    2122        public int UserId { get; set; }
    2223        public Writer Writer { get; set; } = null!;
    23         public ICollection<Status> Statuses { get; set; } = [];
    2424        public ICollection<Chapter> Chapters { get; set; } = [];
    2525        public ICollection<HasGenre> HasGenres { get; set; } = [];
     
    2828        public ICollection<Collaboration> Collaborations { get; set; } = [];
    2929        public ICollection<AISuggestion> AISuggestions { get; set; } = [];
    30         public ICollection<Notify> Notifies { get; set; } = [];
     30        public ICollection<Notification> Notifications { get; set; } = [];
    3131        public ICollection<ReadingListItems> ReadingListItems { get; set; } = [];
    3232        public ICollection<NeedApproval> NeedApprovals { get; set; } = [];
  • ChapterX.Domain/Entities/User.cs

    ra6e33d1 re882b92  
    2626        public ICollection<Comment> Comments { get; set; } = [];
    2727        public ICollection<Collaboration> Collaborations { get; set; } = [];
    28         public ICollection<Notify> Notifies { get; set; } = [];
     28        public ICollection<Notification> Notifications { get; set; } = [];
    2929
    3030
  • ChapterX.Domain/Entities/Writer.cs

    ra6e33d1 re882b92  
    66    {
    77        public int Id { get; set; } // maps to user_id
     8        public string? Bio { get; set; }
    89        public User User { get; set; } = null!;
    910        public ICollection<Story> Stories { get; set; } = [];
Note: See TracChangeset for help on using the changeset viewer.