Add people by document.

This commit is contained in:
2019-06-17 00:34:54 +01:00
parent e2c9416bbe
commit 07da0eec75
8 changed files with 7713 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Cicm.Database.Models
{
public class PeopleByDocument : BaseModel<long>
{
public int PersonId { get; set; }
public long DocumentId { get; set; }
[Column(TypeName = "char(3)")]
[Required]
public string RoleId { get; set; }
public virtual DocumentPerson Person { get; set; }
public virtual Document Document { get; set; }
public virtual DocumentRole Role { get; set; }
}
}