using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace YLErp.DBModels
{
///
/// 系统用户定制化
///
[Table("sysuser_customize")]
public class SysUserConfig : DBModelBase
{
///
/// 用户ID
///
public int UserId { get; set; }
///
/// 配置类型(0:通用,1:定价模板)(ConsConfigType)
///
public SysUserConfigType ConfigType { get; set; }
///
/// 配置名称
///
[Required]
public string ConfigName { get; set; }
///
/// 配置数据
///
public string ConfigData { get; set; }
///
/// 创建时间
///
public DateTime CreateTime { get; set; }
///
/// 更新数据
///
public DateTime? UpdateTime { get; set; }
}
public enum SysUserConfigType
{
///
/// 通用
///
General = 0,
///
/// 定价模板
///
PricingTemplateV2 = 2,
///
/// 公共定价模板
///
CommonTemplate=3,
///
/// 定价显示配置
///
CalcPriceShowConfig=4,
}
[NotMapped]
public class SysUserConfigDto : SysUserConfig
{
}
}