40 lines
966 B
C#
40 lines
966 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;
|
|
|
|
// <Auto-Generated>
|
|
// This is here so CodeMaid doesn't reorganize this document
|
|
// </Auto-Generated>
|
|
|
|
namespace GWMS.Data.DatabaseModels
|
|
{
|
|
/// <summary>
|
|
/// Tabella User Authorizations
|
|
/// </summary>
|
|
[Table("UserAuth")]
|
|
public class UserAuthModel
|
|
{
|
|
#region Public Properties
|
|
|
|
[Column(Order = 0)]
|
|
public int UserId { get; set; }
|
|
|
|
[Column(Order = 1)]
|
|
public string AuthRole { get; set; } = "";
|
|
|
|
[Column(Order = 2)]
|
|
public int AuthLevel { get; set; } = 0;
|
|
|
|
[ForeignKey("AuthRole")]
|
|
public virtual AuthModel Role { get; set; }
|
|
|
|
[ForeignKey("UserId")]
|
|
public virtual UserModel User { get; set; }
|
|
|
|
#endregion Public Properties
|
|
}
|
|
} |