using dodohold.core;
using System;
using System.Text.Json.Serialization;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace molilian.core
{
    [Table("tk_settle_bill")]
    public class TkSettleBillDTO
    {

        [Key]
        public int id { get; set; }
        public int accountId { get; set; } = 0;

        public string accountName { get; set; } = string.Empty;

        /// <summary>
        /// 淘客付款时间 
        /// </summary>
        [JsonConverter(typeof(DateTimeConverterUsingDateTimeParse))]
        public DateTime belongTime { get; set; } = DateTime.MinValue;

        public int bizType { get; set; } = 0;
        public string bizTypeDesc { get; set; } = string.Empty;
        public string clearingPeriod { get; set; } = string.Empty;
        public decimal expectedEarnings { get; set; } = 0.0m;
        public int incomeType { get; set; } = 0;
        public string incomeTypeDesc { get; set; } = string.Empty;
        public decimal settleIncomeTotal { get; set; } = 0.0m;
        public string settleStatus { get; set; } = string.Empty;
        public decimal dividedIncome { get; set; } = 0.0m;
        public decimal platformServiceFee { get; set; } = 0.0m;


        [IgnoreUpdate]
        public DateTime create_time { get; set; } = DateTime.Now;

        public DateTime last_time { get; set; } = DateTime.Now;
    }

}
