Adding role creation during startup + minor fixes in tests
This commit is contained in:
@@ -10,11 +10,13 @@ public class Base
|
||||
public string Guid { get; set; }
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTime CreationTime { get; set; }
|
||||
public int CreationUserId { get; set; }
|
||||
public DateTime UpdateTime { get; set; }
|
||||
public int UpdateUserId { get; set; }
|
||||
public DateTime DeletionTime { get; set; }
|
||||
public int DeletionUserId { get; set; }
|
||||
#nullable enable
|
||||
public int? CreationUserId { get; set; }
|
||||
public DateTime? UpdateTime { get; set; }
|
||||
public int? UpdateUserId { get; set; }
|
||||
public DateTime? DeletionTime { get; set; }
|
||||
public int? DeletionUserId { get; set; }
|
||||
#nullable disable
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace BasicDotnetTemplate.MainProject.Models.Database.SqlServer
|
||||
{
|
||||
public class Role : Base
|
||||
{
|
||||
[MaxLength(100)]
|
||||
public required string Name { get; set; }
|
||||
public required bool IsNotEditable { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@ namespace BasicDotnetTemplate.MainProject.Models.Database.SqlServer;
|
||||
|
||||
public class User : Base
|
||||
{
|
||||
[MaxLength(200)]
|
||||
public required string Username { get; set; }
|
||||
[MaxLength(200)]
|
||||
public required string FirstName { get; set; }
|
||||
[MaxLength(200)]
|
||||
|
||||
Reference in New Issue
Block a user