Started to create authorization portion pt.2
This commit is contained in:
19
BrightGlimmer.Domain/Auth/User.cs
Normal file
19
BrightGlimmer.Domain/Auth/User.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain.Auth
|
||||
{
|
||||
public class User : Entity
|
||||
{
|
||||
public string Username { get; private set; }
|
||||
public string Email { get; private set; }
|
||||
public string FirstName { get; private set; }
|
||||
public string MiddleName { get; private set; }
|
||||
public string LastName { get; private set; }
|
||||
public string PasswordHash { get; private set; }
|
||||
public bool EmailConfirmed { get; private set; }
|
||||
public bool AccountLocked { get; private set; }
|
||||
public int RetryAttempts { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,7 @@ namespace BrightGlimmer.Domain
|
||||
IsDeleted = true;
|
||||
}
|
||||
|
||||
/* TODO: Currently not working when entities modified */
|
||||
protected void MarkModified()
|
||||
{
|
||||
ModifiedDate = DateTime.UtcNow;
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
[Table("Addresses")]
|
||||
public class Address : Entity
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
[Table("AssignedCourses")]
|
||||
public class AssignedCourse : Entity
|
||||
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
[Table("Courses")]
|
||||
public class Course : Entity
|
||||
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
[Table("Phones")]
|
||||
public class Phone : Entity
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
public enum PhoneType
|
||||
{
|
||||
@@ -5,7 +5,7 @@ using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
namespace BrightGlimmer.Domain.Service
|
||||
{
|
||||
[Table("Students")]
|
||||
public class Student : Entity
|
||||
Reference in New Issue
Block a user