<?php
global $runnerTableSettings;
$runnerTableSettings['company_user_access'] = array(
	'name' => 'company_user_access',
	'shortName' => 'company_user_access',
	'pagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'company_user_access',
	'afterAddDetail' => 'company_user_access',
	'detailsBadgeColor' => 'd2691e',
	'sql' => 'SELECT
	id,
	platform_user_id,
	company_id,
	branch_id,
	access_status,
	is_default_company,
	created_at
FROM
	company_user_access',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 3,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'company_user_access' 
		),
		'platform_user_id' => array(
			'name' => 'platform_user_id',
			'goodName' => 'platform_user_id',
			'strField' => 'platform_user_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'platform_user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'company_user_access' 
		),
		'company_id' => array(
			'name' => 'company_id',
			'goodName' => 'company_id',
			'strField' => 'company_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'company_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'company',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'registered_name',
					'lookupOrderBy' => 'registered_name' 
				) 
			),
			'tableName' => 'company_user_access',
			'viewLinkTable' => 'company',
			'viewLinkLookup' => true 
		),
		'branch_id' => array(
			'name' => 'branch_id',
			'goodName' => 'branch_id',
			'strField' => 'branch_id',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'branch_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'vw_active_branch',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'branch_name',
					'lookupDependent' => true,
					'lookupDependentFields' => array( 
						array(
							'masterField' => 'company_id',
							'lookupField' => 'company_id' 
						) 
					) 
				) 
			),
			'tableName' => 'company_user_access',
			'viewLinkTable' => 'branch',
			'viewLinkLookup' => false 
		),
		'access_status' => array(
			'name' => 'access_status',
			'goodName' => 'access_status',
			'strField' => 'access_status',
			'index' => 5,
			'sqlExpression' => 'access_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'company_user_access' 
		),
		'is_default_company' => array(
			'name' => 'is_default_company',
			'goodName' => 'is_default_company',
			'strField' => 'is_default_company',
			'index' => 6,
			'type' => 2,
			'sqlExpression' => 'is_default_company',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'company_user_access' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 7,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'company_user_access' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'company',
			'detailsKeys' => array( 
				'company_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'branch',
			'detailsKeys' => array( 
				'branch_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	platform_user_id,
	company_id,
	branch_id,
	access_status,
	is_default_company,
	created_at
FROM
	company_user_access',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'platform_user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'platform_user_id' 
				),
				'encrypted' => false,
				'columnName' => 'platform_user_id' 
			),
			array(
				'sql' => 'company_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'company_id' 
				),
				'encrypted' => false,
				'columnName' => 'company_id' 
			),
			array(
				'sql' => 'branch_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'branch_id' 
				),
				'encrypted' => false,
				'columnName' => 'branch_id' 
			),
			array(
				'sql' => 'access_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'access_status' 
				),
				'encrypted' => false,
				'columnName' => 'access_status' 
			),
			array(
				'sql' => 'is_default_company',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'is_default_company' 
				),
				'encrypted' => false,
				'columnName' => 'is_default_company' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'company_user_access',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'company_user_access',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'company_user_access',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'platform_user_id',
						'company_id',
						'branch_id',
						'access_status',
						'is_default_company',
						'created_at' 
					),
					'name' => 'company_user_access' 
				),
				'joinOn' => array(
					'sql' => '',
					'parsed' => false,
					'type' => 'LogicalExpression',
					'contained' => array( 
						 
					),
					'unionType' => 0,
					'column' => null 
				),
				'joinList' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'JoinOn',
					'field1' => array( 
						 
					),
					'field2' => array( 
						 
					) 
				),
				'link' => 0 
			) 
		),
		'where' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'groupBy' => array( 
			 
		),
		'having' => array(
			'sql' => '',
			'parsed' => false,
			'type' => 'LogicalExpression',
			'contained' => array( 
				 
			),
			'unionType' => 0,
			'column' => null 
		),
		'orderBy' => array( 
			 
		),
		'colsIndex' => array( 
			array(
				'fieldIndex' => 0,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 1,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 2,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 3,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 4,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 5,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 6,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	platform_user_id,
	company_id,
	branch_id,
	access_status,
	is_default_company,
	created_at',
		'fromListSql' => 'FROM
	company_user_access',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'company_user_access',
	'originalPagesByType' => array(
		'add' => array( 
			'add' 
		),
		'export' => array( 
			'export' 
		),
		'import' => array( 
			'import' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'add' => 'add',
		'export' => 'export',
		'import' => 'import',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'platform_user_id',
			'company_id',
			'branch_id',
			'access_status',
			'is_default_company',
			'created_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'platform_user_id',
			'company_id',
			'branch_id',
			'access_status',
			'is_default_company',
			'created_at' 
		) 
	),
	'connId' => 'conn1',
	'clickActions' => array(
		'row' => array(
			'action' => 'noaction' 
		),
		'fields' => array(
			 
		) 
	),
	'geoCoding' => array(
		'enabled' => false,
		'latField' => '',
		'lonField' => '',
		'addressFields' => array( 
			 
		) 
	),
	'whereTabs' => array( 
		 
	),
	'labels' => array(
		 
	),
	'chartSettings' => array(
		 
	),
	'dataSourceOperations' => array(
		 
	),
	'calendarSettings' => array(
		'categoryColors' => array( 
			 
		) 
	),
	'ganttSettings' => array(
		'categoryColors' => array( 
			 
		) 
	) 
);

global $runnerTableLabels;
if( mlang_getcurrentlang() === 'English' ) {
	$runnerTableLabels['company_user_access'] = array(
	'tableCaption' => 'Company User Access',
	'fieldLabels' => array(
		'id' => 'Id',
		'platform_user_id' => 'Platform User Id',
		'company_id' => 'Company Id',
		'branch_id' => 'Branch Id',
		'access_status' => 'Access Status',
		'is_default_company' => 'Is Default Company',
		'created_at' => 'Created At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'platform_user_id' => '',
		'company_id' => '',
		'branch_id' => '',
		'access_status' => '',
		'is_default_company' => '',
		'created_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'platform_user_id' => '',
		'company_id' => '',
		'branch_id' => '',
		'access_status' => '',
		'is_default_company' => '',
		'created_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>