namespace AgriculturalPlatform.Api.Models;
/// 农户档案
public class Farmer
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
/// 姓名拼音首字母(如:张三 → ZS,用于首字母检索)
public string PinyinInitials { get; set; } = string.Empty;
/// 身份证号(唯一)
public string IdCard { get; set; } = string.Empty;
public string Gender { get; set; } = string.Empty;
/// 农户类型:农户/个体户/合作社/经营集体/公司
public string FarmerType { get; set; } = "农户";
public string Phone { get; set; } = string.Empty;
/// 所在省
public string Province { get; set; } = string.Empty;
/// 所在县(区)
public string County { get; set; } = string.Empty;
/// 所在乡镇(街道)
public string Township { get; set; } = string.Empty;
/// 所在村/合作社
public string Village { get; set; } = string.Empty;
/// 所在组
public string GroupName { get; set; } = string.Empty;
public string Address { get; set; } = string.Empty;
/// 开户银行
public string BankName { get; set; } = string.Empty;
/// 银行卡号(付款用)
public string BankAccount { get; set; } = string.Empty;
/// 身份证正面附件地址(阿里云 OSS / 本地存储 key 或 URL)
public string IdCardFrontUrl { get; set; } = string.Empty;
/// 身份证反面附件地址(阿里云 OSS / 本地存储 key 或 URL)
public string IdCardBackUrl { get; set; } = string.Empty;
/// 农户头像附件地址(摄像头/手机采集,未来用于人脸识别收购)
public string AvatarUrl { get; set; } = string.Empty;
/// 信用评分(0-100)
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; }
}