Files
AgileConfig/AgileConfig.Server.Data.Entity/ServerNode.cs
T
2020-09-21 14:33:20 +08:00

33 lines
794 B
C#

using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Text;
namespace AgileConfig.Server.Data.Entity
{
public enum NodeStatus
{
Online = 1,
Offline = 0,
}
[Table(Name = "server_node")]
public class ServerNode
{
[Column(Name = "address", DbType = "nvarchar(100)", IsPrimary = true)]
public string Address { get; set; }
[Column(Name = "remark", DbType = "nvarchar(50)")]
public string Remark { get; set; }
[Column(Name = "status")]
public NodeStatus Status { get; set; }
[Column(Name = "last_echo_time")]
public DateTime? LastEchoTime { get; set; }
[Column(Name = "create_time")]
public DateTime CreateTime { get; set; }
}
}