<?php
global $runnerTableSettings;
$runnerTableSettings['tenant_audit_log'] = array(
	'name' => 'tenant_audit_log',
	'shortName' => 'tenant_audit_log',
	'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' => 'tenant_audit_log',
	'afterAddDetail' => 'tenant_audit_log',
	'detailsBadgeColor' => 'cd853f',
	'sql' => 'SELECT
	id,
	company_id,
	platform_user_id,
	suite_code,
	event_action,
	table_name,
	record_id_text,
	old_values_json,
	new_values_json,
	ip_address,
	occurred_at
FROM
	tenant_audit_log',
	'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' => 'tenant_audit_log' 
		),
		'company_id' => array(
			'name' => 'company_id',
			'goodName' => 'company_id',
			'strField' => 'company_id',
			'index' => 2,
			'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' => 'company_uuid' 
				) 
			),
			'tableName' => 'tenant_audit_log',
			'viewLinkTable' => 'company',
			'viewLinkLookup' => true 
		),
		'platform_user_id' => array(
			'name' => 'platform_user_id',
			'goodName' => 'platform_user_id',
			'strField' => 'platform_user_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'platform_user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'suite_code' => array(
			'name' => 'suite_code',
			'goodName' => 'suite_code',
			'strField' => 'suite_code',
			'index' => 4,
			'sqlExpression' => 'suite_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'event_action' => array(
			'name' => 'event_action',
			'goodName' => 'event_action',
			'strField' => 'event_action',
			'index' => 5,
			'sqlExpression' => 'event_action',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'table_name' => array(
			'name' => 'table_name',
			'goodName' => 'table_name',
			'strField' => 'table_name',
			'index' => 6,
			'sqlExpression' => 'table_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'record_id_text' => array(
			'name' => 'record_id_text',
			'goodName' => 'record_id_text',
			'strField' => 'record_id_text',
			'index' => 7,
			'sqlExpression' => 'record_id_text',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'old_values_json' => array(
			'name' => 'old_values_json',
			'goodName' => 'old_values_json',
			'strField' => 'old_values_json',
			'index' => 8,
			'type' => 13,
			'sqlExpression' => 'old_values_json',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'new_values_json' => array(
			'name' => 'new_values_json',
			'goodName' => 'new_values_json',
			'strField' => 'new_values_json',
			'index' => 9,
			'type' => 13,
			'sqlExpression' => 'new_values_json',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'ip_address' => array(
			'name' => 'ip_address',
			'goodName' => 'ip_address',
			'strField' => 'ip_address',
			'index' => 10,
			'sqlExpression' => 'ip_address',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		),
		'occurred_at' => array(
			'name' => 'occurred_at',
			'goodName' => 'occurred_at',
			'strField' => 'occurred_at',
			'index' => 11,
			'type' => 135,
			'sqlExpression' => 'occurred_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_audit_log' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'company',
			'detailsKeys' => array( 
				'company_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	company_id,
	platform_user_id,
	suite_code,
	event_action,
	table_name,
	record_id_text,
	old_values_json,
	new_values_json,
	ip_address,
	occurred_at
FROM
	tenant_audit_log',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'company_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'company_id' 
				),
				'encrypted' => false,
				'columnName' => 'company_id' 
			),
			array(
				'sql' => 'platform_user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'platform_user_id' 
				),
				'encrypted' => false,
				'columnName' => 'platform_user_id' 
			),
			array(
				'sql' => 'suite_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'suite_code' 
				),
				'encrypted' => false,
				'columnName' => 'suite_code' 
			),
			array(
				'sql' => 'event_action',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'event_action' 
				),
				'encrypted' => false,
				'columnName' => 'event_action' 
			),
			array(
				'sql' => 'table_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'table_name' 
				),
				'encrypted' => false,
				'columnName' => 'table_name' 
			),
			array(
				'sql' => 'record_id_text',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'record_id_text' 
				),
				'encrypted' => false,
				'columnName' => 'record_id_text' 
			),
			array(
				'sql' => 'old_values_json',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'old_values_json' 
				),
				'encrypted' => false,
				'columnName' => 'old_values_json' 
			),
			array(
				'sql' => 'new_values_json',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'new_values_json' 
				),
				'encrypted' => false,
				'columnName' => 'new_values_json' 
			),
			array(
				'sql' => 'ip_address',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'ip_address' 
				),
				'encrypted' => false,
				'columnName' => 'ip_address' 
			),
			array(
				'sql' => 'occurred_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_audit_log',
					'name' => 'occurred_at' 
				),
				'encrypted' => false,
				'columnName' => 'occurred_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tenant_audit_log',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tenant_audit_log',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'company_id',
						'platform_user_id',
						'suite_code',
						'event_action',
						'table_name',
						'record_id_text',
						'old_values_json',
						'new_values_json',
						'ip_address',
						'occurred_at' 
					),
					'name' => 'tenant_audit_log' 
				),
				'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 
			),
			array(
				'fieldIndex' => 7,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 8,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 9,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			),
			array(
				'fieldIndex' => 10,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	company_id,
	platform_user_id,
	suite_code,
	event_action,
	table_name,
	record_id_text,
	old_values_json,
	new_values_json,
	ip_address,
	occurred_at',
		'fromListSql' => 'FROM
	tenant_audit_log',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tenant_audit_log',
	'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',
			'company_id',
			'platform_user_id',
			'suite_code',
			'event_action',
			'table_name',
			'record_id_text',
			'old_values_json',
			'new_values_json',
			'ip_address',
			'occurred_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'company_id',
			'platform_user_id',
			'suite_code',
			'event_action',
			'table_name',
			'record_id_text',
			'old_values_json',
			'new_values_json',
			'ip_address',
			'occurred_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['tenant_audit_log'] = array(
	'tableCaption' => 'Tenant Audit Log',
	'fieldLabels' => array(
		'id' => 'Id',
		'company_id' => 'Company Id',
		'platform_user_id' => 'Platform User Id',
		'suite_code' => 'Suite Code',
		'event_action' => 'Event Action',
		'table_name' => 'Table Name',
		'record_id_text' => 'Record Id Text',
		'old_values_json' => 'Old Values Json',
		'new_values_json' => 'New Values Json',
		'ip_address' => 'Ip Address',
		'occurred_at' => 'Occurred At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'company_id' => '',
		'platform_user_id' => '',
		'suite_code' => '',
		'event_action' => '',
		'table_name' => '',
		'record_id_text' => '',
		'old_values_json' => '',
		'new_values_json' => '',
		'ip_address' => '',
		'occurred_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'company_id' => '',
		'platform_user_id' => '',
		'suite_code' => '',
		'event_action' => '',
		'table_name' => '',
		'record_id_text' => '',
		'old_values_json' => '',
		'new_values_json' => '',
		'ip_address' => '',
		'occurred_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>