10 changed files with 85 additions and 10 deletions
@ -0,0 +1,32 @@ |
|||
using FreeSql.DatabaseModel;using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Threading.Tasks; |
|||
using Newtonsoft.Json; |
|||
using FreeSql.DataAnnotations; |
|||
|
|||
namespace Binance.TradeRobot.Model.Db { |
|||
|
|||
[JsonObject(MemberSerialization.OptIn), Table(Name = "exchangeaccount", DisableSyncStructure = true)] |
|||
public partial class Exchangeaccount { |
|||
|
|||
[JsonProperty, Column(DbType = "bigint", IsPrimary = true)] |
|||
public long Id { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "int")] |
|||
public int? BusinessType { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "datetime")] |
|||
public DateTime? CreateTime { get; set; } |
|||
|
|||
[JsonProperty, Column(StringLength = 50)] |
|||
public string LoginName { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "int")] |
|||
public int? TradePolicy { get; set; } |
|||
|
|||
} |
|||
|
|||
} |
@ -0,0 +1,35 @@ |
|||
using FreeSql.DatabaseModel;using System; |
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Reflection; |
|||
using System.Threading.Tasks; |
|||
using Newtonsoft.Json; |
|||
using FreeSql.DataAnnotations; |
|||
|
|||
namespace Binance.TradeRobot.Model.Db { |
|||
|
|||
[JsonObject(MemberSerialization.OptIn), Table(Name = "exchangeapikey", DisableSyncStructure = true)] |
|||
public partial class Exchangeapikey { |
|||
|
|||
[JsonProperty, Column(DbType = "bigint", IsPrimary = true)] |
|||
public long Id { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "bigint")] |
|||
public long AccountId { get; set; } |
|||
|
|||
[JsonProperty, Column(StringLength = 100, IsNullable = false)] |
|||
public string APIKey { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "datetime")] |
|||
public DateTime CreateTime { get; set; } |
|||
|
|||
[JsonProperty, Column(DbType = "bigint")] |
|||
public long? RobotId { get; set; } |
|||
|
|||
[JsonProperty, Column(StringLength = 100, IsNullable = false)] |
|||
public string SecretKey { get; set; } |
|||
|
|||
} |
|||
|
|||
} |
@ -1 +1 @@ |
|||
FreeSql.Generator -Razor 1 -NameOptions 1,0,0,0 -NameSpace Binance.TradeRobot.Model.Db -DB "SqlServer,data source=18.179.56.42;initial catalog=Binance.TradeRobot.DB;User Id=sa;Password=kaicn1132+-;TrustServerCertificate=true;pooling=true;max pool size=2" -FileName "{name}.cs" |
|||
FreeSql.Generator -Razor 1 -NameOptions 1,0,0,0 -NameSpace Binance.TradeRobot.Model.Db -DB "MySql,data source=47.245.58.112;port=3306;user id=sa;password=rYn6re2AKhcDWcBi;initial catalog=tradedb;charset=utf8;sslmode=none;max pool size=2" -FileName "{name}.cs" |
|||
|
Loading…
Reference in new issue