<?php
global $runnerTableSettings;
$runnerTableSettings['role_permission'] = array(
	'name' => 'role_permission',
	'shortName' => 'role_permission',
	'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' => 'role_permission',
	'afterAddDetail' => 'role_permission',
	'detailsBadgeColor' => '6493ea',
	'sql' => 'SELECT
	id,
	role_id,
	permission_id,
	is_allowed
FROM
	role_permission',
	'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' => 'role_permission' 
		),
		'role_id' => array(
			'name' => 'role_id',
			'goodName' => 'role_id',
			'strField' => 'role_id',
			'index' => 2,
			'type' => 3,
			'sqlExpression' => 'role_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'app_role',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'role_code' 
				) 
			),
			'tableName' => 'role_permission',
			'viewLinkTable' => 'app_role',
			'viewLinkLookup' => true 
		),
		'permission_id' => array(
			'name' => 'permission_id',
			'goodName' => 'permission_id',
			'strField' => 'permission_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'permission_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'app_permission',
					'lookupTableConnection' => 'conn1',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'permission_code' 
				) 
			),
			'tableName' => 'role_permission',
			'viewLinkTable' => 'app_permission',
			'viewLinkLookup' => true 
		),
		'is_allowed' => array(
			'name' => 'is_allowed',
			'goodName' => 'is_allowed',
			'strField' => 'is_allowed',
			'index' => 4,
			'type' => 2,
			'sqlExpression' => 'is_allowed',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'role_permission' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'app_role',
			'detailsKeys' => array( 
				'role_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'app_permission',
			'detailsKeys' => array( 
				'permission_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	role_id,
	permission_id,
	is_allowed
FROM
	role_permission',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'role_permission',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'role_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'role_permission',
					'name' => 'role_id' 
				),
				'encrypted' => false,
				'columnName' => 'role_id' 
			),
			array(
				'sql' => 'permission_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'role_permission',
					'name' => 'permission_id' 
				),
				'encrypted' => false,
				'columnName' => 'permission_id' 
			),
			array(
				'sql' => 'is_allowed',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'role_permission',
					'name' => 'is_allowed' 
				),
				'encrypted' => false,
				'columnName' => 'is_allowed' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'role_permission',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'role_permission',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'role_id',
						'permission_id',
						'is_allowed' 
					),
					'name' => 'role_permission' 
				),
				'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 
			) 
		),
		'headSql' => 'SELECT',
		'fieldListSql' => 'id,
	role_id,
	permission_id,
	is_allowed',
		'fromListSql' => 'FROM
	role_permission',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'role_permission',
	'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',
			'role_id',
			'permission_id',
			'is_allowed' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'role_id',
			'permission_id',
			'is_allowed' 
		) 
	),
	'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['role_permission'] = array(
	'tableCaption' => 'Role Permission',
	'fieldLabels' => array(
		'id' => 'Id',
		'role_id' => 'Role Id',
		'permission_id' => 'Permission Id',
		'is_allowed' => 'Is Allowed' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'role_id' => '',
		'permission_id' => '',
		'is_allowed' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'role_id' => '',
		'permission_id' => '',
		'is_allowed' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>