<?php
global $runnerTableSettings;
$runnerTableSettings['tenant_database'] = array(
	'name' => 'tenant_database',
	'shortName' => 'tenant_database',
	'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_database',
	'afterAddDetail' => 'tenant_database',
	'detailsBadgeColor' => 'd2691e',
	'sql' => 'SELECT
	id,
	tenant_id,
	cluster_id,
	database_name,
	database_username,
	credential_secret_ref,
	schema_version,
	database_status,
	last_health_check_at,
	last_backup_at,
	created_at,
	updated_at
FROM
	tenant_database',
	'keyFields' => array( 
		'id' 
	),
	'deviceHideFields' => array(
		'1' => array( 
			 
		),
		'5' => array( 
			 
		) 
	),
	'fields' => array(
		'id' => array(
			'name' => 'id',
			'goodName' => 'id',
			'strField' => 'id',
			'index' => 1,
			'type' => 20,
			'autoinc' => true,
			'sqlExpression' => 'id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'tenant_id' => array(
			'name' => 'tenant_id',
			'goodName' => 'tenant_id',
			'strField' => 'tenant_id',
			'index' => 2,
			'type' => 20,
			'sqlExpression' => 'tenant_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'tenant',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'tenant_uuid' 
				) 
			),
			'tableName' => 'tenant_database',
			'viewLinkTable' => 'tenant',
			'viewLinkLookup' => true 
		),
		'cluster_id' => array(
			'name' => 'cluster_id',
			'goodName' => 'cluster_id',
			'strField' => 'cluster_id',
			'index' => 3,
			'type' => 20,
			'sqlExpression' => 'cluster_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupTable' => 'database_cluster',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'cluster_code' 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'database_name' => array(
			'name' => 'database_name',
			'goodName' => 'database_name',
			'strField' => 'database_name',
			'index' => 4,
			'sqlExpression' => 'database_name',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'database_username' => array(
			'name' => 'database_username',
			'goodName' => 'database_username',
			'strField' => 'database_username',
			'index' => 5,
			'sqlExpression' => 'database_username',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'credential_secret_ref' => array(
			'name' => 'credential_secret_ref',
			'goodName' => 'credential_secret_ref',
			'strField' => 'credential_secret_ref',
			'index' => 6,
			'sqlExpression' => 'credential_secret_ref',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'schema_version' => array(
			'name' => 'schema_version',
			'goodName' => 'schema_version',
			'strField' => 'schema_version',
			'index' => 7,
			'sqlExpression' => 'schema_version',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'database_status' => array(
			'name' => 'database_status',
			'goodName' => 'database_status',
			'strField' => 'database_status',
			'index' => 8,
			'sqlExpression' => 'database_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'last_health_check_at' => array(
			'name' => 'last_health_check_at',
			'goodName' => 'last_health_check_at',
			'strField' => 'last_health_check_at',
			'index' => 9,
			'type' => 135,
			'sqlExpression' => 'last_health_check_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'last_backup_at' => array(
			'name' => 'last_backup_at',
			'goodName' => 'last_backup_at',
			'strField' => 'last_backup_at',
			'index' => 10,
			'type' => 135,
			'sqlExpression' => 'last_backup_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 11,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_database' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 12,
			'type' => 135,
			'sqlExpression' => 'updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_database' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'tenant',
			'detailsKeys' => array( 
				'tenant_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	tenant_id,
	cluster_id,
	database_name,
	database_username,
	credential_secret_ref,
	schema_version,
	database_status,
	last_health_check_at,
	last_backup_at,
	created_at,
	updated_at
FROM
	tenant_database',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'tenant_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'tenant_id' 
				),
				'encrypted' => false,
				'columnName' => 'tenant_id' 
			),
			array(
				'sql' => 'cluster_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'cluster_id' 
				),
				'encrypted' => false,
				'columnName' => 'cluster_id' 
			),
			array(
				'sql' => 'database_name',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'database_name' 
				),
				'encrypted' => false,
				'columnName' => 'database_name' 
			),
			array(
				'sql' => 'database_username',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'database_username' 
				),
				'encrypted' => false,
				'columnName' => 'database_username' 
			),
			array(
				'sql' => 'credential_secret_ref',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'credential_secret_ref' 
				),
				'encrypted' => false,
				'columnName' => 'credential_secret_ref' 
			),
			array(
				'sql' => 'schema_version',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'schema_version' 
				),
				'encrypted' => false,
				'columnName' => 'schema_version' 
			),
			array(
				'sql' => 'database_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'database_status' 
				),
				'encrypted' => false,
				'columnName' => 'database_status' 
			),
			array(
				'sql' => 'last_health_check_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'last_health_check_at' 
				),
				'encrypted' => false,
				'columnName' => 'last_health_check_at' 
			),
			array(
				'sql' => 'last_backup_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'last_backup_at' 
				),
				'encrypted' => false,
				'columnName' => 'last_backup_at' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'created_at' 
				),
				'encrypted' => false,
				'columnName' => 'created_at' 
			),
			array(
				'sql' => 'updated_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_database',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tenant_database',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tenant_database',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'tenant_id',
						'cluster_id',
						'database_name',
						'database_username',
						'credential_secret_ref',
						'schema_version',
						'database_status',
						'last_health_check_at',
						'last_backup_at',
						'created_at',
						'updated_at' 
					),
					'name' => 'tenant_database' 
				),
				'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 
			),
			array(
				'fieldIndex' => 11,
				'orderByIndex' => -1,
				'groupByIndex' => -1,
				'whereIndex' => -1,
				'havingIndex' => -1 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	tenant_id,
	cluster_id,
	database_name,
	database_username,
	credential_secret_ref,
	schema_version,
	database_status,
	last_health_check_at,
	last_backup_at,
	created_at,
	updated_at',
		'fromListSql' => 'FROM
	tenant_database',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tenant_database',
	'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',
			'tenant_id',
			'cluster_id',
			'database_name',
			'database_username',
			'credential_secret_ref',
			'schema_version',
			'database_status',
			'last_health_check_at',
			'last_backup_at',
			'created_at',
			'updated_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'tenant_id',
			'cluster_id',
			'database_name',
			'database_username',
			'credential_secret_ref',
			'schema_version',
			'database_status',
			'last_health_check_at',
			'last_backup_at',
			'created_at',
			'updated_at' 
		) 
	),
	'connId' => 'conn',
	'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_database'] = array(
	'tableCaption' => 'Tenant Database',
	'fieldLabels' => array(
		'id' => 'Id',
		'tenant_id' => 'Tenant Id',
		'cluster_id' => 'Cluster Id',
		'database_name' => 'Database Name',
		'database_username' => 'Database Username',
		'credential_secret_ref' => 'Credential Secret Ref',
		'schema_version' => 'Schema Version',
		'database_status' => 'Database Status',
		'last_health_check_at' => 'Last Health Check At',
		'last_backup_at' => 'Last Backup At',
		'created_at' => 'Created At',
		'updated_at' => 'Updated At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'tenant_id' => '',
		'cluster_id' => '',
		'database_name' => '',
		'database_username' => '',
		'credential_secret_ref' => '',
		'schema_version' => '',
		'database_status' => '',
		'last_health_check_at' => '',
		'last_backup_at' => '',
		'created_at' => '',
		'updated_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'tenant_id' => '',
		'cluster_id' => '',
		'database_name' => '',
		'database_username' => '',
		'credential_secret_ref' => '',
		'schema_version' => '',
		'database_status' => '',
		'last_health_check_at' => '',
		'last_backup_at' => '',
		'created_at' => '',
		'updated_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>