<?php
global $runnerTableSettings;
$runnerTableSettings['messages'] = array(
	'name' => 'messages',
	'shortName' => 'messages',
	'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' => 'messages',
	'afterAddDetail' => 'messages',
	'detailsBadgeColor' => 'dc143c',
	'sql' => 'SELECT
	id,
	guid,
	sender_id,
	receiver_id,
	message,
	active,
	createdAt,
	updatedAt,
	photo,
	status,
	created_by_admin_id,
	updated_by_admin_id
FROM
	messages',
	'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' => 'messages' 
		),
		'guid' => array(
			'name' => 'guid',
			'goodName' => 'guid',
			'strField' => 'guid',
			'index' => 2,
			'type' => 129,
			'sqlExpression' => 'guid',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'messages' 
		),
		'sender_id' => array(
			'name' => 'sender_id',
			'goodName' => 'sender_id',
			'strField' => 'sender_id',
			'index' => 3,
			'type' => 3,
			'sqlExpression' => 'sender_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'users',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'email' 
				) 
			),
			'tableName' => 'messages',
			'viewLinkTable' => 'users',
			'viewLinkLookup' => true 
		),
		'receiver_id' => array(
			'name' => 'receiver_id',
			'goodName' => 'receiver_id',
			'strField' => 'receiver_id',
			'index' => 4,
			'type' => 3,
			'sqlExpression' => 'receiver_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'users',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'email' 
				) 
			),
			'tableName' => 'messages',
			'viewLinkTable' => 'users',
			'viewLinkLookup' => true 
		),
		'message' => array(
			'name' => 'message',
			'goodName' => 'message',
			'strField' => 'message',
			'index' => 5,
			'type' => 201,
			'sqlExpression' => 'message',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Text area' 
				) 
			),
			'tableName' => 'messages' 
		),
		'active' => array(
			'name' => 'active',
			'goodName' => 'active',
			'strField' => 'active',
			'index' => 6,
			'type' => 3,
			'sqlExpression' => 'active',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Checkbox',
					'defaultValue' => '1' 
				) 
			),
			'tableName' => 'messages' 
		),
		'createdAt' => array(
			'name' => 'createdAt',
			'goodName' => 'createdAt',
			'strField' => 'createdAt',
			'index' => 7,
			'type' => 135,
			'sqlExpression' => 'createdAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'messages' 
		),
		'updatedAt' => array(
			'name' => 'updatedAt',
			'goodName' => 'updatedAt',
			'strField' => 'updatedAt',
			'index' => 8,
			'type' => 135,
			'sqlExpression' => 'updatedAt',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'messages' 
		),
		'photo' => array(
			'name' => 'photo',
			'goodName' => 'photo',
			'strField' => 'photo',
			'index' => 9,
			'sqlExpression' => 'photo',
			'viewFormats' => array(
				'view' => array(
					'format' => 'File-based Image' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Document upload',
					'fileMaxNumber' => 1 
				) 
			),
			'tableName' => 'messages' 
		),
		'status' => array(
			'name' => 'status',
			'goodName' => 'status',
			'strField' => 'status',
			'index' => 10,
			'type' => 129,
			'sqlExpression' => 'status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'required' => true,
					'lookupType' => 0,
					'lookupValues' => array( 
						'read',
						'unread',
						'archived' 
					) 
				) 
			),
			'tableName' => 'messages' 
		),
		'created_by_admin_id' => array(
			'name' => 'created_by_admin_id',
			'goodName' => 'created_by_admin_id',
			'strField' => 'created_by_admin_id',
			'index' => 11,
			'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' => 'messages',
			'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' => 12,
			'type' => 3,
			'sqlExpression' => 'updated_by_admin_id',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'messages' 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	guid,
	sender_id,
	receiver_id,
	message,
	active,
	createdAt,
	updatedAt,
	photo,
	status,
	created_by_admin_id,
	updated_by_admin_id
FROM
	messages',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'guid',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'guid' 
				),
				'encrypted' => false,
				'columnName' => 'guid' 
			),
			array(
				'sql' => 'sender_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'sender_id' 
				),
				'encrypted' => false,
				'columnName' => 'sender_id' 
			),
			array(
				'sql' => 'receiver_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'receiver_id' 
				),
				'encrypted' => false,
				'columnName' => 'receiver_id' 
			),
			array(
				'sql' => 'message',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'message' 
				),
				'encrypted' => false,
				'columnName' => 'message' 
			),
			array(
				'sql' => 'active',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'active' 
				),
				'encrypted' => false,
				'columnName' => 'active' 
			),
			array(
				'sql' => 'createdAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'createdAt' 
				),
				'encrypted' => false,
				'columnName' => 'createdAt' 
			),
			array(
				'sql' => 'updatedAt',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'updatedAt' 
				),
				'encrypted' => false,
				'columnName' => 'updatedAt' 
			),
			array(
				'sql' => 'photo',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'photo' 
				),
				'encrypted' => false,
				'columnName' => 'photo' 
			),
			array(
				'sql' => 'status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'name' => 'status' 
				),
				'encrypted' => false,
				'columnName' => 'status' 
			),
			array(
				'sql' => 'created_by_admin_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'messages',
					'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' => 'messages',
					'name' => 'updated_by_admin_id' 
				),
				'encrypted' => false,
				'columnName' => 'updated_by_admin_id' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'messages',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'messages',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'guid',
						'sender_id',
						'receiver_id',
						'message',
						'active',
						'createdAt',
						'updatedAt',
						'photo',
						'status',
						'created_by_admin_id',
						'updated_by_admin_id' 
					),
					'name' => 'messages' 
				),
				'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,
	sender_id,
	receiver_id,
	message,
	active,
	createdAt,
	updatedAt,
	photo,
	status,
	created_by_admin_id,
	updated_by_admin_id',
		'fromListSql' => 'FROM
	messages',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'hasEvents' => true,
	'originalTable' => 'messages',
	'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',
			'sender_id',
			'receiver_id',
			'message',
			'active',
			'createdAt',
			'updatedAt',
			'photo',
			'status',
			'created_by_admin_id',
			'updated_by_admin_id' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'guid',
			'sender_id',
			'receiver_id',
			'message',
			'active',
			'createdAt',
			'updatedAt',
			'photo',
			'status',
			'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['messages'] = array(
	'tableCaption' => 'Messages',
	'fieldLabels' => array(
		'id' => 'Id',
		'guid' => 'Guid',
		'sender_id' => 'Sender Id',
		'receiver_id' => 'Receiver Id',
		'message' => 'Message',
		'active' => 'Active',
		'createdAt' => 'Created At',
		'updatedAt' => 'Updated At',
		'photo' => 'Photo',
		'status' => 'Status',
		'created_by_admin_id' => 'Created By Admin Id',
		'updated_by_admin_id' => 'Updated By Admin Id' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'guid' => '',
		'sender_id' => '',
		'receiver_id' => '',
		'message' => '',
		'active' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'photo' => '',
		'status' => '',
		'created_by_admin_id' => '',
		'updated_by_admin_id' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'guid' => '',
		'sender_id' => '',
		'receiver_id' => '',
		'message' => '',
		'active' => '',
		'createdAt' => '',
		'updatedAt' => '',
		'photo' => '',
		'status' => '',
		'created_by_admin_id' => '',
		'updated_by_admin_id' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>