using e_suite.Database.Audit.Attributes;
using e_suite.Database.Audit.Models;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace e_suite.Database.Core.Tables.CustomFields;

[DisplayName("Custom Field Text")]
[Table("CustomFieldTexts", Schema = "CustomFields")]
public class CustomFieldText : IId
{
    [Key]
    public long Id { get; set; }

    public long CustomFieldId { get; set; }

    public bool? MultiLine { get; set; }

    [AuditLastUpdated]
    public DateTimeOffset LastUpdated { get; set; }

    [AuditParent]
    [ForeignKey(nameof(CustomFieldId))]
    public virtual CustomField CustomField { get; set; } = null!;
}
