Skip to content

Commit 9dc7cb4

Browse files
set [Required] for all entities
1 parent 0f601ce commit 9dc7cb4

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

taskmaster-api/Data/Entities/ActivityLogEntity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

taskmaster-api/Data/Entities/AttachmentEntity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

taskmaster-api/Data/Entities/CommentEntity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

taskmaster-api/Data/Entities/NotificationEntity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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()

taskmaster-api/Data/Entities/TaskEntity.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)