36 lines
898 B
C#
36 lines
898 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace GWMS.Data.DatabaseModels
|
|
{
|
|
/// <summary>
|
|
/// Tabella User Authorizations
|
|
/// </summary>
|
|
[Table("UserAuth")]
|
|
public class UserAuthModel
|
|
{
|
|
#region Public Properties
|
|
|
|
[Column("AuthLevel", Order = 2)]
|
|
public int AuthLevel { get; set; } = 0;
|
|
|
|
[Column("AuthRole", Order = 1)]
|
|
public string AuthRole { get; set; } = "";
|
|
|
|
[ForeignKey("AuthRole")]
|
|
public virtual AuthModel Role { get; set; }
|
|
|
|
[ForeignKey("UserId")]
|
|
public virtual UserModel User { get; set; }
|
|
|
|
[Column("UserId", Order = 0)]
|
|
public int UserId { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |