'ecmcustomlists', 'fields' => array ( 'name' => array ( 'name' => 'name', 'vname' => 'LBL_SUBJECT', 'dbType' => 'varchar', 'type' => 'name', 'len' => '50', 'importable' => 'required', 'required' => true ) ), 'relationships' => array ( 'ecmcustomlists_assigned_user' => array ( 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EcmCustomLists', 'rhs_table' => 'ecmcustomlists', 'rhs_key' => 'assigned_user_id', 'relationship_type' => 'one-to-many' ), 'ecmcustomlists_modified_user' => array ( 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EcmCustomLists', 'rhs_table' => 'ecmcustomlists', 'rhs_key' => 'modified_user_id', 'relationship_type' => 'one-to-many' ), 'ecmcustomlists_created_by' => array ( 'lhs_module' => 'Users', 'lhs_table' => 'users', 'lhs_key' => 'id', 'rhs_module' => 'EcmCustomLists', 'rhs_table' => 'ecmcustomlists', 'rhs_key' => 'created_by', 'relationship_type' => 'one-to-many' ) ), 'indices' => array ( array ( 'name' => 'idx_csl_name', 'type' => 'index', 'fields' => array ( 'name' ) ), array ( 'name' => 'idx_csl_assigned', 'type' => 'index', 'fields' => array ( 'assigned_user_id' ) ) ), // This enables optimistic locking for Saves From EditView 'optimistic_locking' => true ); VardefManager::createVardef ( 'EcmCustomLists', 'EcmCustomList', array ( 'default', 'assignable' ) ); ?>