This commit is contained in:
Tizian.Breuch
2025-07-29 14:04:35 +02:00
parent 2d6eeb7a50
commit c1ee56c81c
19 changed files with 339 additions and 125 deletions

View 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; }
}
}