<?php
return CRM_Core_CodeGen_DedupeRule::create('HouseholdUnsupervised')
  ->addMetadata([
    'contact_type' => 'Household',
    'threshold' => 10,
    'used' => 'Unsupervised',
    'title' => ts('Name or Email'),
    'is_reserved' => 0,
  ])
  ->addValueTable(['rule_table', 'rule_field', 'rule_weight'], [
    ['civicrm_contact', 'household_name', 10],
    ['civicrm_email', 'email', 10],
  ]);
