@@ -1298,8 +1298,8 @@ class Household(HopeModel):
12981298 unknown_sex_group_count = models .IntegerField (blank = True , null = True )
12991299 latitude = models .FloatField (blank = True , null = True )
13001300 longitude = models .FloatField (blank = True , null = True )
1301- collision_flag = models .BooleanField (null = True )
13021301 identification_key = models .CharField (max_length = 255 , blank = True , null = True )
1302+ originating_id = models .CharField (unique = True , max_length = 150 , blank = True , null = True )
13031303
13041304 class Meta :
13051305 managed = False
@@ -1439,6 +1439,7 @@ class Individual(HopeModel):
14391439 biometric_deduplication_golden_record_results = models .JSONField (null = True )
14401440 biometric_deduplication_golden_record_status = models .CharField (max_length = 50 , null = True )
14411441 identification_key = models .CharField (max_length = 255 , blank = True , null = True )
1442+ originating_id = models .CharField (unique = True , max_length = 150 , blank = True , null = True )
14421443
14431444 class Meta :
14441445 managed = False
@@ -1868,7 +1869,7 @@ class Payment(HopeModel):
18681869 signature_hash = models .CharField (max_length = 40 , null = True )
18691870 status = models .CharField (max_length = 255 , null = True )
18701871 status_date = models .DateTimeField (null = True )
1871- currency = models .CharField (max_length = 4 , blank = True , null = True )
1872+ currency = models .CharField (max_length = 5 , blank = True , null = True )
18721873 entitlement_quantity = models .DecimalField (max_digits = 15 , decimal_places = 2 , blank = True , null = True )
18731874 entitlement_quantity_usd = models .DecimalField (max_digits = 15 , decimal_places = 2 , blank = True , null = True )
18741875 delivered_quantity = models .DecimalField (max_digits = 15 , decimal_places = 2 , blank = True , null = True )
@@ -1919,6 +1920,8 @@ class Payment(HopeModel):
19191920 parent_split = models .ForeignKey (
19201921 "Paymentplansplit" , on_delete = models .DO_NOTHING , related_name = "payment_parent_split" , blank = True , null = True
19211922 )
1923+ extras = models .JSONField (null = True )
1924+ sent_to_fsp_date = models .DateTimeField (blank = True , null = True )
19221925
19231926 class Meta :
19241927 managed = False
@@ -1967,7 +1970,7 @@ class PaymentPlan(HopeModel):
19671970 total_undelivered_quantity_usd = models .DecimalField (max_digits = 15 , decimal_places = 2 , blank = True , null = True )
19681971 status = models .CharField (max_length = 50 , null = True )
19691972 background_action_status = models .CharField (max_length = 50 , blank = True , null = True )
1970- currency = models .CharField (max_length = 4 , blank = True , null = True )
1973+ currency = models .CharField (max_length = 5 , blank = True , null = True )
19711974 dispersion_start_date = models .DateField (blank = True , null = True )
19721975 dispersion_end_date = models .DateField (blank = True , null = True )
19731976 female_children_count = models .IntegerField (null = True )
@@ -2016,6 +2019,8 @@ class PaymentPlan(HopeModel):
20162019 flag_exclude_if_active_adjudication_ticket = models .BooleanField (null = True )
20172020 flag_exclude_if_on_sanction_list = models .BooleanField (null = True )
20182021 abort_comment = models .CharField (max_length = 255 , null = True )
2022+ flat_amount_value = models .DecimalField (max_digits = 15 , decimal_places = 2 , blank = True , null = True )
2023+ custom_exchange_rate = models .BooleanField (null = True )
20192024
20202025 class Meta :
20212026 managed = False
@@ -2292,6 +2297,7 @@ class Program(HopeModel):
22922297 slug = models .CharField (max_length = 4 , null = True )
22932298 reconciliation_window_in_days = models .IntegerField (null = True )
22942299 send_reconciliation_window_expiry_notifications = models .BooleanField (null = True )
2300+ identification_key_individual_label = models .CharField (max_length = 255 , blank = True , null = True )
22952301
22962302 class Meta :
22972303 managed = False
@@ -2513,34 +2519,6 @@ def __str__(self) -> str:
25132519 return str (self .name )
25142520
25152521
2516- class DataRegistrationdataimportdatahub (HopeModel ):
2517- id = models .UUIDField (primary_key = True )
2518- created_at = models .DateTimeField (null = True )
2519- updated_at = models .DateTimeField (null = True )
2520- name = models .CharField (max_length = 255 , null = True )
2521- import_date = models .DateTimeField (null = True )
2522- hct_id = models .UUIDField (blank = True , null = True )
2523- import_done = models .CharField (max_length = 15 , null = True )
2524- business_area_slug = models .CharField (max_length = 250 , null = True )
2525- import_data = models .OneToOneField (
2526- DataImportdata ,
2527- on_delete = models .DO_NOTHING ,
2528- related_name = "dataregistrationdataimportdatahub_import_data" ,
2529- blank = True ,
2530- null = True ,
2531- )
2532-
2533- class Meta :
2534- managed = False
2535- db_table = "registration_data_registrationdataimportdatahub"
2536-
2537- class Tenant :
2538- tenant_filter_field : str = "__all__"
2539-
2540- def __str__ (self ) -> str :
2541- return str (self .name )
2542-
2543-
25442522class ListSanctionlist (HopeModel ):
25452523 id = models .BigAutoField (primary_key = True )
25462524 created_at = models .DateTimeField (null = True )
0 commit comments