DD.WellWorkover.Cloud/AsbCloudDb/Model/Subsystem.cs

23 lines
580 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace AsbCloudDb.Model
{
[Table("t_subsystem"), Comment("Описание подсистем")]
public class Subsystem : IId
{
[Column("id"), Key]
public int Id { get; set; }
[Column("name")]
[StringLength(255)]
public string Name { get; set; } = null!;
[Column("description")]
[StringLength(255)]
public string? Description { get; set; }
}
}