- Updated package references to newer versions for `DigitalData.Auth.Client`, `DigitalData.Core.API`, `DigitalData.Core.Abstractions`, `DigitalData.Core.Application`, and `DigitalData.EmailProfilerDispatcher.Abstraction`. - Changed `UserManager.Domain` package version from `3.0.2` to `3.1.0` and updated assembly and file versions. - Removed `IUnique<int>` interface implementation from `BaseEntity`, `ClientUser`, `Module`, and `ModuleOfUser`. - Added data annotations to the `User` class for various properties that were previously commented out. - Updated `Microsoft.EntityFrameworkCore` package references in the `Infrastructure` project for `net7.0` and `net9.0`. - Modified solution configuration to change a project's build configuration from Debug to Release.
57 lines
1.5 KiB
C#
57 lines
1.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DigitalData.UserManager.Domain.Entities
|
|
{
|
|
[Table("TBDD_USER_MODULES", Schema = "dbo")]
|
|
public class ModuleOfUser
|
|
{
|
|
[Column("GUID")]
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int Id { get; set; }
|
|
|
|
[Column("USER_ID")]
|
|
[Required]
|
|
public int UserId { get; set; }
|
|
|
|
[Column("MODULE_ID")]
|
|
[Required]
|
|
public int ModuleId { get; set; }
|
|
|
|
[Column("COMMENT")]
|
|
[StringLength(200)]
|
|
public string? Comment { get; set; }
|
|
|
|
[Column("ADDED_WHO")]
|
|
[StringLength(50)]
|
|
public string? AddedWho { get; set; } = "DEFAULT";
|
|
|
|
[Column("CHANGED_WHO")]
|
|
[StringLength(50)]
|
|
public string? ChangedWho { get; set; }
|
|
|
|
[ForeignKey("UserId")]
|
|
public virtual User? User { get; set; }
|
|
|
|
[ForeignKey("ModuleId")]
|
|
public virtual Module? Module { get; set; }
|
|
|
|
#region IGNORED COLUMNS
|
|
//public bool IsAdmin { get; set; }
|
|
|
|
//public bool Right1 { get; set; }
|
|
|
|
//public bool Right2 { get; set; }
|
|
|
|
//public bool Right3 { get; set; }
|
|
|
|
//public bool Right4 { get; set; }
|
|
|
|
//public DateTime? AddedWhen { get; set; }
|
|
|
|
//public DateTime? ChangedWhen { get; set; }
|
|
#endregion
|
|
}
|
|
|
|
} |