using FreeSql.DataAnnotations;
using System;

namespace Binance.TradeRobot.Model.Db
{
    [Table(Name = "exchangeapikey", DisableSyncStructure = true)]
    public partial class ExchangeAPIKey
    {

        public ExchangeAPIKey()
        {
            CreateTime = DateTime.Now;
        }

        [Column(DbType = "bigint", IsPrimary = true)]
        public long Id { get; set; }

        /// <summary>
        ///  ½»Ò×ËùÕ˺ÅUID
        /// </summary>
        [Column(DbType = "bigint")]
        public long AccountId { get; set; }

        [Column(StringLength = 100, IsNullable = false)]
        public string APIKey { get; set; }

        [Column(DbType = "datetime")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// ¹ØÁª»úÆ÷ÈËId
        /// </summary>
        [Column(DbType = "bigint")]
        public long? RobotId { get; set; }

        [Column(StringLength = 100, IsNullable = false)]
        public string SecretKey { get; set; }

    }

}