<?php
namespace Microservices\www\Config\Common\Private\Route\DataModification;

/**
 * API Route config
 * php version 8.3
 *
 * @category  API_Route_Config
 * @package   Microservices
 * @author    Ramesh N. Jangid (Sharma) <polygon.co.in@gmail.com>
 * @copyright © 2026 Ramesh N. Jangid (Sharma)
 * @license   MIT https://opensource.org/license/mit
 * @link      https://github.com/shames11/Microservices
 * @since     Class available since Release 1.0.0
 */

use Microservices\App\Constant;
use Microservices\App\DatabaseServerDataType;

return [
	'registration' => [
		'{id:int}'  => [
			'dataType' => DatabaseServerDataType::$PrimaryKey,
			'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
				. DIRECTORY_SEPARATOR . 'Registration.php',
		],
	],
	'address' => [
		'{id:int}'  => [
			'dataType' => DatabaseServerDataType::$PrimaryKey,
			'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
				. DIRECTORY_SEPARATOR . 'Address.php',
		],
	],
	'group' => [
		'{customer_single_user_group_id:int}'  => [
			'dataType' => DatabaseServerDataType::$PrimaryKey,
			'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
				. DIRECTORY_SEPARATOR . 'Group.php',
			'approve'  => [
				'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
						. DIRECTORY_SEPARATOR . 'Approve'
					. DIRECTORY_SEPARATOR . 'Group.php',
			],
			'disable'  => [
				'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
						. DIRECTORY_SEPARATOR . 'Disable'
					. DIRECTORY_SEPARATOR . 'Group.php',
			],
			'enable'  => [
				'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
						. DIRECTORY_SEPARATOR . 'Enable'
					. DIRECTORY_SEPARATOR . 'Group.php',
			],
		],
	],
	'customer' => [
		'{customer_id:int}'  => [
			'dataType' => DatabaseServerDataType::$PrimaryKey,
			'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
				. DIRECTORY_SEPARATOR . 'Customer.php',
			'approve'  => [
				'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
						. DIRECTORY_SEPARATOR . 'Approve'
					. DIRECTORY_SEPARATOR . 'Customer.php',
			],
			'disable'  => [
				'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
						. DIRECTORY_SEPARATOR . 'Disable'
					. DIRECTORY_SEPARATOR . 'Customer.php',
			],
			'enable'  => [
				'__FILE__' => $this->httpObject->httpReqData['active']['commonSqlDir']
						. DIRECTORY_SEPARATOR . 'Enable'
					. DIRECTORY_SEPARATOR . 'Customer.php',
			],
		],
	]
];
