using Binance.TradeRobot.Model.Base; using FreeSql.DataAnnotations; using System; namespace Binance.TradeRobot.Model.Db { [Table(DisableSyncStructure = true)] public partial class Robot { [Column(IsPrimary = true)] public long Id { get; set; } [Column(InsertValueSql = "getdate()")] public DateTime CreateTime { get; set; } [Column(MapType = (typeof(int)))] public Enums.TradePolicy TradePolicy { get; set; } /// /// 运行时长(s) /// public long RunningTime { get; set; } = 0; [Column(MapType = (typeof(int)))] public Enums.RobotStatus State { get; set; } [Column(StringLength = 50, IsNullable = false)] public string Symbol { get; set; } [Column(MapType = (typeof(int)))] public Enums.BusinessType BusinessType { get; set; } } }