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

@@ -1,18 +1,25 @@
// src/Webshop.Application/DTOs/Users/UserDto.cs
using System;
using System.Collections.Generic;
namespace Webshop.Application.DTOs.Users
{
public class UserDto
{
public string Id { get; set; } = string.Empty;
public string Email { get; set; } = string.Empty;
public string UserName { get; set; } = string.Empty;
public List<string> Roles { get; set; } = new List<string>();
public DateTimeOffset CreatedDate { get; set; }
public bool EmailConfirmed { get; set; }
public string Id { get; set; } = string.Empty; // Vom ApplicationUser.Id
public string Email { get; set; } = string.Empty; // Vom ApplicationUser.Email
public string UserName { get; set; } = string.Empty; // Vom ApplicationUser.UserName
public List<string> Roles { get; set; } = new List<string>(); // Aus Identity-System
public DateTimeOffset CreatedDate { get; set; } // Vom ApplicationUser.CreatedDate
public bool EmailConfirmed { get; set; } // Vom ApplicationUser.EmailConfirmed
// Hinzugef<65>gte Felder
public DateTimeOffset? LastActive { get; set; }
public string FirstName { get; set; } = string.Empty;
public string LastName { get; set; } = string.Empty;
public DateTimeOffset? LastActive { get; set; } // Vom ApplicationUser.LastActive
public string? PhoneNumber { get; set; } // Vom ApplicationUser.PhoneNumber
// << NEU: Customer-Felder, die NICHT in ApplicationUser sind >>
public string FirstName { get; set; } = string.Empty; // Vom Customer.FirstName
public string LastName { get; set; } = string.Empty; // Vom Customer.LastName
public Guid? DefaultShippingAddressId { get; set; } // Vom Customer
public Guid? DefaultBillingAddressId { get; set; } // Vom Customer
}
}