Files
F8WebAI/backend/AgriculturalPlatform.Api/Models/Farmer.cs
T

66 lines
2.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
namespace AgriculturalPlatform.Api.Models;
/// <summary>农户档案</summary>
public class Farmer
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
/// <summary>姓名拼音首字母(如:张三 → ZS,用于首字母检索)</summary>
public string PinyinInitials { get; set; } = string.Empty;
/// <summary>身份证号(唯一)</summary>
public string IdCard { get; set; } = string.Empty;
public string Gender { get; set; } = string.Empty;
/// <summary>农户类型:农户/个体户/合作社/经营集体/公司</summary>
public string FarmerType { get; set; } = "农户";
public string Phone { get; set; } = string.Empty;
/// <summary>所在省</summary>
public string Province { get; set; } = string.Empty;
/// <summary>所在县(区)</summary>
public string County { get; set; } = string.Empty;
/// <summary>所在乡镇(街道)</summary>
public string Township { get; set; } = string.Empty;
/// <summary>所在村/合作社</summary>
public string Village { get; set; } = string.Empty;
/// <summary>所在组</summary>
public string GroupName { get; set; } = string.Empty;
public string Address { get; set; } = string.Empty;
/// <summary>开户银行</summary>
public string BankName { get; set; } = string.Empty;
/// <summary>银行卡号(付款用)</summary>
public string BankAccount { get; set; } = string.Empty;
/// <summary>身份证正面附件地址(阿里云 OSS / 本地存储 key 或 URL</summary>
public string IdCardFrontUrl { get; set; } = string.Empty;
/// <summary>身份证反面附件地址(阿里云 OSS / 本地存储 key 或 URL</summary>
public string IdCardBackUrl { get; set; } = string.Empty;
/// <summary>农户头像附件地址(摄像头/手机采集,未来用于人脸识别收购)</summary>
public string AvatarUrl { get; set; } = string.Empty;
/// <summary>信用评分(0-100</summary>
public int CreditScore { get; set; } = 80;
public FarmerStatus Status { get; set; } = FarmerStatus.Active;
public string Notes { get; set; } = string.Empty;
public DateTime CreatedAt { get; set; } = DateTime.Now;
public DateTime? UpdatedAt { get; set; }
}