Changeset e882b92 for ChapterX.API


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.API
Files:
11 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.API/Controllers/AISuggestionsController.cs

    ra6e33d1 re882b92  
    5555                appliedAt = s.AppliedAt,
    5656                storyId = s.StoryId,
    57                 suggestionTypes = s.SuggestionTypes.Select(t => t.SuggestionTypeValue),
     57                suggestionType = s.SuggestionType,
    5858            });
    5959            return Ok(result);
  • ChapterX.API/Controllers/NotificationsController.cs

    ra6e33d1 re882b92  
    3535                isRead = n.IsRead,
    3636                createdAt = n.CreatedAt,
    37                 type = n.Type ?? "info",
     37                contentType = n.ContentType,
     38                storyId = n.StoryId,
    3839                link = n.Link,
    3940            });
  • ChapterX.API/Controllers/StoriesController.cs

    ra6e33d1 re882b92  
    3737                image = s.Image,
    3838                content = s.Content,
     39                status = s.Status,
    3940                matureContent = s.MatureContent,
    4041                createdAt = s.CreatedAt,
     
    6667                image = s.Image,
    6768                content = s.Content,
     69                status = s.Status,
    6870                matureContent = s.MatureContent,
    6971                createdAt = s.CreatedAt,
  • ChapterX.API/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.API/DTOs/AdminDto.cs

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

    ra6e33d1 re882b92  
    77        public int UserId { get; set; }
    88        public int StoryId { get; set; }
     9        public string Role { get; set; } = string.Empty;
     10        public int? PermissionLevel { get; set; }
    911        public DateTime CreatedAt { get; set; }
    1012
     
    1214        public UserDto User { get; set; } = null!;
    1315        public StoryDto Story { get; set; } = null!;
    14         public ICollection<RolesDto> Roles { get; set; } = [];
    15         public ICollection<PermissionLevelDto> PermissionLevels { get; set; } = [];
    1616    }
    1717}
  • ChapterX.API/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.API/DTOs/NotificationDto.cs

    ra6e33d1 re882b92  
    77        public int Id { get; set; }
    88        public string Content { get; set; } = string.Empty;
     9        public string ContentType { get; set; } = string.Empty;
    910        public bool IsRead { get; set; }
     11        public string? Link { get; set; }
     12        public int UserId { get; set; }
     13        public int? StoryId { get; set; }
    1014        public DateTime CreatedAt { get; set; }
    11 
    12         // Navigation
    13         public ICollection<ContentType> ContentTypes { get; set; } = [];
    14         public ICollection<NotifyDto> Notifies { get; set; } = [];
    1515    }
    1616}
  • ChapterX.API/DTOs/RegularUserDto.cs

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

    ra6e33d1 re882b92  
    99        public int Id { get; set; }
    1010        public bool MatureContent { get; set; }
     11        public string Title { get; set; } = string.Empty;
    1112        public string ShortDescription { get; set; } = string.Empty;
    1213        public string? Image { get; set; }
    1314        public string Content { get; set; } = string.Empty;
     15        public string Status { get; set; } = "draft";
    1416        public DateTime CreatedAt { get; set; }
    1517        public DateTime UpdatedAt { get; set; }
     
    1921        // Navigation
    2022        public WriterDto Writer { get; set; } = null!;
    21         public ICollection<StatusDto> Statuses { get; set; } = [];
    2223        public ICollection<ChapterDto> Chapters { get; set; } = [];
    2324        public ICollection<HasGenreDto> HasGenres { get; set; } = [];
     
    2627        public ICollection<CollaborationDto> Collaborations { get; set; } = [];
    2728        public ICollection<AISuggestionDto> AISuggestions { get; set; } = [];
    28         public ICollection<NotifyDto> Notifies { get; set; } = [];
    2929        public ICollection<ReadingListItemsDto> ReadingListItems { get; set; } = [];
    3030        public ICollection<NeedApprovalDto> NeedApprovals { get; set; } = [];
  • ChapterX.API/DTOs/UserDto.cs

    ra6e33d1 re882b92  
    2323        public ICollection<CommentDto> Comments { get; set; } = [];
    2424        public ICollection<CollaborationDto> Collaborations { get; set; } = [];
    25         public ICollection<NotifyDto> Notifies { get; set; } = [];
     25        public ICollection<NotificationDto> Notifications { get; set; } = [];
    2626    }
    2727}
  • ChapterX.API/DTOs/WriterDto.cs

    ra6e33d1 re882b92  
    44    {
    55        public int UserId { get; set; }
     6        public string? Bio { get; set; }
    67
    78        // Navigation
Note: See TracChangeset for help on using the changeset viewer.