feat(migrations): add ownership fields to doctors table for IRIMC import
- Introduced new columns: owner_status, source, source_ref, managed_by, and claimed_at to the doctors table. - Created indexes for owner_status and source to optimize queries related to unclaimed doctors. feat(auth): implement SystemOwnerCommand for managing system-owner user - Added command to create, activate, and deactivate a system-owner user for IRIMC crawler. - Ensured the user has ROLE_ADMIN to access import endpoints. - Handled password setting and user status management within the command.
This commit is contained in:
@@ -102,6 +102,7 @@ class ErrorCodes
|
||||
public const ERR_GONE = 'ERR_GONE';
|
||||
public const ERR_MOVED = 'ERR_MOVED';
|
||||
public const ERR_ACCESS_DENIED = 'ERR_ACCESS_DENIED';
|
||||
public const ERR_METHOD_NOT_ALLOWED_001 = 'ERR_METHOD_NOT_ALLOWED_001';
|
||||
|
||||
public static function message(string $code): string
|
||||
{
|
||||
@@ -162,6 +163,7 @@ class ErrorCodes
|
||||
self::ERR_GONE => 'این منبع دیگر در دسترس نیست',
|
||||
self::ERR_MOVED => 'این منبع منتقل شده است',
|
||||
self::ERR_ACCESS_DENIED => 'دسترسی مجاز نیست',
|
||||
self::ERR_METHOD_NOT_ALLOWED_001 => 'متد درخواستی برای این آدرس مجاز نیست',
|
||||
default => 'خطای ناشناخته',
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user