Modified user entity for identity

This commit is contained in:
Veljko Tosic
2026-02-12 19:50:26 +01:00
parent c7e7735075
commit 072d4e3f46
2 changed files with 53 additions and 16 deletions

View File

@@ -1,21 +1,11 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Identity;
namespace AipsCore.Infrastructure.Persistence.User;
public class User
public class User : IdentityUser<Guid>
{
[Key]
public Guid Id { get; set; }
[Required]
[MaxLength(255)]
public string Username { get; set; } = null!;
[Required]
[MaxLength(255)]
public string Email { get; set; } = null!;
public DateTime CreatedAt { get; set; }
public DateTime? DeletedAt { get; set; }