<?php
global $runnerTableSettings;
$runnerTableSettings['reviews'] = array(
	'name' => 'reviews',
	'shortName' => 'reviews',
	'pagesByType' => array(
		'export' => array( 
			'export' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'pageTypes' => array(
		'export' => 'export',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'defaultPages' => array(
		'export' => 'export',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'afterEditDetails' => 'reviews',
	'afterAddDetail' => 'reviews',
	'detailsBadgeColor' => 'daa520',
	'sql' => 'SELECT
	id,
	guid,
	user_id,
	supplier_id,
	active,
	createdAt,
	updatedAt,
	message,
	rating,
	created_by_admin_id,
	updated_by_admin_id
FROM
	reviews',
	'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' => 'reviews' 
		),
		'guid' => array(
			'name' => 'guid',
			'goodName' => 'guid',
			'strField' => 'guid',
			'index' => 2,
			'type' => 129,
			'sqlExpression' => 'guid',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'reviews' 
		),
		'user_id' => array(
			'name' => 'user_id',
			'goodName' => 'user_id',
			'strField' => 'user_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'user_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'users',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'email' 
				) 
			),
			'tableName' => 'reviews',
			'viewLinkTable' => 'users',
			'viewLinkLookup' => true 
		),
		'supplier_id' => array(
			'name' => 'supplier_id',
			'goodName' => 'supplier_id',
			'strField' => 'supplier_id',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'supplier_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'users',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'business_name',
					'lookupWhere' => 'user_type = \'Supplier\'' 
				) 
			),
			'tableName' => 'reviews',
			'viewLinkTable' => 'users',
			'viewLinkLookup' => true 
		),
		'active' => array(
			'name' => 'active',
			'goodName' => 'active',
			'strField' => 'active',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'active',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Checkbox',
					'defaultValue' => '1' 
				) 
			),
			'tableName' => 'reviews' 
		),
		'createdAt' => array(
			'name' => 'createdAt',
			'goodName' => 'createdAt',
			'strField' => 'createdAt',
			'index' => 6,
			'type' => 135,
			'sqlExpression' => 'createdAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'reviews' 
		),
		'updatedAt' => array(
			'name' => 'updatedAt',
			'goodName' => 'updatedAt',
			'strField' => 'updatedAt',
			'index' => 7,
			'type' => 135,
			'sqlExpression' => 'updatedAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'reviews' 
		),
		'message' => array(
			'name' => 'message',
			'goodName' => 'message',
			'strField' => 'message',
			'index' => 8,
			'type' => 201,
			'sqlExpression' => 'message',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'reviews' 
		),
		'rating' => array(
			'name' => 'rating',
			'goodName' => 'rating',
			'strField' => 'rating',
			'index' => 9,
			'type' => 3,
			'sqlExpression' => 'rating',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'1',
						'2',
						'3',
						'4',
						'5' 
					) 
				) 
			),
			'tableName' => 'reviews' 
		),
		'created_by_admin_id' => array(
			'name' => 'created_by_admin_id',
			'goodName' => 'created_by_admin_id',
			'strField' => 'created_by_admin_id',
			'index' => 10,
			'type' => 3,
			'sqlExpression' => 'created_by_admin_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'system_users',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'ID',
					'lookupDisplayField' => 'fullname' 
				) 
			),
			'tableName' => 'reviews',
			'viewLinkTable' => 'system_users',
			'viewLinkLookup' => true 
		),
		'updated_by_admin_id' => array(
			'name' => 'updated_by_admin_id',
			'goodName' => 'updated_by_admin_id',
			'strField' => 'updated_by_admin_id',
			'index' => 11,
			'type' => 3,
			'sqlExpression' => 'updated_by_admin_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'reviews' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	guid,
	user_id,
	supplier_id,
	active,
	createdAt,
	updatedAt,
	message,
	rating,
	created_by_admin_id,
	updated_by_admin_id
FROM
	reviews',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'guid',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'guid' 
				),
				'encrypted' => false,
				'columnName' => 'guid' 
			),
			array(
				'sql' => 'user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'user_id' 
				),
				'encrypted' => false,
				'columnName' => 'user_id' 
			),
			array(
				'sql' => 'supplier_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'supplier_id' 
				),
				'encrypted' => false,
				'columnName' => 'supplier_id' 
			),
			array(
				'sql' => 'active',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'active' 
				),
				'encrypted' => false,
				'columnName' => 'active' 
			),
			array(
				'sql' => 'createdAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'createdAt' 
				),
				'encrypted' => false,
				'columnName' => 'createdAt' 
			),
			array(
				'sql' => 'updatedAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'updatedAt' 
				),
				'encrypted' => false,
				'columnName' => 'updatedAt' 
			),
			array(
				'sql' => 'message',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'message' 
				),
				'encrypted' => false,
				'columnName' => 'message' 
			),
			array(
				'sql' => 'rating',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'rating' 
				),
				'encrypted' => false,
				'columnName' => 'rating' 
			),
			array(
				'sql' => 'created_by_admin_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'created_by_admin_id' 
				),
				'encrypted' => false,
				'columnName' => 'created_by_admin_id' 
			),
			array(
				'sql' => 'updated_by_admin_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'reviews',
					'name' => 'updated_by_admin_id' 
				),
				'encrypted' => false,
				'columnName' => 'updated_by_admin_id' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'reviews',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'reviews',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'guid',
						'user_id',
						'supplier_id',
						'active',
						'createdAt',
						'updatedAt',
						'message',
						'rating',
						'created_by_admin_id',
						'updated_by_admin_id' 
					),
					'name' => 'reviews' 
				),
				'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,
	guid,
	user_id,
	supplier_id,
	active,
	createdAt,
	updatedAt,
	message,
	rating,
	created_by_admin_id,
	updated_by_admin_id',
		'fromListSql' => 'FROM
	reviews',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'reviews',
	'originalPagesByType' => array(
		'export' => array( 
			'export' 
		),
		'edit' => array( 
			'edit' 
		),
		'view' => array( 
			'view' 
		),
		'list' => array( 
			'list' 
		),
		'print' => array( 
			'print' 
		),
		'search' => array( 
			'search' 
		) 
	),
	'originalPageTypes' => array(
		'export' => 'export',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'originalDefaultPages' => array(
		'export' => 'export',
		'edit' => 'edit',
		'view' => 'view',
		'list' => 'list',
		'print' => 'print',
		'search' => 'search' 
	),
	'searchSettings' => array(
		'caseSensitiveSearch' => false,
		'searchableFields' => array( 
			'id',
			'guid',
			'user_id',
			'supplier_id',
			'active',
			'createdAt',
			'updatedAt',
			'message',
			'rating',
			'created_by_admin_id',
			'updated_by_admin_id' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'guid',
			'user_id',
			'supplier_id',
			'active',
			'createdAt',
			'updatedAt',
			'message',
			'rating',
			'created_by_admin_id',
			'updated_by_admin_id' 
		) 
	),
	'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['reviews'] = array(
	'tableCaption' => 'Reviews',
	'fieldLabels' => array(
		'id' => 'Id',
		'guid' => 'Guid',
		'user_id' => 'User Id',
		'supplier_id' => 'Supplier Id',
		'active' => 'Active',
		'createdAt' => 'Created At',
		'updatedAt' => 'Updated At',
		'message' => 'Message',
		'rating' => 'Rating',
		'created_by_admin_id' => 'Created By Admin Id',
		'updated_by_admin_id' => 'Updated By Admin Id' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'guid' => '',
		'user_id' => '',
		'supplier_id' => '',
		'active' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'message' => '',
		'rating' => '',
		'created_by_admin_id' => '',
		'updated_by_admin_id' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'guid' => '',
		'user_id' => '',
		'supplier_id' => '',
		'active' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'message' => '',
		'rating' => '',
		'created_by_admin_id' => '',
		'updated_by_admin_id' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>