Login fix and rename columns in DB

This commit is contained in:
2022-12-19 18:36:57 +01:00
parent 120abcaf1d
commit db13b1ab1b
18 changed files with 480 additions and 56 deletions

View File

@@ -8,7 +8,7 @@ namespace WebAPI.Models
[Key]
public Guid Id { get; set; }
[Required]
public string? MPK { get; set; }
public string? Code { get; set; }
[Required]
public float Value { get; set; }
//Description fields
@@ -22,8 +22,10 @@ namespace WebAPI.Models
public bool IsDeleted { get; set; }
#endregion
#region Relations
[Required]
public Guid CreatedById { get; set; }
public User? CreatedBy { get; set; }
[Required]
public Guid ModifiedById { get; set; }
public User? ModifiedBy { get; set; }
#endregion