Add companies by document.

This commit is contained in:
2019-06-17 00:50:33 +01:00
parent 3c5b73f5cf
commit fa28ee7d4f
8 changed files with 7785 additions and 3 deletions

View File

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