|
|
|
using Binance.TradeRobot.Model.Base;
|
|
|
|
using FreeSql.DataAnnotations;
|
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace Binance.TradeRobot.Model.Db
|
|
|
|
{
|
|
|
|
|
|
|
|
[Table(Name = "loanorder", DisableSyncStructure = true)]
|
|
|
|
public partial class LoanOrder
|
|
|
|
{
|
|
|
|
|
|
|
|
[Column(DbType = "bigint", IsPrimary = true)]
|
|
|
|
public long Id { get; set; }
|
|
|
|
|
|
|
|
[Column(DbType = "datetime")]
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 交易所Id
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "int", MapType = typeof(int))]
|
|
|
|
public Enums.Exchange ExchangeId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
[Column(MapType = typeof(int), DbType = "int")]
|
|
|
|
public Enums.LoanState LoadState { get; set; } = Enums.LoanState.Loaning;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 借币金额
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "decimal(18,8)")]
|
|
|
|
public decimal LoanAmount { get; set; } = 0.0M;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 借币利息
|
|
|
|
/// </summary>
|
|
|
|
[Column(DbType = "decimal(18,8)")]
|
|
|
|
public decimal LoanFee { get; set; } = 0.0M;
|
|
|
|
|
|
|
|
[Column(StringLength = 50, IsNullable = false)]
|
|
|
|
public string LoanOrderId { get; set; }
|
|
|
|
|
|
|
|
[Column(DbType = "datetime")]
|
|
|
|
public DateTime ReturnTime { get; set; }
|
|
|
|
|
|
|
|
[Column(DbType = "bigint")]
|
|
|
|
public long RobotId { get; set; }
|
|
|
|
|
|
|
|
[Column(DbType = "bigint")]
|
|
|
|
public long SpotOrderId { get; set; }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|