namespace AgriculturalPlatform.Api.Models;
/// 组织(收购公司 / 收购站 / 收购个体)
public class Organization
{
public int Id { get; set; }
public OrgType Type { get; set; }
/// 组织名称
public string Name { get; set; } = string.Empty;
/// 上级组织(收购站归属的公司)
public int? ParentId { get; set; }
public Organization? Parent { get; set; }
public string ContactPerson { get; set; } = string.Empty;
public string Phone { get; set; } = string.Empty;
public string Address { get; set; } = string.Empty;
/// 税号(公司/个体开票用)
public string TaxNo { get; set; } = string.Empty;
public bool IsActive { get; set; } = true;
public DateTime CreatedAt { get; set; } = DateTime.Now;
}