Redo entities and configs, plus dummy aspnet identity config
This commit is contained in:
14
src/Printbase.Domain/Entities/Users/Address.cs
Normal file
14
src/Printbase.Domain/Entities/Users/Address.cs
Normal 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; }
|
||||
}
|
||||
16
src/Printbase.Domain/Entities/Users/ApplicationRole.cs
Normal file
16
src/Printbase.Domain/Entities/Users/ApplicationRole.cs
Normal 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
17
src/Printbase.Domain/Entities/Users/ApplicationUser.cs
Normal file
17
src/Printbase.Domain/Entities/Users/ApplicationUser.cs
Normal 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>();
|
||||
}
|
||||
Reference in New Issue
Block a user