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
89 lines
2.5 KiB
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;
|
|
}
|
|
}
|