PHP Classes

File: Config/Queries/GlobalDB/POST/clients.php

Recommend this page to a friend!
  Classes of Ramesh Narayan Jangid(Sharma)   PHP Microservices Framework   Config/Queries/GlobalDB/POST/clients.php   Download  
File: Config/Queries/GlobalDB/POST/clients.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Microservices Framework
Setup microservices apps with configuration arrays
Author: By
Last change: Refactoring
Refactoring
Date: 7 days ago
Size: 615 bytes
 

Contents

Class file image Download
<?php
namespace Microservices\Config\Queries\GlobalDB\POST;

use
Microservices\App\Constants;
use
Microservices\App\DatabaseDataTypes;
use
Microservices\App\Env;

return [
   
'query' => "INSERT INTO `{$Env::$clients}` SET __SET__",
   
'__SET__' => [
       
'name' => ['payload', 'name'],
       
'comments' => ['payload', 'comments'],
       
'created_by' => ['userDetails', 'user_id'],
       
'created_on' => ['custom', date('Y-m-d H:i:s')],
       
'is_approved' => ['custom', 'No'],
       
'is_disabled' => ['custom', 'No'],
       
'is_deleted' => ['custom', 'No']
    ],
   
'insertId' => 'client_id',
];