File tree Expand file tree Collapse file tree 5 files changed +9
-0
lines changed
taskmaster-api/Data/Entities Expand file tree Collapse file tree 5 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public class ActivityLogEntity : IEntity<ActivityLogDto>
2121 [ StringLength ( 100 ) ]
2222 public string Action { get ; set ; }
2323
24+ [ Required ]
2425 public DateTime CreatedAt { get ; set ; }
2526
2627 public ActivityLogDto ToDto ( )
Original file line number Diff line number Diff line change @@ -25,8 +25,10 @@ public class AttachmentEntity : IEntity<AttachmentDto>
2525 [ StringLength ( 255 ) ]
2626 public string FileName { get ; set ; }
2727
28+ [ Required ]
2829 public DateTime CreatedAt { get ; set ; }
2930
31+ [ Required ]
3032 public DateTime UpdatedAt { get ; set ; }
3133
3234 public AttachmentDto ToDto ( )
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ public class CommentEntity : IEntity<CommentDto>
2424 [ Required ]
2525 public string Content { get ; set ; }
2626
27+ [ Required ]
2728 public DateTime CreatedAt { get ; set ; }
2829
30+ [ Required ]
2931 public DateTime UpdatedAt { get ; set ; }
3032
3133 public CommentDto ToDto ( )
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ public class NotificationEntity : IEntity<NotificationDto>
2323 [ Required ]
2424 public bool IsRead { get ; set ; }
2525
26+ [ Required ]
2627 public DateTime CreatedAt { get ; set ; }
2728
2829 public NotificationDto ToDto ( )
Original file line number Diff line number Diff line change @@ -20,11 +20,14 @@ public class TaskEntity : IEntity<TaskDto>
2020
2121 public DateTime ? DueDate { get ; set ; }
2222
23+ [ Required ]
2324 [ StringLength ( 50 ) ]
2425 public string Status { get ; set ; }
2526
27+ [ Required ]
2628 public DateTime CreatedAt { get ; set ; }
2729
30+ [ Required ]
2831 public DateTime UpdatedAt { get ; set ; }
2932
3033 public TaskDto ToDto ( )
You can’t perform that action at this time.
0 commit comments