2019-06-17 00:34:54 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
2020-02-10 02:10:18 +00:00
|
|
|
namespace Marechai.Database.Models
|
2019-06-17 00:34:54 +01:00
|
|
|
{
|
|
|
|
|
public class PeopleByDocument : BaseModel<long>
|
|
|
|
|
{
|
|
|
|
|
public int PersonId { get; set; }
|
|
|
|
|
public long DocumentId { get; set; }
|
2020-02-10 22:44:18 +00:00
|
|
|
[Column(TypeName = "char(3)"), Required]
|
2019-06-17 00:34:54 +01:00
|
|
|
public string RoleId { get; set; }
|
|
|
|
|
|
|
|
|
|
public virtual DocumentPerson Person { get; set; }
|
|
|
|
|
public virtual Document Document { get; set; }
|
|
|
|
|
public virtual DocumentRole Role { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|