try
This commit is contained in:
16
Webshop.Domain/Identity/ApplicationUser.cs
Normal file
16
Webshop.Domain/Identity/ApplicationUser.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
// src/Webshop.Domain/Identity/ApplicationUser.cs
|
||||
using Microsoft.AspNetCore.Identity;
|
||||
using System;
|
||||
|
||||
namespace Webshop.Domain.Identity // KORREKTER NAMESPACE
|
||||
{
|
||||
public class ApplicationUser : IdentityUser
|
||||
{
|
||||
public DateTimeOffset CreatedDate { get; set; } = DateTimeOffset.UtcNow; // Setzt Standardwert
|
||||
public DateTimeOffset? LastActive { get; set; }
|
||||
|
||||
// Navigation Property zur Customer-Entität (One-to-One)
|
||||
// Customer ist nullable, falls nicht jeder ApplicationUser ein Customer-Profil hat
|
||||
public virtual Entities.Customer? Customer { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user