<?php
global $runnerTableSettings;
$runnerTableSettings['inquiries'] = array(
	'name' => 'inquiries',
	'shortName' => 'inquiries',
	'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' => 'inquiries',
	'afterAddDetail' => 'inquiries',
	'detailsBadgeColor' => '9acd32',
	'sql' => 'SELECT
	id,
	guid,
	user_id,
	user_type,
	product_id,
	status,
	active,
	created_by_admin_id,
	updated_by_admin_id,
	createdAt,
	updatedAt,
	responded_at
FROM
	inquiries',
	'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' => 'inquiries' 
		),
		'guid' => array(
			'name' => 'guid',
			'goodName' => 'guid',
			'strField' => 'guid',
			'index' => 2,
			'type' => 129,
			'sqlExpression' => 'guid',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'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' => 'inquiries',
			'viewLinkTable' => 'users',
			'viewLinkLookup' => true 
		),
		'user_type' => array(
			'name' => 'user_type',
			'goodName' => 'user_type',
			'strField' => 'user_type',
			'index' => 4,
			'sqlExpression' => 'user_type',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'product_id' => array(
			'name' => 'product_id',
			'goodName' => 'product_id',
			'strField' => 'product_id',
			'index' => 5,
			'type' => 3,
			'sqlExpression' => 'product_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'products',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'name' 
				) 
			),
			'tableName' => 'inquiries',
			'viewLinkTable' => 'products',
			'viewLinkLookup' => true 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 6,
			'type' => 129,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'New',
						'Ongoing',
						'Closed',
						'',
						'Responded',
						'Cancelled' 
					) 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'active' => array(
			'name' => 'active',
			'goodName' => 'active',
			'strField' => 'active',
			'index' => 7,
			'type' => 3,
			'sqlExpression' => 'active',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Checkbox',
					'defaultValue' => '1' 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'createdAt' => array(
			'name' => 'createdAt',
			'goodName' => 'createdAt',
			'strField' => 'createdAt',
			'index' => 10,
			'type' => 135,
			'sqlExpression' => 'createdAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'updatedAt' => array(
			'name' => 'updatedAt',
			'goodName' => 'updatedAt',
			'strField' => 'updatedAt',
			'index' => 11,
			'type' => 135,
			'sqlExpression' => 'updatedAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'responded_at' => array(
			'name' => 'responded_at',
			'goodName' => 'responded_at',
			'strField' => 'responded_at',
			'index' => 12,
			'type' => 135,
			'sqlExpression' => 'responded_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'inquiries' 
		),
		'created_by_admin_id' => array(
			'name' => 'created_by_admin_id',
			'goodName' => 'created_by_admin_id',
			'strField' => 'created_by_admin_id',
			'index' => 8,
			'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' => 'inquiries',
			'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' => 9,
			'type' => 3,
			'sqlExpression' => 'updated_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' => 'inquiries',
			'viewLinkTable' => 'system_users',
			'viewLinkLookup' => true 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	guid,
	user_id,
	user_type,
	product_id,
	status,
	active,
	created_by_admin_id,
	updated_by_admin_id,
	createdAt,
	updatedAt,
	responded_at
FROM
	inquiries',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'guid',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'guid' 
				),
				'encrypted' => false,
				'columnName' => 'guid' 
			),
			array(
				'sql' => 'user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'user_id' 
				),
				'encrypted' => false,
				'columnName' => 'user_id' 
			),
			array(
				'sql' => 'user_type',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'user_type' 
				),
				'encrypted' => false,
				'columnName' => 'user_type' 
			),
			array(
				'sql' => 'product_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'product_id' 
				),
				'encrypted' => false,
				'columnName' => 'product_id' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'active',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'active' 
				),
				'encrypted' => false,
				'columnName' => 'active' 
			),
			array(
				'sql' => 'created_by_admin_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'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' => 'inquiries',
					'name' => 'updated_by_admin_id' 
				),
				'encrypted' => false,
				'columnName' => 'updated_by_admin_id' 
			),
			array(
				'sql' => 'createdAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'createdAt' 
				),
				'encrypted' => false,
				'columnName' => 'createdAt' 
			),
			array(
				'sql' => 'updatedAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'updatedAt' 
				),
				'encrypted' => false,
				'columnName' => 'updatedAt' 
			),
			array(
				'sql' => 'responded_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'inquiries',
					'name' => 'responded_at' 
				),
				'encrypted' => false,
				'columnName' => 'responded_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'inquiries',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'inquiries',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'guid',
						'user_id',
						'user_type',
						'product_id',
						'status',
						'active',
						'createdAt',
						'updatedAt',
						'responded_at',
						'created_by_admin_id',
						'updated_by_admin_id' 
					),
					'name' => 'inquiries' 
				),
				'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,
	guid,
	user_id,
	user_type,
	product_id,
	status,
	active,
	created_by_admin_id,
	updated_by_admin_id,
	createdAt,
	updatedAt,
	responded_at',
		'fromListSql' => 'FROM
	inquiries',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'inquiries',
	'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',
			'user_type',
			'product_id',
			'status',
			'active',
			'createdAt',
			'updatedAt',
			'responded_at',
			'created_by_admin_id',
			'updated_by_admin_id' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'guid',
			'user_id',
			'user_type',
			'product_id',
			'status',
			'active',
			'createdAt',
			'updatedAt',
			'responded_at',
			'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['inquiries'] = array(
	'tableCaption' => 'Inquiries',
	'fieldLabels' => array(
		'id' => 'Id',
		'guid' => 'Guid',
		'user_id' => 'User Id',
		'user_type' => 'User Type',
		'product_id' => 'Product Id',
		'status' => 'Status',
		'active' => 'Active',
		'createdAt' => 'Created At',
		'updatedAt' => 'Updated At',
		'responded_at' => 'Responded At',
		'created_by_admin_id' => 'Created By Admin Id',
		'updated_by_admin_id' => 'Updated By Admin Id' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'guid' => '',
		'user_id' => '',
		'user_type' => '',
		'product_id' => '',
		'status' => '',
		'active' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'responded_at' => '',
		'created_by_admin_id' => '',
		'updated_by_admin_id' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'guid' => '',
		'user_id' => '',
		'user_type' => '',
		'product_id' => '',
		'status' => '',
		'active' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'responded_at' => '',
		'created_by_admin_id' => '',
		'updated_by_admin_id' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>