refactor: Benutzer-DTOs und -Entitäten an die Datenbankstruktur angepasst

This commit is contained in:
Developer 02
2024-08-15 09:42:36 +02:00
parent 102c01b746
commit 3ed5ca0f00
3 changed files with 4 additions and 2 deletions

View File

@@ -3,5 +3,7 @@
public record BaseUpdateDto()
{
public string ChangedWho { get; set; } = "UNAUTHORIZED";
public DateTime ChangedWhen { get; set; } = DateTime.Now;
}
}

View File

@@ -13,7 +13,6 @@ namespace DigitalData.UserManager.Application.DTOs.User
public string? Comment { get; init; }
public bool? Deleted { get; init; }
public string DateFormat { get; init; } = "dd.MM.yyyy";
public string? ChangedWho { get; init; }
public bool Active { get; init; } = true;
}
}

View File

@@ -13,6 +13,7 @@ namespace DigitalData.UserManager.Application.DTOs.User
string? Comment,
bool? Deleted,
string? DateFormat,
bool? Active
bool? Active,
string AddedWho
) : BaseUpdateDto();
}