You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
1.7 KiB

4 years ago
using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using CK.SCP.Models.Attributes;
using CK.SCP.Models.Base;
using CK.SCP.Models.Enums;
namespace CK.SCP.Models.ExchangeCenterTables
{
[Description("ϵͳ������")]
public class TEA_CONFIG : ITable, IEnable
{
[IsDataGridColum(true, 1)]
[Index("IndexConfig", Order = 0, IsUnique = true, IsClustered = false)]
[Description("��������")]
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
public string ConfigName { get; set; }
[IsDataGridColum(true, 2)]
[Required(AllowEmptyStrings = true)]
[Description("����ֵ")]
[StringLength(50)]
public string ConfigValue { get; set; }
[IsDataGridColum(true, 3)]
[Description("����˵��")]
[StringLength(500)]
public string ConfigDesc { get; set; }
[IsDataGridColum(true, 4)]
[Required(AllowEmptyStrings = true)]
[Description("��������")]
public EnumConfigType ConfigType { get; set; } = EnumConfigType.STRING;
#region �����ֶ�
[Description("������")]
[Required(AllowEmptyStrings = true)]
[StringLength(50)]
public string CreateUser { get; set; } = "";
[Description("����ʱ��")]
public DateTime CreateTime { get; set; } = DateTime.Now;
[Description("��ע")]
public string Remark { get; set; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UID { get; set; }
[Key]
public Guid GUID { get; set; } = Guid.NewGuid();
#endregion
public bool Enable { get; set; }
}
}