Files
clinicpro/docs/tasks/task-11-insurance/architecture.md
T
hamed de1a78a235 feat: Implement SMS sending functionality with KavehNegar and Rangineh providers
- Add SendSmsMessage class for encapsulating SMS message data.
- Create KavehNegarProvider and RanginehProvider classes implementing SmsProviderInterface for sending SMS.
- Implement SmsLogRepository and SmsTemplateRepository for managing SMS logs and templates.
- Develop SendSmsHandler for handling SMS sending messages.
- Create SmsService to manage SMS dispatching and logging.
- Add UserProfileController for managing user profiles with CRUD operations.
- Implement UserProfile entity and repository for user profile data management.
- Update symfony.lock and bootstrap.php for project dependencies and environment setup.
2026-06-09 22:00:34 +03:30

45 lines
1.1 KiB
Markdown

# معماری — تسک ۱۱: ماژول بیمه
## ساختار فایل‌ها
```
src/Module/Insurance/
├── Controller/
│ └── InsuranceController.php
├── Service/
│ └── InsuranceService.php
├── Repository/
│ └── InsuranceRepository.php
├── Entity/
│ └── Insurance.php
└── DTO/
├── Request/
│ ├── CreateInsuranceRequest.php
│ └── UpdateInsuranceRequest.php
└── Response/
└── InsuranceResponse.php
```
## Entity: Insurance
```php
#[ORM\Entity]
#[ORM\Table(name: 'doctor_insurances')]
class Insurance
{
#[ORM\Id, ORM\GeneratedValue, ORM\Column]
private int $id;
#[ORM\ManyToOne(targetEntity: Doctor::class)]
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
private Doctor $doctor;
#[ORM\ManyToOne(targetEntity: Category::class)]
#[ORM\JoinColumn(nullable: false)]
private Category $insuranceCategory; // از جدول categories
#[ORM\Column(type: 'boolean', default: true)]
private bool $isActive = true;
// TimestampableTrait
}
```