27 lines
898 B
C#
27 lines
898 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace LSFE.Infrastructure.Entities.Maintenance
|
|
{
|
|
[Table("Institutions")]
|
|
public class Institutions
|
|
{
|
|
[Key]
|
|
public int InstitutionId { get; set; }
|
|
public string? InstitutionName { get; set; }
|
|
public int TerritoryId { get; set; }
|
|
[ForeignKey("TerritoryId")]
|
|
public Territories? Territories { get; set; }
|
|
public bool IsActive { get; set; }
|
|
public int InstitutionCategoryId { get; set; }
|
|
[ForeignKey("InstitutionCategoryId")]
|
|
public InstitutionCategory? InstitutionCategory { get; set; }
|
|
public ICollection<Doctor.Doctor> Doctors { get; set; } = new List<Doctor.Doctor>();
|
|
}
|
|
}
|