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.
55 lines
1.2 KiB
55 lines
1.2 KiB
3 years ago
|
using Binance.TradeRobot.Model.Base;
|
||
|
using FreeSql.DataAnnotations;
|
||
|
using System;
|
||
|
|
||
|
namespace Binance.TradeRobot.Model.Db
|
||
|
{
|
||
|
|
||
|
[Table(DisableSyncStructure = true)]
|
||
|
public partial class LoanOrder
|
||
|
{
|
||
|
|
||
|
[Column(IsPrimary = true)]
|
||
|
public long Id { get; set; }
|
||
|
|
||
|
[Column(InsertValueSql = "getdate()")]
|
||
|
public DateTime CreateTime { get; set; }
|
||
|
|
||
|
/// <summary>
|
||
|
/// 交易所Id
|
||
|
/// </summary>
|
||
|
|
||
|
public int ExchangeId { get; set; }
|
||
|
|
||
|
|
||
|
[Column(MapType = typeof(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; }
|
||
|
|
||
|
|
||
|
public DateTime ReturnTime { get; set; }
|
||
|
|
||
|
|
||
|
public long RobotId { get; set; }
|
||
|
|
||
|
|
||
|
public long SpotOrderId { get; set; }
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|