<?php
global $runnerTableSettings;
$runnerTableSettings['tenant_membership'] = array(
	'name' => 'tenant_membership',
	'shortName' => 'tenant_membership',
	'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_membership',
	'afterAddDetail' => 'tenant_membership',
	'detailsBadgeColor' => 'daa520',
	'sql' => 'SELECT
	id,
	tenant_id,
	user_id,
	role_code,
	membership_status,
	is_owner,
	is_default_tenant,
	invited_at,
	accepted_at,
	created_at,
	updated_at
FROM
	tenant_membership',
	'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_membership' 
		),
		'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_membership',
			'viewLinkTable' => 'tenant',
			'viewLinkLookup' => true 
		),
		'user_id' => array(
			'name' => 'user_id',
			'goodName' => 'user_id',
			'strField' => 'user_id',
			'index' => 3,
			'type' => 20,
			'sqlExpression' => 'user_id',
			'viewFormats' => array(
				'view' => array(
					'viewLink' => true 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Lookup wizard',
					'lookupType' => 2,
					'lookupTable' => 'app_user',
					'lookupTableConnection' => 'conn',
					'lookupLinkField' => 'id',
					'lookupDisplayField' => 'user_uuid' 
				) 
			),
			'tableName' => 'tenant_membership',
			'viewLinkTable' => 'app_user',
			'viewLinkLookup' => true 
		),
		'role_code' => array(
			'name' => 'role_code',
			'goodName' => 'role_code',
			'strField' => 'role_code',
			'index' => 4,
			'sqlExpression' => 'role_code',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'membership_status' => array(
			'name' => 'membership_status',
			'goodName' => 'membership_status',
			'strField' => 'membership_status',
			'index' => 5,
			'sqlExpression' => 'membership_status',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'is_owner' => array(
			'name' => 'is_owner',
			'goodName' => 'is_owner',
			'strField' => 'is_owner',
			'index' => 6,
			'type' => 16,
			'sqlExpression' => 'is_owner',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'is_default_tenant' => array(
			'name' => 'is_default_tenant',
			'goodName' => 'is_default_tenant',
			'strField' => 'is_default_tenant',
			'index' => 7,
			'type' => 16,
			'sqlExpression' => 'is_default_tenant',
			'viewFormats' => array(
				'view' => array(
					 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'invited_at' => array(
			'name' => 'invited_at',
			'goodName' => 'invited_at',
			'strField' => 'invited_at',
			'index' => 8,
			'type' => 135,
			'sqlExpression' => 'invited_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'accepted_at' => array(
			'name' => 'accepted_at',
			'goodName' => 'accepted_at',
			'strField' => 'accepted_at',
			'index' => 9,
			'type' => 135,
			'sqlExpression' => 'accepted_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'created_at' => array(
			'name' => 'created_at',
			'goodName' => 'created_at',
			'strField' => 'created_at',
			'index' => 10,
			'type' => 135,
			'sqlExpression' => 'created_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_membership' 
		),
		'updated_at' => array(
			'name' => 'updated_at',
			'goodName' => 'updated_at',
			'strField' => 'updated_at',
			'index' => 11,
			'type' => 135,
			'sqlExpression' => 'updated_at',
			'viewFormats' => array(
				'view' => array(
					'format' => 'Short Date' 
				) 
			),
			'editFormats' => array(
				'edit' => array(
					'format' => 'Date',
					'dateEditType' => 11 
				) 
			),
			'tableName' => 'tenant_membership' 
		) 
	),
	'masterTables' => array( 
		array(
			'table' => 'app_user',
			'detailsKeys' => array( 
				'user_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		),
		array(
			'table' => 'tenant',
			'detailsKeys' => array( 
				'tenant_id' 
			),
			'masterKeys' => array( 
				'id' 
			) 
		) 
	),
	'query' => array(
		'sql' => 'SELECT
	id,
	tenant_id,
	user_id,
	role_code,
	membership_status,
	is_owner,
	is_default_tenant,
	invited_at,
	accepted_at,
	created_at,
	updated_at
FROM
	tenant_membership',
		'parsed' => true,
		'type' => 'SQLQuery',
		'fieldList' => array( 
			array(
				'sql' => 'id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'id' 
				),
				'encrypted' => false,
				'columnName' => 'id' 
			),
			array(
				'sql' => 'tenant_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'tenant_id' 
				),
				'encrypted' => false,
				'columnName' => 'tenant_id' 
			),
			array(
				'sql' => 'user_id',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'user_id' 
				),
				'encrypted' => false,
				'columnName' => 'user_id' 
			),
			array(
				'sql' => 'role_code',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'role_code' 
				),
				'encrypted' => false,
				'columnName' => 'role_code' 
			),
			array(
				'sql' => 'membership_status',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'membership_status' 
				),
				'encrypted' => false,
				'columnName' => 'membership_status' 
			),
			array(
				'sql' => 'is_owner',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'is_owner' 
				),
				'encrypted' => false,
				'columnName' => 'is_owner' 
			),
			array(
				'sql' => 'is_default_tenant',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'is_default_tenant' 
				),
				'encrypted' => false,
				'columnName' => 'is_default_tenant' 
			),
			array(
				'sql' => 'invited_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'invited_at' 
				),
				'encrypted' => false,
				'columnName' => 'invited_at' 
			),
			array(
				'sql' => 'accepted_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'name' => 'accepted_at' 
				),
				'encrypted' => false,
				'columnName' => 'accepted_at' 
			),
			array(
				'sql' => 'created_at',
				'parsed' => true,
				'type' => 'FieldListItem',
				'alias' => '',
				'expression' => array(
					'sql' => '',
					'parsed' => true,
					'type' => 'SQLField',
					'table' => 'tenant_membership',
					'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_membership',
					'name' => 'updated_at' 
				),
				'encrypted' => false,
				'columnName' => 'updated_at' 
			) 
		),
		'fromList' => array( 
			array(
				'sql' => 'tenant_membership',
				'parsed' => true,
				'type' => 'FromListItem',
				'table' => array(
					'sql' => 'tenant_membership',
					'parsed' => true,
					'type' => 'SQLTable',
					'columns' => array( 
						'id',
						'tenant_id',
						'user_id',
						'role_code',
						'membership_status',
						'is_owner',
						'is_default_tenant',
						'invited_at',
						'accepted_at',
						'created_at',
						'updated_at' 
					),
					'name' => 'tenant_membership' 
				),
				'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,
	tenant_id,
	user_id,
	role_code,
	membership_status,
	is_owner,
	is_default_tenant,
	invited_at,
	accepted_at,
	created_at,
	updated_at',
		'fromListSql' => 'FROM
	tenant_membership',
		'orderBySql' => '',
		'tailSql' => '' 
	),
	'originalTable' => 'tenant_membership',
	'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',
			'user_id',
			'role_code',
			'membership_status',
			'is_owner',
			'is_default_tenant',
			'invited_at',
			'accepted_at',
			'created_at',
			'updated_at' 
		),
		'searchSuggest' => true,
		'highlightSearchResults' => true,
		'hideDataUntilSearch' => false,
		'hideFilterUntilSearch' => false,
		'googleLikeSearchFields' => array( 
			'id',
			'tenant_id',
			'user_id',
			'role_code',
			'membership_status',
			'is_owner',
			'is_default_tenant',
			'invited_at',
			'accepted_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_membership'] = array(
	'tableCaption' => 'Tenant Membership',
	'fieldLabels' => array(
		'id' => 'Id',
		'tenant_id' => 'Tenant Id',
		'user_id' => 'User Id',
		'role_code' => 'Role Code',
		'membership_status' => 'Membership Status',
		'is_owner' => 'Is Owner',
		'is_default_tenant' => 'Is Default Tenant',
		'invited_at' => 'Invited At',
		'accepted_at' => 'Accepted At',
		'created_at' => 'Created At',
		'updated_at' => 'Updated At' 
	),
	'fieldTooltips' => array(
		'id' => '',
		'tenant_id' => '',
		'user_id' => '',
		'role_code' => '',
		'membership_status' => '',
		'is_owner' => '',
		'is_default_tenant' => '',
		'invited_at' => '',
		'accepted_at' => '',
		'created_at' => '',
		'updated_at' => '' 
	),
	'fieldPlaceholders' => array(
		'id' => '',
		'tenant_id' => '',
		'user_id' => '',
		'role_code' => '',
		'membership_status' => '',
		'is_owner' => '',
		'is_default_tenant' => '',
		'invited_at' => '',
		'accepted_at' => '',
		'created_at' => '',
		'updated_at' => '' 
	),
	'pageTitles' => array(
		 
	) 
);
}
?>