try
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user