|
|
@@ -7,34 +7,19 @@ using Microsoft.EntityFrameworkCore;
|
|
|
using Quadarax.Foundation.Core.Reflection;
|
|
|
namespace Quadarax.Application.QLiberace.Base.Entities;
|
|
|
|
|
|
-[Table(Constants.Modules.Base.TblSetting,Schema = Constants.Modules.Base.Schema)]
|
|
|
-[Index("TenantId", "ModuleCode","Code", Name="IDX_CODE_TENANTMODULECODE", IsUnique = true )]
|
|
|
public class Setting : QlbrcEntityTenant, IStructSetting
|
|
|
{
|
|
|
#region *** Properties ***
|
|
|
- [ForeignKey("FK_Setting_Parent_Id")]
|
|
|
public long? ParentId { get; set; }
|
|
|
- [Required]
|
|
|
- [DefaultValue(0)]
|
|
|
public int SequenceNo { get; set; }
|
|
|
- [MaxLength(10)]
|
|
|
- [Required(AllowEmptyStrings = false)]
|
|
|
public string ModuleCode { get; set; } = null!;
|
|
|
|
|
|
- [MaxLength(100)]
|
|
|
- [Required(AllowEmptyStrings = false)]
|
|
|
public string Code { get; set; } = null!;
|
|
|
|
|
|
- [MaxLength(500)]
|
|
|
public string? Description { get; set; }
|
|
|
|
|
|
- [MaxLength(500)]
|
|
|
- [Required(AllowEmptyStrings = false)]
|
|
|
public string ValueTypeQualified { get; set; } = null!;
|
|
|
- [MaxLength(5000)]
|
|
|
public string? Value { get; set; }
|
|
|
- [Required]
|
|
|
- [DefaultValue(false)]
|
|
|
public bool IsEnabled { get; set; }
|
|
|
#endregion
|
|
|
|