2023-09-19 10:01:50 +10:00
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using PARR.DAL.Models.Base;
|
2023-09-01 12:40:41 +10:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Models
|
|
|
|
|
|
{
|
|
|
|
|
|
[Table("Templates")]
|
2023-09-19 10:01:50 +10:00
|
|
|
|
[Index(nameof(Name), IsUnique = true)]
|
2023-09-01 12:40:41 +10:00
|
|
|
|
public class Template : IBase
|
|
|
|
|
|
{
|
|
|
|
|
|
[Key]
|
|
|
|
|
|
public Guid Id { get; set; }
|
2023-09-19 10:01:50 +10:00
|
|
|
|
|
2023-09-01 12:40:41 +10:00
|
|
|
|
public DateTimeOffset DateCreated { get; set; }
|
2023-09-19 10:01:50 +10:00
|
|
|
|
|
2023-09-01 12:40:41 +10:00
|
|
|
|
public DateTimeOffset? DateModified { get; set; }
|
2023-09-15 16:32:46 +10:00
|
|
|
|
|
2023-09-13 14:44:21 +10:00
|
|
|
|
public required string Name { get; set; }
|
2023-09-19 10:01:50 +10:00
|
|
|
|
|
2023-10-05 16:56:02 +10:00
|
|
|
|
public bool IsActiveTemplate { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public bool IsActiveSchedule { get; set; }
|
|
|
|
|
|
|
2023-10-03 14:30:54 +10:00
|
|
|
|
/// <summary>
|
2023-10-09 16:11:27 +10:00
|
|
|
|
/// Номер расписания еспп
|
2023-10-03 14:30:54 +10:00
|
|
|
|
/// </summary>
|
2023-10-09 16:11:27 +10:00
|
|
|
|
public string? ScheduleEsppId { get; set; }
|
2023-09-19 10:01:50 +10:00
|
|
|
|
|
|
|
|
|
|
public Guid ApplicationInWorkId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(ApplicationInWorkId))]
|
|
|
|
|
|
public ApplicationsInWork? ApplicationsInWork { get; set; }
|
2023-09-14 17:00:56 +10:00
|
|
|
|
|
2023-09-19 15:47:50 +10:00
|
|
|
|
|
|
|
|
|
|
public Guid HostId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[ForeignKey(nameof(HostId))]
|
|
|
|
|
|
public Host? Host { get; set; }
|
|
|
|
|
|
|
2023-10-05 12:28:31 +10:00
|
|
|
|
public ICollection<RobotConfiguration> RobotConfigurations { get; set; } = new HashSet<RobotConfiguration>();
|
|
|
|
|
|
|
2023-09-01 12:40:41 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|