Added Authentication with user-auth and apikey-auth
This commit is contained in:
@@ -22,4 +22,11 @@ public class User
|
||||
[Required]
|
||||
[DataType(DataType.Password)]
|
||||
public required string Password { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
|
||||
// Navigation Property: Ein User kann mehrere API-Keys haben
|
||||
public ICollection<ApiKey> ApiKeys { get; set; } = new List<ApiKey>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user