2022-07-14 03:47:11 +05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Model.Subsystems
|
|
|
|
|
{
|
|
|
|
|
[Table("t_subsystem"), Comment("Описание подсистем")]
|
|
|
|
|
public class Subsystem : IId
|
|
|
|
|
{
|
|
|
|
|
[Key]
|
|
|
|
|
[Column("id")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("name")]
|
|
|
|
|
[StringLength(255)]
|
|
|
|
|
public string? Name { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column("description")]
|
|
|
|
|
[StringLength(255)]
|
|
|
|
|
public string? Description { get; set; }
|
2022-08-01 13:55:51 +05:00
|
|
|
|
|
|
|
|
|
[InverseProperty(nameof(SubsystemOperationTime.Subsystem))]
|
|
|
|
|
public virtual ICollection<SubsystemOperationTime> SubsystemOperationTimes { get; set; }
|
2022-07-14 03:47:11 +05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|