forked from ddrilling/AsbCloudServer
23 lines
583 B
C#
23 lines
583 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; }
|
|
|
|
}
|
|
}
|