Files
clinicpro/migrations/Version20260609132009.php
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

34 lines
1.9 KiB
PHP

<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20260609132009 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE profiles (id INT AUTO_INCREMENT NOT NULL, uuid VARCHAR(36) NOT NULL, label VARCHAR(255) DEFAULT NULL, family VARCHAR(25) DEFAULT NULL, fathers_name VARCHAR(255) DEFAULT NULL, national_code VARCHAR(10) DEFAULT NULL, national_code_approved TINYINT NOT NULL, gender VARCHAR(10) DEFAULT NULL, date_of_birth INT DEFAULT NULL, blood_type VARCHAR(20) DEFAULT NULL, marital_status VARCHAR(30) DEFAULT NULL, education VARCHAR(100) DEFAULT NULL, job VARCHAR(100) DEFAULT NULL, address LONGTEXT DEFAULT NULL, home_phone VARCHAR(30) DEFAULT NULL, work_phone VARCHAR(30) DEFAULT NULL, insurance_id VARCHAR(50) DEFAULT NULL, basic_insurance_id INT DEFAULT NULL, supplementary_insurance_id INT DEFAULT NULL, other JSON DEFAULT NULL, sharing_with_user TINYINT NOT NULL, description LONGTEXT DEFAULT NULL, created_at INT NOT NULL, updated_at INT NOT NULL, user_id INT NOT NULL, UNIQUE INDEX UNIQ_8B308530D17F50A6 (uuid), INDEX idx_profiles_national_code (national_code), UNIQUE INDEX idx_profiles_user (user_id), PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8mb4');
$this->addSql('ALTER TABLE profiles ADD CONSTRAINT FK_8B308530A76ED395 FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE profiles DROP FOREIGN KEY FK_8B308530A76ED395');
$this->addSql('DROP TABLE profiles');
}
}