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.

89 lines
2.5 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;
namespace CK.SCP.Models.ExchangeCenterTables
{
/// <summary>
/// ϵͳ��
/// </summary>
[Description("ϵͳ��")]
public class TEA_SYSTEM : IUpdatableTable, IDomainSite, IEnable
{
[IsDataGridColum(true, 1)]
[Description("ϵͳ����")]
[Index("IndexSystem", Order = 0, IsUnique = true, IsClustered = false)]
[StringLength(50)]
public string SystemName { get; set; }
[IsDataGridColum(true, 2)]
[Description("ϵͳ����")]
[StringLength(50)]
public string SystemDesc { get; set; }
[Description("����")]
[StringLength(50)]
public string Password { get; set; }
[IsDataGridColum(true, 12)]
[Description("�����ʼ�")]
[StringLength(50)]
public string Email { get; set; }
[IsDataGridColum(true, 9)]
[Description("����ˢ��ʱ��")]
[Column(TypeName = "datetime2")]
public DateTime? GetSessionIdTime { get; set; }
[IsDataGridColum(true, 10)]
[Description("����ˢ��IP��ַ")]
[StringLength(50)]
public string ClientIp { get; set; }
[IsDataGridColum(true, 8)]
[Index("IndexUserSessionId", Order = 0, IsUnique = false, IsClustered = false)]
[Description("�Ự����")]
[StringLength(50)]
public string SessionId { get; set; }
[Description("��")]
[StringLength(50)]
public string Domain { get; set; }
[Description("�ص�")]
[StringLength(50)]
public string Site { get; set; }
[Key]
public Guid GUID { get; set; } = Guid.NewGuid();
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UID { get; set; }
[Description("������")]
[StringLength(50)]
public string CreateUser { get; set; } = "Init";
[Description("����ʱ��")]
public DateTime CreateTime { get; set; } = DateTime.Now;
[Description("��ע")]
public string Remark { get; set; }
[Description("�޸���")]
[StringLength(50)]
public string UpdateUser { get; set; }
[Description("�޸�ʱ��")]
public DateTime? UpdateTime { get; set; }
[NotMapped]
public bool IsChecked { get; set; }
public bool Enable { get; set; } = true;
}
}