Files
ShopSolution-backend/Webshop.Application/DTOs/Users/UserDto.cs
Tizian.Breuch c1ee56c81c try
2025-07-29 14:04:35 +02:00

25 lines
1.3 KiB
C#

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