Redo entities and configs, plus dummy aspnet identity config

This commit is contained in:
lumijiez
2025-05-26 13:10:38 +03:00
parent 03daae5b50
commit e8c5fbb5cc
33 changed files with 3986 additions and 5 deletions

View File

@@ -0,0 +1,14 @@
namespace Printbase.Domain.Entities;
public class Address : EntityBase
{
public string UserId { get; set; }
public string AddressType { get; set; }
public string Street { get; set; }
public string City { get; set; }
public string State { get; set; }
public string PostalCode { get; set; }
public string Country { get; set; }
public bool IsDefault { get; set; }
public bool IsActive { get; set; }
}

View File

@@ -0,0 +1,16 @@
using Microsoft.AspNetCore.Identity;
public class ApplicationRole : IdentityRole
{
public string Description { get; set; }
public DateTime CreatedAt { get; set; }
public bool IsActive { get; set; }
public ApplicationRole() : base()
{
}
public ApplicationRole(string roleName) : base(roleName)
{
}
}

View File

@@ -0,0 +1,17 @@
using Microsoft.AspNetCore.Identity;
namespace Printbase.Domain.Entities.Users;
public class ApplicationUser : IdentityUser
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime? DateOfBirth { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime LastLoginAt { get; set; }
public bool IsActive { get; set; }
public string ProfileImageUrl { get; set; }
public virtual ICollection<Address> Addresses { get; set; } = new List<Address>();
public virtual ICollection<Order> Orders { get; set; } = new List<Order>();
}