2019-06-17 00:50:33 +01:00
|
|
|
using System.Collections.Generic;
|
2019-06-30 22:51:08 +01:00
|
|
|
using System.ComponentModel;
|
2019-06-17 00:42:45 +01:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
2020-02-10 02:10:18 +00:00
|
|
|
namespace Marechai.Database.Models
|
2019-06-17 00:42:45 +01:00
|
|
|
{
|
|
|
|
|
public class DocumentCompany : BaseModel<int>
|
|
|
|
|
{
|
|
|
|
|
[Required]
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public int? CompanyId { get; set; }
|
|
|
|
|
|
2019-06-30 22:51:08 +01:00
|
|
|
[DisplayName("Linked company")]
|
|
|
|
|
public virtual Company Company { get; set; }
|
2019-06-17 00:50:33 +01:00
|
|
|
public virtual ICollection<CompaniesByDocument> Documents { get; set; }
|
2019-06-17 03:59:33 +01:00
|
|
|
public virtual ICollection<CompaniesByBook> Books { get; set; }
|
|
|
|
|
public virtual ICollection<CompaniesByMagazine> Magazines { get; set; }
|
2019-06-17 00:42:45 +01:00
|
|
|
}
|
|
|
|
|
}
|