//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//     运行时版本:4.0.30319.42000
//     Website: http://www.freesql.net
//     对此文件的更改可能会导致不正确的行为，并且如果
//     重新生成代码，这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
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 XHD.Core.Models
{

    [JsonObject(MemberSerialization.OptIn)]
    public partial class Finance_Invoice
    {

        [JsonProperty, Column(DbType = "varchar(50)", IsPrimary = true)]
        public string id { get; set; } = string.Empty;

        [JsonProperty, Column(DbType = "varchar(50)")]
        public string create_id { get; set; } = string.Empty;

        [JsonProperty]
        public DateTime? create_time { get; set; }

        [JsonProperty, Column(DbType = "varchar(50)")]
        public string emp_id { get; set; } = string.Empty;

        [JsonProperty, Column(DbType = "decimal(18,2)")]
        public decimal? invoice_amount { get; set; }

        [JsonProperty, Column(DbType = "varchar(MAX)")]
        public string invoice_content { get; set; } = string.Empty;

        [JsonProperty]
        public DateTime? invoice_date { get; set; }

        [JsonProperty, Column(DbType = "varchar(250)")]
        public string invoice_num { get; set; } = string.Empty;

        [JsonProperty, Column(DbType = "varchar(50)")]
        public string invoice_type_id { get; set; } = string.Empty;

        [JsonProperty, Column(DbType = "varchar(50)")]
        public string order_id { get; set; } = string.Empty;

        [JsonProperty, Column(DbType = "varchar(500)")]
        public string remarks { get; set; } = string.Empty;

        [JsonProperty]
        public Sale_order Order { get; set; }

        [JsonProperty]
        public Sys_Param InvoiceType { get; set; } 

        [JsonProperty]
        public hr_employee employee { get; set; }

        [JsonProperty]
        public hr_employee creater { get; set; }

    }

}
