Files
luminous-sales/LuminousSales/Models/Models/User.cs
thermalthrottle 7aac7f999f Models Updated
2021-03-18 13:08:18 +02:00

26 lines
674 B
C#

using Data.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Models.Models
{
public class User : BaseUserManagmentEntity
{
public User() : base() { }
public User(string Name, string Password, int RoleId) : base(Name)
{
this.Password = Password;
this.RoleId = RoleId;
}
[Required]
public string Password { get; set; }
[Required]
[ForeignKey("Role")]
public int RoleId { get; set; }
public virtual Role Role { get; set; }
}
}