using dodohold.core;
using System.Text.Json.Serialization;

namespace molilian.core
{

    [Table("jd_spread_report")]
    public class JdSpreadReportDTO
    {
        [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 report_date { get; set; } = DateTime.MinValue;


        public int clickNum { get; set; } = 0;
        public decimal cosFee { get; set; } = 0.0m;
        public decimal cosPrice { get; set; } = 0.0m;
        public decimal finishCosFee { get; set; } = 0.0m;
        public decimal finishCosPrice { get; set; } = 0.0m;
        public int finishOrderNum { get; set; } = 0;
        public int orderNum { get; set; } = 0;

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

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