using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace WorkFlow.Domain.Entities;
[Table("TBMWF_PROF_CONTROLS_TF", Schema = "dbo")]
public class PControlsTF
{
[Key]
[Column("GUID", TypeName = "bigint")]
public long Id { get; set; }
[Required]
[Column("OBJ_STATE_ID", TypeName = "bigint")]
public long ObjStateId { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("DIALOG_NO", TypeName = "tinyint")]
public byte? DialogNo { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("ATTR_NAME", TypeName = "nvarchar(100)")]
public string? AttrName { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("CTRL_TYPE", TypeName = "nvarchar(10)")]
public string? CtrlType { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("CAPTION", TypeName = "nvarchar(100)")]
public string? Caption { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("TEXT", TypeName = "nvarchar(500)")]
public string? Text { get; set; }
[Column("ICON", TypeName = "nvarchar(100)")]
public string? Icon { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("MANDATORY", TypeName = "bit")]
public bool? Mandatory { get; set; }
[Column("CHOICE_LIST", TypeName = "nvarchar(max)")]
public string? ChoiceList { get; set; }
///
/// Although this field is marked as nullable in the database schema to allow
/// for greater flexibility during database-level operations or migrations, it is
/// treated as required and not null within the application logic.
/// Validation should be enforced at the application level to ensure a value is provided.
///
[Column("READ_ONLY", TypeName = "bit")]
public bool? ReadOnly { get; set; }
[Column("SEQU", TypeName = "tinyint")]
public byte? Sequ { get; set; }
[Column("ADDED_WHO", TypeName = "nvarchar(100)")]
public required string AddedWho { get; set; }
[Column("ADDED_WHEN", TypeName = "datetime")]
public DateTime AddedWhen { get; set; }
}