2024-07-04 11:02:45 +05:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
2022-07-14 03:47:11 +05:00
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2023-12-16 12:39:41 +05:00
|
|
|
using Microsoft.EntityFrameworkCore;
|
2022-07-14 03:47:11 +05:00
|
|
|
|
2023-12-16 12:39:41 +05:00
|
|
|
namespace AsbCloudDb.Model
|
2022-07-14 03:47:11 +05:00
|
|
|
{
|
|
|
|
[Table("t_subsystem"), Comment("Описание подсистем")]
|
|
|
|
public class Subsystem : IId
|
2022-09-07 18:01:39 +05:00
|
|
|
{
|
|
|
|
[Column("id"), Key]
|
2022-07-14 03:47:11 +05:00
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
[Column("name")]
|
|
|
|
[StringLength(255)]
|
2022-08-08 16:53:01 +05:00
|
|
|
public string Name { get; set; } = null!;
|
2022-07-14 03:47:11 +05:00
|
|
|
|
|
|
|
[Column("description")]
|
|
|
|
[StringLength(255)]
|
|
|
|
public string? Description { get; set; }
|
2022-08-08 16:53:01 +05:00
|
|
|
|
2022-09-07 18:01:39 +05:00
|
|
|
}
|
2022-07-14 03:47:11 +05:00
|
|
|
}
|