Files
kjh2064 ea40e5c002
TaxBaik CI/CD / build-and-deploy (push) Successful in 50s
feat: foundation for CRM and tax accounting specialized features
Domain Layer (SOLID Foundation):
- 5 New Entities: TaxProfile, TaxFilingSchedule, ConsultingActivity, Contract, RevenueTracking
- Client entity extended with tax-specific fields
- Multi-tenant support (company_id)

Database Migration (V015):
- Create tax_profiles table for detailed tax info
- Create tax_filing_schedules for deadline tracking
- Create consulting_activities for CRM (activity history)
- Create contracts for contract management
- Create revenue_tracking for invoice and payment tracking
- Add indexes for performance optimization

Repository Interfaces:
- ITaxProfileRepository (tax profile CRUD + risk analysis)
- ITaxFilingScheduleRepository (schedule management + deadline tracking)
- IConsultingActivityRepository (CRM activity tracking)
- IContractRepository (contract lifecycle + MRR calculation)
- IRevenueTrackingRepository (invoice + payment tracking + revenue analysis)

Architecture:
- Follows Repository Pattern with clear separation of concerns
- SOLID principles: each repo = one responsibility
- Extensible design for multi-tenant support
- Supports specialized tax accounting and CRM workflows
2026-06-28 16:55:14 +09:00

31 lines
1.1 KiB
C#

namespace TaxBaik.Domain.Entities;
public class Client
{
public int Id { get; set; }
public int? CompanyId { get; set; }
public string Name { get; set; } = "";
public string? CompanyName { get; set; }
public string? Phone { get; set; }
public string? Email { get; set; }
public string? ContactPerson { get; set; }
public string? ServiceType { get; set; }
public string? TaxType { get; set; }
public string Status { get; set; } = "active";
public string? Source { get; set; }
public string? Memo { get; set; }
// Tax-specific fields
public string? BusinessRegistrationNumber { get; set; }
public string? BusinessType { get; set; }
public DateTime? EstablishmentDate { get; set; }
public string? AnnualRevenueRange { get; set; }
public int? EmployeeCount { get; set; }
public DateTime? LastTaxFilingDate { get; set; }
public string TaxRiskLevel { get; set; } = "normal";
public DateTime? NextFilingDueDate { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}