using ScadaLink.Commons.Types.Enums;

namespace ScadaLink.Commons.Entities.Templates;

public class TemplateAttribute
{
    public int Id { get; set; }
    public int TemplateId { get; set; }
    public string Name { get; set; }
    public string? Value { get; set; }
    public DataType DataType { get; set; }
    public bool IsLocked { get; set; }
    public string? Description { get; set; }
    public string? DataSourceReference { get; set; }

    public TemplateAttribute(string name)
    {
        Name = name ?? throw new ArgumentNullException(nameof(name));
    }
}
