PHP Classes

File: Config/Sql/Private/GlobalDB/POST/groups.php

Recommend this page to a friend!
  Packages of Ramesh Narayan Jangid (Sharma)   Open Swoole Microservices   Config/Sql/Private/GlobalDB/POST/groups.php   Download  
File: Config/Sql/Private/GlobalDB/POST/groups.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Open Swoole Microservices
Implement microservices using Open Swoole
Author: By
Last change: Refactoring
Date: 6 days ago
Size: 2,187 bytes
 

Contents

Class file image Download
<?php

/**
 * API Query config
 * php version 8.3
 *
 * @category API_Query_Config
 * @package Openswoole-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/polygoncoin/Openswoole-Microservices
 * @since Class available since Release 1.0.0
 */

use Microservices\App\Constant;
use
Microservices\App\DatabaseServerDataType;
use
Microservices\App\Env;
use
Microservices\DatabaseTable;

return [
   
'__SQL__' => "INSERT INTO `{$this->httpObject->httpRequestObject->activeRequestData['customerData']['customer_user_group_table']}` SET __SET__",
   
'__SET__' => [
        [
           
'column' => 'name',
           
'activeRequestDataKey' => 'payload',
           
'activeRequestDataKeySubKey' => 'name'
       
],
        [
           
'column' => DatabaseTable::$customerPrimaryKey,
           
'activeRequestDataKey' => 'payload',
           
'activeRequestDataKeySubKey' => 'customer_id',
           
'dataType' => DatabaseServerDataType::$INT
       
],
        [
           
'column' => 'connection_id',
           
'activeRequestDataKey' => 'payload',
           
'activeRequestDataKeySubKey' => 'connection_id',
           
'dataType' => DatabaseServerDataType::$INT
       
],
        [
           
'column' => 'customer_allowed_cidr',
           
'activeRequestDataKey' => 'payload',
           
'activeRequestDataKeySubKey' => 'allowed_cidr'
       
],
        [
           
'column' => 'comments',
           
'activeRequestDataKey' => 'payload',
           
'activeRequestDataKeySubKey' => 'comments'
       
],
        [
           
'column' => 'created_by',
           
'activeRequestDataKey' => 'userData',
           
'activeRequestDataKeySubKey' => DatabaseTable::$customerUserPrimaryKey
       
],
        [
           
'column' => 'created_on',
           
'activeRequestDataKey' => 'custom',
           
'activeRequestDataKeySubKey' => date(format: 'Y-m-d H:i:s')
        ],
        [
           
'column' => 'is_approved',
           
'activeRequestDataKey' => 'custom',
           
'activeRequestDataKeySubKey' => Constant::$NO
       
],
        [
           
'column' => 'is_disabled',
           
'activeRequestDataKey' => 'custom',
           
'activeRequestDataKeySubKey' => Constant::$NO
       
],
        [
           
'column' => 'is_deleted',
           
'activeRequestDataKey' => 'custom',
           
'activeRequestDataKeySubKey' => Constant::$NO
       
]
    ],
   
'__INSERT-ID__' => 'group:id',
];