๐Ÿ—๏ธ UnitCycle Database Map

Complete PostgreSQL Introspection โ€” Generated 2026-04-05 17:12 โ€” Recovery Blueprint
254
Tables
3,500
Columns
368
Foreign Keys
1,227
Indexes
483,483
Total Rows
399 MB
DB Size

๐Ÿงฉ Extensions

  • plpgsql v1.0

๐Ÿ“Š Quick Stats

  • Non-empty tables: 164 / 254
  • Tables with FKs: 178
  • Largest table: tenant_ledger_entry (112,601 rows)
  • Most columns: invoices (96 cols)
๐Ÿ  Tenants 26 tables ยท 203,190 rows
tenant_ledger_entry
112,601 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 trans_id varchar(50) NO
3 trans_type varchar(20) NO
4 trans_date date NO
5 charge_code varchar(50) YES
6 charge_amount numeric NO
7 is_open bool NO
8 is_posted bool NO
9 description varchar(500) NO
10 notes text NO
11 yardi_raw_data jsonb YES
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
15 lease_id uuid YES ๐Ÿ”— โ†’ tenant_lease.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_ledg_tenant__814b54_idx ON public.tenant_ledger_entry USING btree (tenant_id, trans_date DESC)
  • CREATE INDEX tenant_ledger_entry_trans_id_81209264_like ON public.tenant_ledger_entry USING btree (trans_id varchar_pattern_ops)
  • CREATE INDEX tenant_ledger_entry_tenant_id_a889bd1f ON public.tenant_ledger_entry USING btree (tenant_id)
  • CREATE INDEX tenant_ledger_entry_lease_id_69435c08 ON public.tenant_ledger_entry USING btree (lease_id)
  • CREATE INDEX tenant_ledg_trans_t_84f5b2_idx ON public.tenant_ledger_entry USING btree (trans_type)
  • CREATE INDEX tenant_ledg_trans_i_094845_idx ON public.tenant_ledger_entry USING btree (trans_id)
  • CREATE UNIQUE INDEX tenant_ledger_entry_pkey ON public.tenant_ledger_entry USING btree (id)
  • CREATE UNIQUE INDEX tenant_ledger_entry_trans_id_key ON public.tenant_ledger_entry USING btree (trans_id)
  • CREATE INDEX tenant_ledg_is_post_51f016_idx ON public.tenant_ledger_entry USING btree (is_posted)
  • CREATE INDEX tenant_ledg_lease_i_123a2f_idx ON public.tenant_ledger_entry USING btree (lease_id, trans_date DESC)

Sample Data (3 of 112,601 rows)

idtrans_idtrans_typetrans_datecharge_codecharge_amountis_openis_posteddescriptionnotesyardi_raw_datacreated_atupdated_attenant_idlease_id
05f64322-37b7-48e7-89fe-cc9df77a4ff4704093825Charge2026-06-01admin150.0FalseTrueAdministrative FeeAdministrative Fee{"notes": "Administrative Fee", "is_open": "false", "trans_id": "704093825", "is_posted": "true", "t2025-10-23T15:57:02.349617+02:002025-10-23T15:57:02.349636+02:0093637fea-1f75-4eea-81c7-299c6003b932d20a8ba5-7dc0-4801-8ca0-98721b3cbbbb
33c1aef3-0e79-40ba-adb1-26d779de421a704093824Charge2026-06-01rent1297.0FalseTrueRentRent for 30 days{"notes": "Rent for 30 days", "is_open": "false", "trans_id": "704093824", "is_posted": "true", "tra2025-10-23T15:57:02.353153+02:002025-10-23T15:57:02.353166+02:0093637fea-1f75-4eea-81c7-299c6003b932d20a8ba5-7dc0-4801-8ca0-98721b3cbbbb
518057f7-e06b-4a6a-bea9-b7d2ef700838704010303Charge2025-12-16ubtrash-12.91FalseTruePassthru TrashTrash{"notes": "Trash", "is_open": "false", "trans_id": "704010303", "is_posted": "true", "trans_date": "2025-10-23T15:57:02.364056+02:002025-10-23T15:57:02.364069+02:00bdc6f91e-f529-4ae2-8cc2-78974d5f1196ec2c18c9-1d6d-4ea7-a173-2d72fee75034
tenant_recurring_charge
48,679 rows 11 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 charge_code varchar(50) NO
3 charge_description varchar(200) NO
4 amount numeric NO
5 start_date date NO
6 end_date date YES
7 is_active bool NO
8 yardi_raw_data jsonb YES
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 lease_id uuid NO ๐Ÿ”— โ†’ tenant_lease.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_recu_lease_i_b55fd3_idx ON public.tenant_recurring_charge USING btree (lease_id, charge_code)
  • CREATE UNIQUE INDEX tenant_recurring_charge_pkey ON public.tenant_recurring_charge USING btree (id)
  • CREATE INDEX tenant_recurring_charge_lease_id_d51d48b2 ON public.tenant_recurring_charge USING btree (lease_id)
  • CREATE INDEX tenant_recu_is_acti_32fb79_idx ON public.tenant_recurring_charge USING btree (is_active)

Sample Data (3 of 48,679 rows)

idcharge_codecharge_descriptionamountstart_dateend_dateis_activeyardi_raw_datacreated_atupdated_atlease_id
f9d304e2-cd7a-4f86-ad3a-2acd73c65211rentRent Income1411.02025-02-21NULLTrue{"amount": "1411.00", "end_date": null, "start_date": "2025-02-21", "charge_code": "rent", "charge_d2025-10-22T23:04:44.229279+02:002025-10-23T15:54:58.081311+02:0097561a78-9d92-46cd-a9bc-8b6a344f15ea
66cb0f2f-16f0-4abe-bb30-a924fb7ec5d2tranTransfer Fee25.02025-02-212025-03-31False{"amount": "25.00", "end_date": "2025-03-31", "start_date": "2025-02-21", "charge_code": "tran", "ch2025-10-22T23:04:44.23128+02:002025-10-23T15:54:58.084771+02:0097561a78-9d92-46cd-a9bc-8b6a344f15ea
e04b5a6f-7970-4767-bf2f-9eb84ebdc227petrentPet Rent35.02025-02-26NULLTrue{"amount": "35.00", "end_date": null, "start_date": "2025-02-26", "charge_code": "petrent", "charge_2025-10-22T23:04:46.356563+02:002025-10-23T15:54:58.089472+02:0018abc0fe-e9eb-402c-ab94-22cab2e8eee2
tenant_insurance_policies
11,987 rows 39 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 yardi_policy_id varchar(50) YES
3 yardi_tenant_code varchar(50) YES
4 yardi_property_code varchar(50) YES
5 yardi_raw_data jsonb YES
6 yardi_last_sync timestamptz YES
7 lease_id varchar(50) NO
8 current_rent_snapshot numeric YES
9 expected_move_in_date date YES
10 lease_from_date date YES
11 lease_to_date date YES
12 actual_move_in date YES
13 lease_sign_date date YES
14 payment_accepted numeric NO
15 responsible_for_lease bool NO
16 insurer_name varchar(200) NO
17 policy_number varchar(100) NO
18 policy_title varchar(200) NO
19 premium_amount numeric NO
20 effective_date date NO
21 expiration_date date YES
22 cancel_date date YES
23 liability_amount numeric NO
24 contents_amount numeric NO
25 is_renew bool NO
26 is_required_for_move_in bool NO
27 is_pm_interested_party bool NO
28 is_tll bool NO
29 is_pet_endorsement bool NO
30 pending_cancel bool NO
31 override_policy bool NO
32 interface_config_id int4 NO
33 h_vendor_policy int4 NO
34 vendor_policy_id varchar(100) NO
35 created_date date YES
36 modified_date date YES
37 created_at timestamptz NO
38 updated_at timestamptz NO
39 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_insu_insurer_375cb6_idx ON public.tenant_insurance_policies USING btree (insurer_name)
  • CREATE INDEX tenant_insurance_policies_expiration_date_300fe51d ON public.tenant_insurance_policies USING btree (expiration_date)
  • CREATE INDEX tenant_insurance_policies_effective_date_be2137a3 ON public.tenant_insurance_policies USING btree (effective_date)
  • CREATE INDEX tenant_insu_tenant__904ca5_idx ON public.tenant_insurance_policies USING btree (tenant_id, effective_date)
  • CREATE INDEX tenant_insu_yardi_p_299bd5_idx ON public.tenant_insurance_policies USING btree (yardi_policy_id)
  • CREATE INDEX tenant_insu_yardi_t_8684e4_idx ON public.tenant_insurance_policies USING btree (yardi_tenant_code)
  • CREATE UNIQUE INDEX unique_yardi_policy ON public.tenant_insurance_policies USING btree (yardi_policy_id, yardi_tenant_code) WHERE ((yardi_policy_id IS NOT NULL) AND (yardi_tenant_code IS NOT NULL))
  • CREATE INDEX tenant_insurance_policies_yardi_tenant_code_5e7a9496_like ON public.tenant_insurance_policies USING btree (yardi_tenant_code varchar_pattern_ops)
  • CREATE INDEX tenant_insurance_policies_yardi_tenant_code_5e7a9496 ON public.tenant_insurance_policies USING btree (yardi_tenant_code)
  • CREATE INDEX tenant_insurance_policies_yardi_policy_id_7334fb47_like ON public.tenant_insurance_policies USING btree (yardi_policy_id varchar_pattern_ops)
  • CREATE INDEX tenant_insurance_policies_yardi_policy_id_7334fb47 ON public.tenant_insurance_policies USING btree (yardi_policy_id)
  • CREATE INDEX tenant_insurance_policies_tenant_id_e1ee9862 ON public.tenant_insurance_policies USING btree (tenant_id)
  • CREATE INDEX tenant_insurance_policies_policy_number_aee4583a_like ON public.tenant_insurance_policies USING btree (policy_number varchar_pattern_ops)
  • CREATE INDEX tenant_insurance_policies_policy_number_aee4583a ON public.tenant_insurance_policies USING btree (policy_number)
  • CREATE UNIQUE INDEX tenant_insurance_policies_pkey ON public.tenant_insurance_policies USING btree (id)
  • CREATE INDEX tenant_insu_effecti_975135_idx ON public.tenant_insurance_policies USING btree (effective_date, expiration_date)
  • CREATE INDEX tenant_insu_expirat_138126_idx ON public.tenant_insurance_policies USING btree (expiration_date)
  • CREATE INDEX tenant_insu_policy__0803f7_idx ON public.tenant_insurance_policies USING btree (policy_number)

Sample Data (3 of 11,987 rows)

idyardi_policy_idyardi_tenant_codeyardi_property_codeyardi_raw_datayardi_last_synclease_idcurrent_rent_snapshotexpected_move_in_datelease_from_datelease_to_dateactual_move_inlease_sign_datepayment_acceptedresponsible_for_leaseinsurer_namepolicy_numberpolicy_titlepremium_amounteffective_dateexpiration_datecancel_dateliability_amountcontents_amountis_renewis_required_for_move_inis_pm_interested_partyis_tllis_pet_endorsementpending_canceloverride_policyinterface_config_idh_vendor_policyvendor_policy_idcreated_datemodified_datecreated_atupdated_attenant_id
7NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL0.0FalseProgressiveOHA58644514.152026-05-012027-05-01NULL300000.00.0FalseFalseFalseFalseFalseFalseFalse00NULLNULL2025-11-14T11:44:42.015709+01:002025-11-14T11:44:42.015733+01:0067aa2a62-826c-4375-a81b-352151a0bed8
12NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL0.0FalseAmerican Bankers Insurance Company (ABIC)REN 411115714.152025-12-122026-12-12NULL300000.00.0FalseFalseFalseFalseFalseFalseFalse00NULLNULL2025-11-14T11:44:42.051814+01:002025-11-14T11:44:42.051826+01:0082cdca8c-dab9-4c47-ad76-229b340f40a3
15NULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL0.0FalseAMERICAN BANKERS INSURANCE COMPANY OF FLORIDA970441714.152025-12-042026-12-04NULL300000.00.0FalseFalseFalseFalseFalseFalseFalse00NULLNULL2025-11-14T11:44:42.072198+01:002025-11-14T11:44:42.072215+01:001706e623-be74-4c95-bd96-cca3957ea2db
tenant_lease
6,333 rows 18 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 lease_number varchar(100) NO
3 yardi_tenant_code varchar(50) NO
4 move_in_date date YES
5 lease_begin_date date NO
6 lease_end_date date NO
7 lease_sign_date date YES
8 monthly_rent_amount numeric NO
9 due_day int4 NO
10 security_deposit numeric NO
11 status varchar(20) NO
12 yardi_raw_data jsonb YES
13 yardi_last_sync timestamptz NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 property_id uuid NO ๐Ÿ”— โ†’ properties.id
17 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
18 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_lease_tenant_id_9f1b34a6 ON public.tenant_lease USING btree (tenant_id)
  • CREATE INDEX tenant_lease_yardi_tenant_code_2e439c86_like ON public.tenant_lease USING btree (yardi_tenant_code varchar_pattern_ops)
  • CREATE INDEX tenant_lease_property_id_28d17aac ON public.tenant_lease USING btree (property_id)
  • CREATE UNIQUE INDEX tenant_lease_pkey ON public.tenant_lease USING btree (id)
  • CREATE INDEX tenant_leas_status_35f254_idx ON public.tenant_lease USING btree (status)
  • CREATE INDEX tenant_leas_tenant__dad738_idx ON public.tenant_lease USING btree (tenant_id, lease_begin_date DESC)
  • CREATE INDEX tenant_leas_unit_id_b37e01_idx ON public.tenant_lease USING btree (unit_id)
  • CREATE INDEX tenant_lease_yardi_tenant_code_2e439c86 ON public.tenant_lease USING btree (yardi_tenant_code)
  • CREATE INDEX tenant_lease_unit_id_fa82baaa ON public.tenant_lease USING btree (unit_id)
  • CREATE INDEX tenant_leas_yardi_t_8be3d3_idx ON public.tenant_lease USING btree (yardi_tenant_code)

Check Constraints

  • tenant_lease_due_day_check: (due_day >= 0)

Sample Data (3 of 6,333 rows)

idlease_numberyardi_tenant_codemove_in_datelease_begin_datelease_end_datelease_sign_datemonthly_rent_amountdue_daysecurity_depositstatusyardi_raw_datayardi_last_synccreated_atupdated_atproperty_idtenant_idunit_id
5bd2bf63-10a4-4ba0-9346-00290e5949edt0080362t00803622024-09-282024-09-282025-11-30NULL1867.011867.0active{"unit": {"bedrooms": "1", "bathrooms": "1.000000", "unit_rent": "1893.00", "unit_sqft": "700", "uni2025-10-23T15:53:39.893226+02:002025-10-22T23:50:49.160561+02:002026-04-02T15:44:06.657989+02:00573f0259-e32f-4fb9-a70f-7f0b9e5d2e46319b1d85-ac7c-49b5-9fd3-14c80b1278df8a794572-b76b-49df-aaa8-7e15d8270ffa
7c87c6fb-1f6b-4f05-931c-54c931010e76L-BAA11B072024-12-082024-12-082025-12-082024-11-221000.011000.0activeNULL2026-04-02T17:40:59.658991+02:002026-04-02T17:40:59.719091+02:002026-04-02T17:40:59.719099+02:0005336472-2b4c-40ff-88cb-db1c8760cc40baa11b07-96b9-4355-bfcf-76e4758840ea03e76754-d36c-4f8e-9c91-d903d2510931
c11fe356-223b-4453-897f-aaec2f30db29L-4CFC414A2024-11-082024-11-082025-11-082024-10-101000.011000.0activeNULL2026-04-02T17:40:59.658991+02:002026-04-02T17:40:59.726628+02:002026-04-02T17:40:59.726643+02:0005336472-2b4c-40ff-88cb-db1c8760cc404cfc414a-9660-47d2-920b-d111bee77e61046a6fd0-7cc0-419e-ba9a-45d1058674c4
tenants
6,332 rows 56 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 yardi_tenant_code varchar(50) YES
3 yardi_person_code varchar(50) YES
4 yardi_raw_data jsonb YES
5 yardi_last_sync timestamptz YES
6 first_name varchar(100) NO
7 last_name varchar(100) NO
8 email varchar(254) YES
9 phone varchar(20) YES
10 mobile_phone varchar(20) YES
11 work_phone varchar(20) YES
12 avatar varchar(200) YES
13 lease_start date NO
14 lease_end date NO
15 lease_type varchar(50) NO
16 move_in_date date YES
17 move_out_date date YES
18 notice_date date YES
19 rent numeric NO
20 unit_rent numeric YES
21 deposit numeric NO
22 pet_deposit numeric NO
23 other_deposits numeric NO
24 balance numeric NO
25 payment_due_date int4 NO
26 payment_method varchar(100) YES
27 late_fee numeric NO
28 grace_period_days int4 NO
29 nsf_fee numeric NO
30 notice_period_days int4 NO
31 renewal_option_available bool NO
32 auto_renewal_enabled bool NO
33 status varchar(20) NO
34 emergency_contact_name varchar(200) YES
35 emergency_contact_phone varchar(20) YES
36 emergency_contact_relationship varchar(100) YES
37 emergency_contact_email varchar(254) YES
38 notes text YES
39 license_number varchar(100) YES
40 car_info varchar(200) YES
41 bank_name varchar(200) YES
42 bank_account_number varchar(100) YES
43 children_info varchar(500) YES
44 children_ages varchar(200) YES
45 pets_info varchar(500) YES
46 reference varchar(200) YES
47 guarantor varchar(200) YES
48 parking_info varchar(200) YES
49 permit_decal varchar(100) YES
50 collections_status varchar(100) YES
51 broken_lease varchar(100) YES
52 created_at timestamptz NO
53 updated_at timestamptz NO
54 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
55 property_ref_id uuid NO ๐Ÿ”— โ†’ properties.id
56 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX tenants_status_80d9b6_idx ON public.tenants USING btree (status)
  • CREATE INDEX tenants_lease_s_87d4cb_idx ON public.tenants USING btree (lease_start, lease_end)
  • CREATE INDEX tenants_propert_0db657_idx ON public.tenants USING btree (property_ref_id, unit_id)
  • CREATE INDEX tenants_property_ref_id_10e3ee62 ON public.tenants USING btree (property_ref_id)
  • CREATE INDEX tenants_unit_id_1a9dd4d9 ON public.tenants USING btree (unit_id)
  • CREATE INDEX tenants_yardi_p_989491_idx ON public.tenants USING btree (yardi_person_code)
  • CREATE INDEX tenants_yardi_person_code_2216e8b3 ON public.tenants USING btree (yardi_person_code)
  • CREATE INDEX tenants_yardi_person_code_2216e8b3_like ON public.tenants USING btree (yardi_person_code varchar_pattern_ops)
  • CREATE INDEX tenants_yardi_t_7b1ad7_idx ON public.tenants USING btree (yardi_tenant_code)
  • CREATE INDEX tenants_yardi_tenant_code_b2c3c55f_like ON public.tenants USING btree (yardi_tenant_code varchar_pattern_ops)
  • CREATE UNIQUE INDEX tenants_pkey ON public.tenants USING btree (id)
  • CREATE UNIQUE INDEX tenants_yardi_tenant_code_key ON public.tenants USING btree (yardi_tenant_code)
  • CREATE INDEX tenants_created_by_id_ac6da4d6 ON public.tenants USING btree (created_by_id)
  • CREATE INDEX tenants_email_64287b_idx ON public.tenants USING btree (email)

Check Constraints

  • tenants_notice_period_days_check: (notice_period_days >= 0)
  • tenants_payment_due_date_check: (payment_due_date >= 0)
  • tenants_grace_period_days_check: (grace_period_days >= 0)

Sample Data (3 of 6,332 rows)

idyardi_tenant_codeyardi_person_codeyardi_raw_datayardi_last_syncfirst_namelast_nameemailphonemobile_phonework_phoneavatarlease_startlease_endlease_typemove_in_datemove_out_datenotice_daterentunit_rentdepositpet_depositother_depositsbalancepayment_due_datepayment_methodlate_feegrace_period_daysnsf_feenotice_period_daysrenewal_option_availableauto_renewal_enabledstatusemergency_contact_nameemergency_contact_phoneemergency_contact_relationshipemergency_contact_emailnoteslicense_numbercar_infobank_namebank_account_numberchildren_infochildren_agespets_inforeferenceguarantorparking_infopermit_decalcollections_statusbroken_leasecreated_atupdated_atcreated_by_idproperty_ref_idunit_id
baa11b07-96b9-4355-bfcf-76e4758840eaNULLNULLNULLNULLJudyHuntjudy.hunt@example.com+1 555-2956NULLNULLNULL2024-12-082025-12-08Standard2024-12-08NULLNULL1000.01000.01000.00.00.054.01NULL50.0525.030FalseFalseCurrentNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-02T17:40:59.658991+02:002026-04-02T17:40:59.658991+02:00NULL05336472-2b4c-40ff-88cb-db1c8760cc4003e76754-d36c-4f8e-9c91-d903d2510931
4cfc414a-9660-47d2-920b-d111bee77e61NULLNULLNULLNULLDanielleClarkdanielle.clark@example.com+1 555-9866NULLNULLNULL2024-11-082025-11-08Standard2024-11-08NULLNULL1000.01000.01000.00.00.00.01NULL50.0525.030FalseFalseCurrentNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-02T17:40:59.658991+02:002026-04-02T17:40:59.658991+02:00NULL05336472-2b4c-40ff-88cb-db1c8760cc40046a6fd0-7cc0-419e-ba9a-45d1058674c4
222f9dee-d67e-4175-88e7-1385cb9dd353NULLNULLNULLNULLNatalieWardnatalie.ward@example.com+1 555-3806NULLNULLNULL2025-07-062026-07-06Standard2025-07-06NULLNULL1000.01000.01000.00.00.00.01NULL50.0525.030FalseFalseCurrentNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULL2026-04-02T17:40:59.658991+02:002026-04-02T17:40:59.658991+02:00NULL05336472-2b4c-40ff-88cb-db1c8760cc400de60ee8-5ba2-447f-b872-8f8d5b2a6015
tenant_lease_lifecycle
4,617 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 lease_id uuid NO ๐Ÿ”‘ PK๐Ÿ”— โ†’ tenant_lease.id
2 lease_status varchar(20) YES 'active'::character varying
3 lease_status_changed_at timestamptz YES
4 lease_status_changed_by varchar(50) YES 'system'::character varying
5 holdover_start_date date YES
6 notice_date date YES
7 notice_move_out_date date YES
8 actual_move_out_date date YES

Foreign Keys

Indexes

  • CREATE INDEX idx_tll_lease_status ON public.tenant_lease_lifecycle USING btree (lease_status)
  • CREATE INDEX idx_tll_status_lease ON public.tenant_lease_lifecycle USING btree (lease_status, lease_id)
  • CREATE UNIQUE INDEX tenant_lease_lifecycle_pkey ON public.tenant_lease_lifecycle USING btree (lease_id)

Sample Data (3 of 4,617 rows)

lease_idlease_statuslease_status_changed_atlease_status_changed_byholdover_start_datenotice_datenotice_move_out_dateactual_move_out_date
b94f926d-8fd0-43c7-8f9d-c445882f6881active2026-03-27T17:29:09.079295+01:00migration:initialNULLNULLNULLNULL
5424e6bd-d95f-4c62-989b-2c0c2f12dfe8active2026-03-27T17:29:09.079295+01:00migration:initialNULLNULLNULLNULL
656d2cd7-24ff-4176-8431-acf47653eea8active2026-03-27T17:29:09.079295+01:00migration:initialNULLNULLNULLNULL
tenant_lease_occupant
3,954 rows 26 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 yardi_identification_code varchar(50) NO
3 identification_type varchar(50) NO
4 first_name varchar(100) NO
5 middle_name varchar(100) YES
6 last_name varchar(100) NO
7 date_of_birth date YES
8 email varchar(254) YES
9 phone varchar(20) YES
10 address_line1 varchar(255) YES
11 address_line2 varchar(255) YES
12 city varchar(100) YES
13 state varchar(50) YES
14 postal_code varchar(20) YES
15 drivers_license varchar(50) YES
16 drivers_license_state varchar(10) YES
17 is_lessee bool NO
18 is_guarantor bool NO
19 opted_into_sms bool NO
20 opted_into_email bool NO
21 custom_fields jsonb NO
22 yardi_raw_data jsonb YES
23 created_at timestamptz NO
24 updated_at timestamptz NO
25 primary_tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
26 lease_id uuid NO ๐Ÿ”— โ†’ tenant_lease.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_lease_occupant_lease_id_9a578945 ON public.tenant_lease_occupant USING btree (lease_id)
  • CREATE INDEX tenant_lease_occupant_primary_tenant_id_c0fd4b36 ON public.tenant_lease_occupant USING btree (primary_tenant_id)
  • CREATE INDEX tenant_leas_yardi_i_013efb_idx ON public.tenant_lease_occupant USING btree (yardi_identification_code)
  • CREATE INDEX tenant_leas_primary_60aff9_idx ON public.tenant_lease_occupant USING btree (primary_tenant_id)
  • CREATE INDEX tenant_leas_lease_i_5aa6cd_idx ON public.tenant_lease_occupant USING btree (lease_id)
  • CREATE UNIQUE INDEX tenant_lease_occupant_pkey ON public.tenant_lease_occupant USING btree (id)

Sample Data (3 of 3,954 rows)

idyardi_identification_codeidentification_typefirst_namemiddle_namelast_namedate_of_birthemailphoneaddress_line1address_line2citystatepostal_codedrivers_licensedrivers_license_stateis_lesseeis_guarantoropted_into_smsopted_into_emailcustom_fieldsyardi_raw_datacreated_atupdated_atprimary_tenant_idlease_id
d940647e-994b-4fae-8945-06aa0f5b3809r0049638RoommateJanetLGeorgeNULL149231@yardi.scrub1615 East Sycamore StreetNULLKokomoIN46901NULLNULLFalseFalseFalseFalse{}{"email": "149231@yardi.scrub", "address": {"city": "Kokomo", "line1": "1615 East Sycamore Street", 2025-10-23T15:58:55.890427+02:002025-10-23T15:58:55.890442+02:007ddc096a-713f-40f4-90bd-de28f8b490a50b375fbe-8ed5-4d80-898d-7241c7f807db
8795bbf3-abc8-48b3-b65e-3f2440c797d3t0084351OtherAshleyEileenDonlan2002-04-212881@yardi.scrub2925 South Kitley AveNULLIndianapolisIN462035410398491INFalseFalseFalseFalse{}{"email": "2881@yardi.scrub", "address": {"city": "Indianapolis", "line1": "2925 South Kitley Ave", 2025-10-23T15:58:55.893958+02:002025-10-23T15:58:55.893971+02:00088456e9-6b4a-4104-9320-6f021031b5f5c8f04ea7-888c-4241-823b-dcd678927f7b
98f44a98-544c-4d48-90ee-72c2e111e68ct0083390OtherLaurenclareEhrlich1999-09-1885055@yardi.scrub430 s dunn stAPT 201bloomingtonIN47401NULLNULLFalseFalseFalseFalse{}{"email": "85055@yardi.scrub", "address": {"city": "bloomington", "line1": "430 s dunn st", "line2":2025-10-23T15:58:55.89671+02:002025-10-23T15:58:55.896722+02:004d5bb46e-a191-4e25-bb8d-03d33c902ba39c7ca0dd-54d9-4684-85df-f99848235e71
tenant_employment
3,460 rows 19 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 company_name varchar(200) NO
3 job_title varchar(200) YES
4 address_line1 varchar(255) YES
5 address_line2 varchar(255) YES
6 city varchar(100) YES
7 state varchar(50) YES
8 postal_code varchar(20) YES
9 employer_phone varchar(20) YES
10 income_source varchar(200) NO
11 income_amount numeric YES
12 payment_period varchar(20) NO
13 last_date_employed date YES
14 end_date_employed date YES
15 is_current bool NO
16 yardi_raw_data jsonb YES
17 created_at timestamptz NO
18 updated_at timestamptz NO
19 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX tenant_employment_pkey ON public.tenant_employment USING btree (id)
  • CREATE INDEX tenant_empl_tenant__3503a5_idx ON public.tenant_employment USING btree (tenant_id, last_date_employed DESC)
  • CREATE INDEX tenant_empl_is_curr_928615_idx ON public.tenant_employment USING btree (is_current)
  • CREATE INDEX tenant_employment_tenant_id_f989a4f2 ON public.tenant_employment USING btree (tenant_id)

Sample Data (3 of 3,460 rows)

idcompany_namejob_titleaddress_line1address_line2citystatepostal_codeemployer_phoneincome_sourceincome_amountpayment_periodlast_date_employedend_date_employedis_currentyardi_raw_datacreated_atupdated_attenant_id
f9993da0-16a0-4821-9e8e-f5ac7701671dHopebridgeTherapist 21 S Park BlvdNULLGreenwoodIN461423176082824Hopebridge2584.0Monthly2107-11-01NULLTrue{"city": "Greenwood", "state": "IN", "job_title": "Therapist ", "postal_code": "46142", "company_nam2025-10-23T15:59:22.094211+02:002025-10-23T15:59:22.094229+02:0007a74b37-21a8-42ad-9595-11712fd25da0
d3d5ff80-8b13-4acf-9c2e-c65aee66f13bKrogerDSD Receiver4100 hunt roadNULLBlue ashOH452365137921500Kroger4000.0Monthly2025-09-12NULLTrue{"city": "Blue ash", "state": "OH", "job_title": "DSD Receiver", "postal_code": "45236", "company_na2025-10-23T15:59:22.098814+02:002025-10-23T15:59:22.098837+02:00cf79c0b4-a6bb-48fd-830d-8f5652956a3b
b6dbf07e-4c42-4ffa-83d5-3c3ad636f3f6Indy-GoDriver1501 W Washington StNULLIndianapolisIN462183176149246Indy-Go3600.0Monthly2025-09-03NULLTrue{"city": "Indianapolis", "state": "IN", "job_title": "Driver", "postal_code": "46218", "company_name2025-10-23T15:59:22.102684+02:002025-10-23T15:59:22.102705+02:00bf4e486d-0713-4f76-a50a-807f0fb18ae1
tenant_emergency_contact
2,998 rows 14 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 relationship varchar(100) NO
3 name varchar(200) NO
4 address_line1 varchar(255) YES
5 address_line2 varchar(255) YES
6 city varchar(100) YES
7 state varchar(50) YES
8 postal_code varchar(20) YES
9 phones jsonb NO
10 is_primary bool NO
11 yardi_raw_data jsonb YES
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_emer_is_prim_bd0cde_idx ON public.tenant_emergency_contact USING btree (is_primary)
  • CREATE UNIQUE INDEX tenant_emergency_contact_pkey ON public.tenant_emergency_contact USING btree (id)
  • CREATE INDEX tenant_emergency_contact_tenant_id_dcffa91f ON public.tenant_emergency_contact USING btree (tenant_id)
  • CREATE INDEX tenant_emer_tenant__edc162_idx ON public.tenant_emergency_contact USING btree (tenant_id)

Sample Data (3 of 2,998 rows)

idrelationshipnameaddress_line1address_line2citystatepostal_codephonesis_primaryyardi_raw_datacreated_atupdated_attenant_id
d1ac19f5-e64f-4a59-9998-38dbdad7bcf6Other* Anthony KirkseyNULLNULLNULLNULLNULL{"other": "2692674925"}True{"city": null, "name": "* Anthony Kirksey", "state": null, "phones": {"other": "2692674925"}, "posta2025-10-23T15:59:41.341308+02:002025-10-23T15:59:41.341391+02:003e713e6c-d610-4667-8636-5cff8fec5cf3
ce8eba02-9195-42ae-a427-cd53ffb42e36* Charlie ParadineNULLNULLNULLNULLNULL{"other": "2693776445"}True{"city": null, "name": "* Charlie Paradine", "state": null, "phones": {"other": "2693776445"}, "post2025-10-23T15:59:41.345643+02:002025-10-23T15:59:41.345665+02:0067e67999-2a48-4a4b-bd3f-b6ec9ce72408
e9de6dd4-da19-4a0c-bd82-3f847248b907* Haley BoydNULLNULLNULLNULLNULL{"other": "2697442264"}True{"city": null, "name": "* Haley Boyd", "state": null, "phones": {"other": "2697442264"}, "postal_cod2025-10-23T15:59:41.349081+02:002025-10-23T15:59:41.349104+02:009c87e3f4-5216-4459-ba0b-2e89933a1da3
tenant_pets
1,933 rows 13 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 pet_type varchar(50) NO
4 breed varchar(100) YES
5 weight numeric YES
6 age int4 YES
7 color varchar(100) YES
8 vaccination_record varchar(100) YES
9 pet_photo varchar(100) YES
10 notes text YES
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_pets_tenant_id_558c8743 ON public.tenant_pets USING btree (tenant_id)
  • CREATE UNIQUE INDEX tenant_pets_pkey ON public.tenant_pets USING btree (id)

Check Constraints

  • tenant_pets_age_check: (age >= 0)

Sample Data (3 of 1,933 rows)

idnamepet_typebreedweightagecolorvaccination_recordpet_photonotescreated_atupdated_attenant_id
eb58b5ca-270c-459a-883a-c49702d96bb1RockyDogBoxer63.311FawnNULLNULLNULL2026-03-27T11:35:09.971688+01:002026-03-27T11:35:09.971705+01:004bac3a97-580d-437f-b330-4e8f366ccc96
f0aead83-f0bc-461e-b28e-75b578b9bc31LeoCatScottish Fold8.910GrayNULLNULLNULL2026-03-27T11:35:09.979131+01:002026-03-27T11:35:09.97914+01:00a8455ddc-cace-4864-a1bd-b7b513fa8339
28ae5db4-84d7-43e9-af2c-ea0835f99d2aLunaDogGerman Shepherd71.94Black and TanNULLNULLNULL2026-03-27T11:35:09.980564+01:002026-03-27T11:35:09.980579+01:004fce8fe1-3a2a-4b4d-961f-269686c6c4fc
tenants_applicant
154 rows 19 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 yardi_tenant_code varchar(50) NO
3 yardi_person_code varchar(50) NO
4 first_name varchar(100) NO
5 last_name varchar(100) NO
6 email varchar(254) NO
7 phone varchar(20) NO
8 application_date date YES
9 status varchar(50) NO
10 yardi_raw_data jsonb NO
11 yardi_last_sync timestamptz YES
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 notes text NO
15 converted_to_tenant bool NO
16 conversion_date timestamptz YES
17 desired_unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id
18 property_ref_id uuid YES ๐Ÿ”— โ†’ properties.id
19 tenant_id uuid YES ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX tenants_applicant_yardi_tenant_code_dac5db72_like ON public.tenants_applicant USING btree (yardi_tenant_code varchar_pattern_ops)
  • CREATE UNIQUE INDEX tenants_applicant_yardi_tenant_code_key ON public.tenants_applicant USING btree (yardi_tenant_code)
  • CREATE UNIQUE INDEX tenants_applicant_pkey ON public.tenants_applicant USING btree (id)
  • CREATE INDEX tenants_applicant_tenant_id_9d485f23 ON public.tenants_applicant USING btree (tenant_id)
  • CREATE INDEX tenants_applicant_property_ref_id_8e30b9a1 ON public.tenants_applicant USING btree (property_ref_id)
  • CREATE INDEX tenants_applicant_desired_unit_id_1cb5fd08 ON public.tenants_applicant USING btree (desired_unit_id)
  • CREATE INDEX tenants_app_yardi_t_1bea3c_idx ON public.tenants_applicant USING btree (yardi_tenant_code)
  • CREATE INDEX tenants_app_convert_3cf1c0_idx ON public.tenants_applicant USING btree (converted_to_tenant)
  • CREATE INDEX tenants_app_propert_305e8a_idx ON public.tenants_applicant USING btree (property_ref_id, status)

Sample Data (3 of 154 rows)

idyardi_tenant_codeyardi_person_codefirst_namelast_nameemailphoneapplication_datestatusyardi_raw_datayardi_last_synccreated_atupdated_atnotesconverted_to_tenantconversion_datedesired_unit_idproperty_ref_idtenant_id
1t0058867p0234243YnfinityTaylor43392@yardi.scrubNULLApplicant{"rent": "702.00", "email": "43392@yardi.scrub", "status": "Applicant", "last_name": "Taylor", "unit2025-10-31T15:38:04.234638+01:002025-10-31T14:55:11.836724+01:002025-10-31T15:38:04.236746+01:00FalseNULLa3c217e4-6f15-4492-8390-f97e87e409d2a03e48a1-5e56-4c8b-b817-cbe072bb6056NULL
2t0055391p0217002VinothPattaiyan81903@yardi.scrubNULLApplicant{"rent": "734.00", "email": "81903@yardi.scrub", "status": "Applicant", "last_name": "Pattaiyan", "u2025-10-31T15:38:05.052462+01:002025-10-31T14:55:12.982086+01:002025-10-31T15:38:05.054183+01:00FalseNULL40fa5bc6-367a-484e-89fa-f2c200ff6f27a03e48a1-5e56-4c8b-b817-cbe072bb6056NULL
3t0066078p0273919DaShawnJohnson69938@yardi.scrubNULLApplicant{"rent": "839.00", "email": "69938@yardi.scrub", "status": "Applicant", "last_name": "Johnson", "uni2025-10-31T15:38:06.519503+01:002025-10-31T14:55:15.129238+01:002025-10-31T15:38:06.521519+01:00FalseNULLa5151f2a-d8fe-4075-9464-b9e73d2f9818a03e48a1-5e56-4c8b-b817-cbe072bb6056NULL
tenant_portal_maintenance_photos
59 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 maintenance_request_id uuid NO
3 file_url varchar(500) NO
4 thumbnail_url varchar(500) YES
5 file_name varchar(255) NO
6 file_size int4 NO
7 phase varchar(20) NO
8 caption varchar(500) NO
9 uploaded_by_type varchar(20) NO
10 uploaded_by_id uuid YES
11 created_at timestamptz NO

Indexes

  • CREATE INDEX tenant_portal_maintenance__maintenance_request_id_302de590 ON public.tenant_portal_maintenance_photos USING btree (maintenance_request_id)
  • CREATE UNIQUE INDEX tenant_portal_maintenance_photos_pkey ON public.tenant_portal_maintenance_photos USING btree (id)

Sample Data (3 of 59 rows)

idmaintenance_request_idfile_urlthumbnail_urlfile_namefile_sizephasecaptionuploaded_by_typeuploaded_by_idcreated_at
4ea33ea1-3b18-492a-a9bf-96653b90e62334d8a1c3-09b6-47ba-aa05-5af18ca4bfd1/assets/wo-photos/clogged-drain-1.jpg/assets/wo-photos/clogged-drain-1.jpgclogged-drain-1.jpg245000requestMaster bath sink draining very slowlystaffNULL2026-04-02T14:06:01.556179+02:00
28e9ac08-ad1c-4a48-9369-e62569c6a10734d8a1c3-09b6-47ba-aa05-5af18ca4bfd1/assets/wo-photos/clogged-drain-2.jpg/assets/wo-photos/clogged-drain-2.jpgclogged-drain-2.jpg245000inspectionP-trap with hair and soap buildupstaffNULL2026-04-02T14:06:01.558784+02:00
c7bc6e91-b404-4ad7-bcb4-f98756c835ee88d5cd38-a6bf-44df-999c-85f9750a814e/assets/wo-photos/exit-sign-1.jpg/assets/wo-photos/exit-sign-1.jpgexit-sign-1.jpg245000requestExit sign above east stairwell โ€” not illuminatedstaffNULL2026-04-02T14:06:01.560272+02:00
tenant_message
30 rows 16 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 tenant_id uuid YES
3 unit_id uuid YES
4 tenant_name varchar(200) NO ''::character varying
5 unit_number varchar(50) NO ''::character varying
6 message_text text NO
7 channel varchar(10) NO 'portal'::character varying
8 category varchar(20) NO 'general'::character varying
9 urgency varchar(10) NO 'low'::character varying
10 intent varchar(200) NO ''::character varying
11 is_emergency bool NO false
12 auto_response text YES
13 ai_suggested_response text NO ''::text
14 work_order_created bool NO false
15 sentiment_score float8 NO 0.0
16 created_at timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX tenant_message_pkey ON public.tenant_message USING btree (id)

Sample Data (3 of 30 rows)

idtenant_idunit_idtenant_nameunit_numbermessage_textchannelcategoryurgencyintentis_emergencyauto_responseai_suggested_responsework_order_createdsentiment_scorecreated_at
188eae92-25bc-4345-b465-7bb188d6cd16NULLNULLJames Mitchell1AI would like to add my partner to the lease. We have been living together for 6 ...portalleasemediumLease inquiry from tenant in unit 1AFalseYour lease inquiry has been received. A member of our leasing team will respond ...Hi James, thank you for contacting us. I have reviewed your message regarding yo...False0.22026-02-08T11:59:08.401625+01:00
fbabffd0-732c-4d3d-ba1a-91dbad809b94NULLNULLSarah Chen1BI'm confused about my current balance. The portal shows $2,400 but my lease says...emailbillingmediumBilling inquiry from tenant in unit 1BFalseYour message has been received and our billing team will respond within 1 busine...Hi Sarah, thank you for contacting us. I have reviewed your message regarding yo...False-0.22026-03-21T12:59:08.402992+01:00
e646ec6e-7efc-4d64-9b98-eb9d35a82e30NULLNULLMarcus Williams2AI am very unhappy with how my last maintenance request was handled. The technici...smscomplainthighComplaint inquiry from tenant in unit 2AFalseWe have received your complaint and take your concerns seriously. A property man...Hi Marcus, thank you for contacting us. I have reviewed your message regarding y...False-0.82026-02-24T15:59:08.404161+01:00
tenant_sentiment
25 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 tenant_id uuid YES
3 unit_id uuid YES
4 tenant_name varchar(200) NO ''::character varying
5 unit_number varchar(50) NO ''::character varying
6 churn_probability float8 NO 0.0
7 risk_level varchar(10) NO 'low'::character varying
8 sentiment_history jsonb NO '[]'::jsonb
9 contributing_factors jsonb NO '[]'::jsonb
10 recommended_action text NO ''::text
11 last_updated timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX tenant_sentiment_pkey ON public.tenant_sentiment USING btree (id)

Sample Data (3 of 25 rows)

idtenant_idunit_idtenant_nameunit_numberchurn_probabilityrisk_levelsentiment_historycontributing_factorsrecommended_actionlast_updated
98724689-5bc9-4a61-aef9-47fe23ea1602NULLNULLJames Mitchell3B0.91critical[{"date": "2025-10-30", "score": -0.83}, {"date": "2025-11-29", "score": -0.72}, {"date": "2025-12-2["3 unresolved maintenance requests in 60 days", "Late fee dispute still open after 6 weeks", "NoiseSchedule an urgent call within 24 hours. Offer concession on disputed late fee. ...2026-03-29T20:59:08.432161+02:00
0540fbf6-714b-4f0e-bf27-30ca15a77823NULLNULLSarah Chen7A0.88critical[{"date": "2025-10-30", "score": -0.32}, {"date": "2025-11-29", "score": -0.47}, {"date": "2025-12-2["Lease renewal not yet discussed \u2014 45 days to expiry", "Submitted 4 complaints about neighbor Contact tenant immediately to discuss lease renewal and present a competitive ra...2026-03-29T20:59:08.433077+02:00
8cd1fcf6-48d2-46fe-a6f7-a3aeccaa83d9NULLNULLMarcus Williams12A0.84critical[{"date": "2025-10-30", "score": -0.47}, {"date": "2025-11-29", "score": -0.49}, {"date": "2025-12-2["AC repair outstanding for 3 weeks during summer", "Missed the last two rental payment due dates", Inspect and repair AC unit within 48 hours as top priority. Initiate a compassio...2026-03-29T20:59:08.434023+02:00
tenant_portal_maintenance_messages
19 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 maintenance_request_id uuid NO
3 sender_type varchar(20) NO
4 sender_id uuid YES
5 sender_name varchar(200) NO
6 message text NO
7 is_read bool NO
8 read_at timestamptz YES
9 attachment_url varchar(500) YES
10 attachment_name varchar(255) YES
11 created_at timestamptz NO

Indexes

  • CREATE INDEX tenant_portal_maintenance__maintenance_request_id_1ba6832a ON public.tenant_portal_maintenance_messages USING btree (maintenance_request_id)
  • CREATE UNIQUE INDEX tenant_portal_maintenance_messages_pkey ON public.tenant_portal_maintenance_messages USING btree (id)

Sample Data (3 of 19 rows)

idmaintenance_request_idsender_typesender_idsender_namemessageis_readread_atattachment_urlattachment_namecreated_at
d6f6ff06-d58b-4f0f-81a3-8163859c21e0aea1bcd6-2720-437f-a366-f113b045a5adsystemNULLSystemMaintenance request submitted by Tenant 0606True2026-03-24T16:56:37.461438+01:00NULLNULL2026-03-24T16:56:37.380966+01:00
7797de13-c81a-4780-a9e7-0b37ae70acfcaea1bcd6-2720-437f-a366-f113b045a5adtenant6039c315-ce67-4e31-b9c9-42d00705677fTenant 0606helloTrue2026-03-24T16:58:50.977046+01:00NULLNULL2026-03-24T16:58:46.707671+01:00
3d1bac57-bd79-41d3-a50d-84972fe9be88aea1bcd6-2720-437f-a366-f113b045a5adpmNULLProperty Managerhello we received your ticketTrue2026-03-24T16:59:07.45952+01:00NULLNULL2026-03-24T16:59:02.728915+01:00
tenant_broadcast
8 rows 8 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 title varchar(300) NO
3 message_text text NO
4 audience_filter jsonb NO '{}'::jsonb
5 channel varchar(10) NO 'email'::character varying
6 delivery_count int4 NO 0
7 read_count int4 NO 0
8 sent_at timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX tenant_broadcast_pkey ON public.tenant_broadcast USING btree (id)

Sample Data (3 of 8 rows)

idtitlemessage_textaudience_filterchanneldelivery_countread_countsent_at
7afab905-1161-430f-ab0d-09a0c21afdedScheduled Water Shutoff โ€” December 15Dear Residents, we will be conducting necessary plumbing maintenance on December...{}email112782026-03-24T19:59:08.424017+01:00
51ce00c2-bf4a-4736-addc-83b909f41c7eHoliday Office Hours โ€” December 24 to January 2The management office will be operating on reduced hours during the holiday seas...{}email1741062026-03-19T19:59:08.42481+01:00
ef2fac35-c803-4dd0-8599-0768bf5b2589Rent Increase Notice โ€” Effective February 1In accordance with your lease agreement and current market conditions, your rent...{}email1571152026-03-14T19:59:08.425926+01:00
tenant_availability
1 rows 16 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 preferred_days jsonb YES '[]'::jsonb
4 preferred_time_slots jsonb YES '[]'::jsonb
5 availability_windows jsonb YES '[]'::jsonb
6 permission_to_enter bool YES false
7 entry_instructions text YES ''::text
8 preferred_contact_method varchar(20) YES 'portal'::character varying
9 contact_phone varchar(20) YES ''::character varying
10 contact_email varchar(254) YES ''::character varying
11 earliest_date date YES
12 latest_date date YES
13 is_flexible_on_dates bool YES true
14 special_instructions text YES ''::text
15 created_at timestamptz YES now()
16 updated_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX tenant_availability_work_order_id_key ON public.tenant_availability USING btree (work_order_id)
  • CREATE UNIQUE INDEX tenant_availability_pkey ON public.tenant_availability USING btree (id)

Sample Data (1 of 1 rows)

idwork_order_idpreferred_dayspreferred_time_slotsavailability_windowspermission_to_enterentry_instructionspreferred_contact_methodcontact_phonecontact_emailearliest_datelatest_dateis_flexible_on_datesspecial_instructionscreated_atupdated_at
90208699-bec4-42de-93bb-0a0b153630a6c590bdbe-0a5c-4543-83b8-82231a61802b["monday", "tuesday", "wednesday"]["morning", "afternoon"][{"date": "2026-01-22", "time_slots": ["morning", "afternoon"]}, {"date": "2026-01-23", "time_slots"TrueKey is under the matphone555-123-4567NULLNULLTrue2026-01-20T19:02:09.88904+01:002026-01-20T19:02:09.889062+01:00
tenant_activities
0 rows 11 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 activity_type varchar(50) NO
3 title varchar(255) NO
4 description text NO
5 timestamp timestamptz NO
6 is_important bool NO
7 metadata jsonb NO
8 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
9 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
10 related_document_id uuid YES ๐Ÿ”— โ†’ tenant_documents.id
11 related_ledger_entry_id uuid YES ๐Ÿ”— โ†’ tenant_ledger_entry.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_activities_created_by_id_5dfbb4bb ON public.tenant_activities USING btree (created_by_id)
  • CREATE INDEX tenant_activities_related_document_id_89ba0a70 ON public.tenant_activities USING btree (related_document_id)
  • CREATE INDEX tenant_activities_related_ledger_entry_id_6e3f2ae9 ON public.tenant_activities USING btree (related_ledger_entry_id)
  • CREATE INDEX tenant_activities_tenant_id_cac74964 ON public.tenant_activities USING btree (tenant_id)
  • CREATE INDEX tenant_acti_activit_8e8a52_idx ON public.tenant_activities USING btree (activity_type)
  • CREATE UNIQUE INDEX tenant_activities_pkey ON public.tenant_activities USING btree (id)
  • CREATE INDEX tenant_acti_tenant__c1c63f_idx ON public.tenant_activities USING btree (tenant_id, "timestamp" DESC)

Sample Data (0 of 0 rows)

No data

tenant_documents
0 rows 14 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(255) NO
3 document_type varchar(50) NO
4 file varchar(100) NO
5 file_size int4 NO
6 file_type varchar(10) NO
7 description text YES
8 uploaded_at timestamptz NO
9 is_confidential bool NO
10 requires_signature bool NO
11 signed_at timestamptz YES
12 expiry_date date YES
13 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
14 uploaded_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_documents_tenant_id_5053e563 ON public.tenant_documents USING btree (tenant_id)
  • CREATE INDEX tenant_docu_documen_122d3d_idx ON public.tenant_documents USING btree (document_type)
  • CREATE INDEX tenant_documents_uploaded_by_id_37e4189a ON public.tenant_documents USING btree (uploaded_by_id)
  • CREATE UNIQUE INDEX tenant_documents_pkey ON public.tenant_documents USING btree (id)
  • CREATE INDEX tenant_docu_tenant__3826ab_idx ON public.tenant_documents USING btree (tenant_id, document_type)

Check Constraints

  • tenant_documents_file_size_check: (file_size >= 0)

Sample Data (0 of 0 rows)

No data

tenant_portal_autopay
0 rows 11 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 day_of_month int4 NO
4 amount numeric YES
5 is_active bool NO
6 next_charge_date date YES
7 last_charge_date date YES
8 last_charge_status varchar(20) YES
9 enrolled_at timestamptz NO
10 updated_at timestamptz NO
11 payment_method_id uuid NO ๐Ÿ”— โ†’ tenant_portal_payment_methods.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_portal_autopay_payment_method_id_284e76e5 ON public.tenant_portal_autopay USING btree (payment_method_id)
  • CREATE UNIQUE INDEX tenant_portal_autopay_pkey ON public.tenant_portal_autopay USING btree (id)
  • CREATE UNIQUE INDEX tenant_portal_autopay_tenant_id_key ON public.tenant_portal_autopay USING btree (tenant_id)

Sample Data (0 of 0 rows)

No data

tenant_portal_documents
0 rows 14 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 document_type varchar(20) NO
4 title varchar(255) NO
5 description text NO
6 file_url varchar(500) NO
7 file_name varchar(255) NO
8 file_size int4 NO
9 mime_type varchar(100) NO
10 is_signed bool NO
11 requires_signature bool NO
12 signed_at timestamptz YES
13 uploaded_at timestamptz NO
14 expires_at date YES

Indexes

  • CREATE INDEX tenant_portal_documents_tenant_id_dd96a346 ON public.tenant_portal_documents USING btree (tenant_id)
  • CREATE UNIQUE INDEX tenant_portal_documents_pkey ON public.tenant_portal_documents USING btree (id)

Sample Data (0 of 0 rows)

No data

tenant_portal_notifications
0 rows 12 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 notification_type varchar(30) NO
4 title varchar(255) NO
5 message text NO
6 reference_type varchar(50) YES
7 reference_id uuid YES
8 is_read bool NO
9 read_at timestamptz YES
10 push_sent bool NO
11 push_sent_at timestamptz YES
12 created_at timestamptz NO

Indexes

  • CREATE INDEX tenant_port_tenant__0e607c_idx ON public.tenant_portal_notifications USING btree (tenant_id, is_read)
  • CREATE UNIQUE INDEX tenant_portal_notifications_pkey ON public.tenant_portal_notifications USING btree (id)
  • CREATE INDEX tenant_portal_notifications_tenant_id_2b4e0495 ON public.tenant_portal_notifications USING btree (tenant_id)

Sample Data (0 of 0 rows)

No data

tenant_portal_payment_methods
0 rows 15 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 stripe_customer_id varchar(255) YES
4 stripe_payment_method_id varchar(255) NO
5 type varchar(20) NO
6 brand varchar(50) NO
7 last_four varchar(4) NO
8 exp_month int4 YES
9 exp_year int4 YES
10 bank_name varchar(200) YES
11 nickname varchar(100) YES
12 is_default bool NO
13 is_active bool NO
14 created_at timestamptz NO
15 updated_at timestamptz NO

Indexes

  • CREATE INDEX tenant_portal_payment_me_stripe_payment_method_id_0d4055ca_like ON public.tenant_portal_payment_methods USING btree (stripe_payment_method_id varchar_pattern_ops)
  • CREATE INDEX tenant_portal_payment_methods_tenant_id_af263bc2 ON public.tenant_portal_payment_methods USING btree (tenant_id)
  • CREATE UNIQUE INDEX tenant_portal_payment_methods_pkey ON public.tenant_portal_payment_methods USING btree (id)
  • CREATE UNIQUE INDEX tenant_portal_payment_methods_stripe_payment_method_id_key ON public.tenant_portal_payment_methods USING btree (stripe_payment_method_id)

Sample Data (0 of 0 rows)

No data

tenant_portal_payments
0 rows 17 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 amount numeric NO
4 currency varchar(3) NO
5 payment_type varchar(20) NO
6 description varchar(500) NO
7 stripe_payment_intent_id varchar(255) YES
8 stripe_charge_id varchar(255) YES
9 status varchar(20) NO
10 failure_reason text YES
11 receipt_url varchar(500) YES
12 receipt_number varchar(100) YES
13 ledger_entry_id uuid YES
14 paid_at timestamptz YES
15 created_at timestamptz NO
16 updated_at timestamptz NO
17 payment_method_id uuid YES ๐Ÿ”— โ†’ tenant_portal_payment_methods.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_port_tenant__27fceb_idx ON public.tenant_portal_payments USING btree (tenant_id, status)
  • CREATE INDEX tenant_port_stripe__17c727_idx ON public.tenant_portal_payments USING btree (stripe_payment_intent_id)
  • CREATE UNIQUE INDEX tenant_portal_payments_pkey ON public.tenant_portal_payments USING btree (id)
  • CREATE INDEX tenant_portal_payments_tenant_id_ec0eb878 ON public.tenant_portal_payments USING btree (tenant_id)
  • CREATE INDEX tenant_portal_payments_payment_method_id_14a390e5 ON public.tenant_portal_payments USING btree (payment_method_id)

Sample Data (0 of 0 rows)

No data

tenant_restrictions
0 rows 14 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 smoking_allowed bool NO
3 pets_allowed bool NO
4 pets_details varchar(500) YES
5 max_occupants int4 NO
6 subletting_allowed bool NO
7 alterations_allowed varchar(100) NO
8 bbq_grill_allowed bool NO
9 balcony_furniture_allowed bool NO
10 commercial_use_allowed bool NO
11 notes text YES
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX tenant_restrictions_tenant_id_key ON public.tenant_restrictions USING btree (tenant_id)
  • CREATE UNIQUE INDEX tenant_restrictions_pkey ON public.tenant_restrictions USING btree (id)

Check Constraints

  • tenant_restrictions_max_occupants_check: (max_occupants >= 0)

Sample Data (0 of 0 rows)

No data

tenant_utilities
0 rows 9 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 utility_type varchar(50) NO
3 responsibility varchar(50) NO
4 provider varchar(200) YES
5 account_number varchar(100) YES
6 notes text YES
7 created_at timestamptz NO
8 updated_at timestamptz NO
9 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX tenant_utilities_tenant_id_616ccbc4 ON public.tenant_utilities USING btree (tenant_id)
  • CREATE UNIQUE INDEX tenant_utilities_pkey ON public.tenant_utilities USING btree (id)
  • CREATE UNIQUE INDEX tenant_utilities_tenant_id_utility_type_fc7c2644_uniq ON public.tenant_utilities USING btree (tenant_id, utility_type)

Sample Data (0 of 0 rows)

No data

๐Ÿข Properties & Units 16 tables ยท 13,155 rows
units_unit
6,666 rows 17 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 unit_number varchar(50) NO
3 bedrooms int4 YES
4 bathrooms numeric YES
5 square_feet int4 YES
6 market_rent numeric YES
7 current_rent numeric YES
8 status varchar(20) NO
9 features jsonb NO
10 yardi_unit_id varchar(100) NO
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 building_id uuid YES ๐Ÿ”— โ†’ properties_building.id
14 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
15 property_id uuid NO ๐Ÿ”— โ†’ properties.id
16 unit_type_id uuid YES ๐Ÿ”— โ†’ units_type.id
17 floor_number int4 YES

Foreign Keys

Indexes

  • CREATE INDEX units_unit_created_by_id_722b994c ON public.units_unit USING btree (created_by_id)
  • CREATE UNIQUE INDEX units_unit_property_id_unit_number_9e97e338_uniq ON public.units_unit USING btree (property_id, unit_number)
  • CREATE INDEX units_unit_building_id_832002e6 ON public.units_unit USING btree (building_id)
  • CREATE INDEX units_unit_unit_type_id_365c7247 ON public.units_unit USING btree (unit_type_id)
  • CREATE UNIQUE INDEX units_unit_pkey ON public.units_unit USING btree (id)
  • CREATE INDEX units_unit_property_id_58eab529 ON public.units_unit USING btree (property_id)

Check Constraints

  • units_unit_bedrooms_check: (bedrooms >= 0)
  • units_unit_square_feet_check: (square_feet >= 0)
  • units_unit_floor_number_check: (floor_number >= 0)

Sample Data (3 of 6,666 rows)

idunit_numberbedroomsbathroomssquare_feetmarket_rentcurrent_rentstatusfeaturesyardi_unit_idcreated_atupdated_atbuilding_idcreated_by_idproperty_idunit_type_idfloor_number
2144f507-6282-4cb5-8a44-67c21eea0fa901311.07501000.0NULLoccupied{}country-0132026-01-19T14:28:58.501801+01:002026-01-19T14:28:58.501802+01:00523ad784-6014-49a6-932b-2078c7182aa9NULLb4837704-3fe2-4a6f-8f12-394d38987f41NULL1
963746f6-6dab-4474-9326-0affb2028e7e4859D11.0700840.0NULLoccupied{"address": {"city": "Indianapolis", "type": "property", "line1": "4859 Pendragon Blvd # D 4859D", 48652025-10-22T14:55:15.07792+02:002026-01-13T03:33:14.973591+01:00258a8b7c-e0ae-4610-9efd-fa44fb1e2997NULLac632223-fff6-484f-9243-9ee0984cd8a22487235e-642a-4283-9737-cdb63d8fbff84
d1fca4fd-fee2-4738-9443-97fd76f680f412611.07501000.0NULLoccupied{}country-1262026-01-19T14:28:58.535883+01:002026-01-19T14:28:58.535885+01:007367d99f-e3c0-42e2-810a-71bf89802b2eNULLb4837704-3fe2-4a6f-8f12-394d38987f41NULL1
properties_activity
5,527 rows 13 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 action varchar(50) NO
3 description text NO
4 field_name varchar(100) NO
5 old_value text NO
6 new_value text NO
7 changes jsonb NO
8 metadata jsonb NO
9 user_email varchar(254) NO
10 user_name varchar(200) NO
11 created_at timestamptz NO
12 property_id uuid NO ๐Ÿ”— โ†’ properties.id
13 user_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX properties_activity_property_id_a65fc18e ON public.properties_activity USING btree (property_id)
  • CREATE UNIQUE INDEX properties_activity_pkey ON public.properties_activity USING btree (id)
  • CREATE INDEX properties__action_9e5390_idx ON public.properties_activity USING btree (action, created_at DESC)
  • CREATE INDEX properties__propert_97364c_idx ON public.properties_activity USING btree (property_id, created_at DESC)
  • CREATE INDEX properties__user_id_569413_idx ON public.properties_activity USING btree (user_id, created_at DESC)
  • CREATE INDEX properties_activity_created_at_a0d20dea ON public.properties_activity USING btree (created_at)
  • CREATE INDEX properties_activity_user_id_df6bbdad ON public.properties_activity USING btree (user_id)

Sample Data (3 of 5,527 rows)

idactiondescriptionfield_nameold_valuenew_valuechangesmetadatauser_emailuser_namecreated_atproperty_iduser_id
c0729550-6bd9-4c70-a462-028267e94782updatedProperty updated: Total Units{"total_units": {"new": "194", "old": "0", "label": "Total Units"}}{"change_count": 1, "changed_fields": ["Total Units"]}2025-10-18T04:30:06.207937+02:009220b4cf-6966-4b42-8534-dc802039b024NULL
1c56acfa-be2b-4f2e-82a3-fbd3174b09eeupdatedProperty updated: Total Units{"total_units": {"new": "286", "old": "0", "label": "Total Units"}}{"change_count": 1, "changed_fields": ["Total Units"]}2025-10-18T04:30:16.508196+02:0035b664ba-bb75-4318-ae24-07b47a445345NULL
cacffd8d-f06a-4146-98af-cbafd56496f4updatedProperty updated: Total Units{"total_units": {"new": "348", "old": "0", "label": "Total Units"}}{"change_count": 1, "changed_fields": ["Total Units"]}2025-10-18T04:30:27.472084+02:00ce83695e-0d41-4aae-8a87-ae4a2eab470eNULL
units_type
469 rows 14 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 code varchar(20) NO
3 name varchar(100) NO
4 description text NO
5 bedrooms int4 NO
6 bathrooms numeric NO
7 square_feet numeric NO
8 base_rent numeric NO
9 deposit numeric NO
10 min_rent numeric NO
11 max_rent numeric NO
12 is_active bool NO
13 created_at timestamptz NO
14 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX units_type_pkey ON public.units_type USING btree (id)
  • CREATE UNIQUE INDEX units_type_property_id_code_445d00ce_uniq ON public.units_type USING btree (property_id, code)
  • CREATE INDEX units_type_property_id_3eb0ac11 ON public.units_type USING btree (property_id)

Check Constraints

  • units_type_bedrooms_check: (bedrooms >= 0)

Sample Data (3 of 469 rows)

idcodenamedescriptionbedroomsbathroomssquare_feetbase_rentdepositmin_rentmax_rentis_activecreated_atproperty_id
270b4afa-2cdd-416d-89e7-e9c740142147ce2ar2BR/1.00BA21.0905.01106.00.00.00.0True2025-09-24T09:24:17.953105+02:00719dda38-3621-4f26-8795-e54ad5f97dc7
7fe20d5c-fd15-44fc-9741-d4d14114d661otr2b1bc2BR/1.00BA21.0682.01360.00.00.00.0True2025-10-22T17:57:02.842003+02:00ecf17e6e-04b6-48ef-a23e-1ab1b8e88690
8e8424c5-05a1-411e-b840-f7986c391373xxxlistxxxlist00.00.00.00.00.00.0True2025-11-17T03:35:24.549718+01:000196b3e6-c77a-4aa3-b39b-6401bf2010af
properties_building
364 rows 19 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 building_number varchar(50) NO
4 address_line1 varchar(200) NO
5 description text NO
6 floors int4 YES
7 total_units int4 NO
8 year_built int4 YES
9 building_square_feet int4 YES
10 features jsonb NO
11 amenities jsonb NO
12 is_active bool NO
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
16 property_id uuid NO ๐Ÿ”— โ†’ properties.id
17 color varchar(7) NO
18 latitude numeric YES
19 longitude numeric YES

Foreign Keys

Indexes

  • CREATE INDEX properties_building_property_id_a5febe7f ON public.properties_building USING btree (property_id)
  • CREATE INDEX properties_building_created_by_id_7a914d3f ON public.properties_building USING btree (created_by_id)
  • CREATE UNIQUE INDEX properties_building_property_id_building_number_91b0bd3c_uniq ON public.properties_building USING btree (property_id, building_number)
  • CREATE UNIQUE INDEX properties_building_pkey ON public.properties_building USING btree (id)

Check Constraints

  • properties_building_total_units_check: (total_units >= 0)
  • properties_building_year_built_check: (year_built >= 0)
  • properties_building_floors_check: (floors >= 0)
  • properties_building_building_square_feet_check: (building_square_feet >= 0)

Sample Data (3 of 364 rows)

idnamebuilding_numberaddress_line1descriptionfloorstotal_unitsyear_builtbuilding_square_feetfeaturesamenitiesis_activecreated_atupdated_atcreated_by_idproperty_idcolorlatitudelongitude
979e5ce3-942e-4782-9624-71e67fb0f64fBuilding 00Building 0 for ANNEX property111NULLNULL{}{}True2026-01-19T14:28:58.465355+01:002026-01-19T14:28:58.46536+01:00NULL4853949d-b83a-43a8-877c-57089b0d61bf#3B82F6NULLNULL
cbd98c07-e677-4a4d-92a2-38d1de56dce1Building 11Building 1 for ANNEX property116NULLNULL{}{}True2026-01-19T14:28:58.467726+01:002026-01-19T14:28:58.467731+01:00NULL4853949d-b83a-43a8-877c-57089b0d61bf#10B981NULLNULL
8cec0eaf-8582-4c39-a796-38a89681d4ccBuilding 22Building 2 for ANNEX property16NULLNULL{}{}True2026-01-19T14:28:58.468337+01:002026-01-19T14:28:58.468341+01:00NULL4853949d-b83a-43a8-877c-57089b0d61bf#F59E0BNULLNULL
units_maintenance
46 rows 13 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 title varchar(200) NO
3 description text NO
4 priority varchar(20) NO
5 status varchar(20) NO
6 requested_date timestamptz NO
7 completed_date timestamptz YES
8 estimated_cost numeric YES
9 actual_cost numeric YES
10 created_at timestamptz NO
11 assigned_vendor_id uuid YES ๐Ÿ”— โ†’ vendors_vendor.id
12 requested_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
13 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX units_maintenance_pkey ON public.units_maintenance USING btree (id)
  • CREATE INDEX units_maintenance_assigned_vendor_id_c261f09b ON public.units_maintenance USING btree (assigned_vendor_id)
  • CREATE INDEX units_maintenance_requested_by_id_b071e57e ON public.units_maintenance USING btree (requested_by_id)
  • CREATE INDEX units_maintenance_unit_id_3c60f5bc ON public.units_maintenance USING btree (unit_id)

Sample Data (3 of 46 rows)

idtitledescriptionprioritystatusrequested_datecompleted_dateestimated_costactual_costcreated_atassigned_vendor_idrequested_by_idunit_id
cb19c4a4-25e9-4294-a475-8b08fecb23ffALERT: Poor Air Quality Detected โ€” Westridge GardensAir Quality reading of 604.13 AQI exceeds maximum threshold of 500.00 AQI Auto-...mediumopen2026-04-02T14:09:54.292277+02:00NULLNULLNULL2026-04-02T14:09:54.292277+02:00NULLNULL00bae2fb-600b-4d54-8e46-c80d727ec2c9
81141bc2-2221-4e2a-a645-92bfc087a4a8Garbage Disposal ReplacementKitchen disposal unit motor burned out. Replaced with InSinkErator Badger 5 mode...mediumcompleted2026-02-15T21:39:38.168288+01:002026-02-18T05:59:38.168288+01:00433.02475.02026-02-15T21:39:38.168288+01:00ca629e6e-3466-4508-82eb-8c3349d22d41NULLf141c1e3-eed5-426c-8df9-c19c50a2ffbd
c9625353-0ddf-471d-b696-1b2a9b790ad7Annual HVAC Filter Replacement - Building AQuarterly preventive maintenance. Replaced 3 HVAC filters in Building A units. P...lowcompleted2026-02-19T01:03:38.168288+01:002026-02-20T23:59:38.168288+01:00316.06296.32026-02-19T01:03:38.168288+01:0018c36292-2e8f-410b-b691-94674dfd9e5cNULLe5bd79e3-87f3-4b3f-be65-4f413025b46f
properties_contact
44 rows 12 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 is_primary bool NO
3 is_active bool NO
4 date_assigned timestamptz NO
5 created_at timestamptz NO
6 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
7 property_id uuid NO ๐Ÿ”— โ†’ properties.id
8 role_id uuid YES ๐Ÿ”— โ†’ rbac_role.id
9 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
10 date_unassigned timestamptz YES
11 property_notes text NO
12 updated_at timestamptz NO

Foreign Keys

Indexes

  • CREATE INDEX properties_contact_property_id_a55299de ON public.properties_contact USING btree (property_id)
  • CREATE UNIQUE INDEX properties_contact_pkey ON public.properties_contact USING btree (id)
  • CREATE UNIQUE INDEX properties_contact_property_id_user_id_role_id_60a121b7_uniq ON public.properties_contact USING btree (property_id, user_id, role_id)
  • CREATE INDEX properties__propert_462a3b_idx ON public.properties_contact USING btree (property_id, is_primary)
  • CREATE INDEX properties__propert_eba1fd_idx ON public.properties_contact USING btree (property_id, is_active)
  • CREATE INDEX properties__user_id_fdf56e_idx ON public.properties_contact USING btree (user_id, is_active)
  • CREATE INDEX properties_contact_created_by_id_3d8f640c ON public.properties_contact USING btree (created_by_id)
  • CREATE INDEX properties_contact_role_id_f5e93cb7 ON public.properties_contact USING btree (role_id)
  • CREATE INDEX properties_contact_user_id_cbd088f3 ON public.properties_contact USING btree (user_id)

Sample Data (3 of 44 rows)

idis_primaryis_activedate_assignedcreated_atcreated_by_idproperty_idrole_iduser_iddate_unassignedproperty_notesupdated_at
26562219-8d39-4d0a-88a9-154bed7ed964FalseTrue2025-10-20T09:20:56.542789+02:002025-10-20T09:20:56.542826+02:00359220b4cf-6966-4b42-8534-dc802039b0245d23b498-3c0a-4014-aa09-65b5bf23e67627NULL2025-10-20T09:20:56.542832+02:00
bce22254-a37f-42ec-a929-da5b4a4a377eTrueTrue2025-12-17T10:53:58.094064+01:002025-12-17T10:53:58.094112+01:00NULL9220b4cf-6966-4b42-8534-dc802039b0245d23b498-3c0a-4014-aa09-65b5bf23e67673NULL2025-12-17T10:53:58.094123+01:00
6ca2923a-68d1-4789-b65e-d8a9a988bd7aTrueTrue2025-12-17T10:53:58.146395+01:002025-12-17T10:53:58.146436+01:00NULL35b664ba-bb75-4318-ae24-07b47a4453455d23b498-3c0a-4014-aa09-65b5bf23e67674NULL2025-12-17T10:53:58.146445+01:00
properties
33 rows 30 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 property_code varchar(50) NO
3 name varchar(200) NO
4 percentage numeric NO
5 description text NO
6 address_line1 varchar(200) NO
7 city varchar(100) NO
8 state varchar(100) NO
9 postal_code varchar(20) NO
10 year_built int4 YES
11 total_square_feet int4 YES
12 total_units int4 NO
13 current_value numeric YES
14 annual_taxes numeric YES
15 yardi_property_id varchar(100) NO
16 status varchar(50) NO
17 features jsonb NO
18 created_at timestamptz NO
19 updated_at timestamptz NO
20 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
21 property_manager_id int4 YES ๐Ÿ”— โ†’ auth_user.id
22 property_type_id uuid YES ๐Ÿ”— โ†’ properties_type.id
23 matching_keywords text NO
24 property_class varchar(20) NO
25 color varchar(7) NO
26 latitude numeric YES
27 longitude numeric YES
28 image_url varchar(500) NO
29 heading numeric NO
30 pitch numeric NO

Foreign Keys

Indexes

  • CREATE INDEX properties_property_created_by_id_7c8eb873 ON public.properties USING btree (created_by_id)
  • CREATE INDEX properties_property_property_code_54afcdd5_like ON public.properties USING btree (property_code varchar_pattern_ops)
  • CREATE INDEX properties_property_property_type_id_21d12070 ON public.properties USING btree (property_type_id)
  • CREATE INDEX properties_property_property_manager_id_5fffdf41 ON public.properties USING btree (property_manager_id)
  • CREATE UNIQUE INDEX properties_property_pkey ON public.properties USING btree (id)
  • CREATE UNIQUE INDEX properties_property_property_code_key ON public.properties USING btree (property_code)
  • CREATE INDEX properties_property_class_ed92f170 ON public.properties USING btree (property_class)
  • CREATE INDEX properties_property_class_ed92f170_like ON public.properties USING btree (property_class varchar_pattern_ops)

Check Constraints

  • properties_property_year_built_check: (year_built >= 0)
  • properties_property_total_units_check: (total_units >= 0)
  • properties_property_total_square_feet_check: (total_square_feet >= 0)

Sample Data (3 of 33 rows)

idproperty_codenamepercentagedescriptionaddress_line1citystatepostal_codeyear_builttotal_square_feettotal_unitscurrent_valueannual_taxesyardi_property_idstatusfeaturescreated_atupdated_atcreated_by_idproperty_manager_idproperty_type_idmatching_keywordsproperty_classcolorlatitudelongitudeimage_urlheadingpitch
8b8ea261-3e4c-46e2-bfd1-407f3e571414meadowAspen at Brookfield100.0510 Creekside DrLowellIndiana46356NULLNULL193NULLNULLactive[]2025-09-21T17:29:47.884526+02:002026-01-19T15:30:41.299856+01:00NULLNULLe70f7442-fe79-4643-bc94-4e0e9ea44801meadowbrook, creekside meadowbrook, creekside at meadowbrook, meadowbrook apartm...#b4530941.283375-87.432676media/property_images/real_aspen_at_brookfield.jpg90.0-28.0
9220b4cf-6966-4b42-8534-dc802039b024arborBirchwood Terrace100.0420 Arbor Pointe DriveBattle CreekMichigan49037NULLNULL161NULLNULLactive[]2025-09-21T17:29:47.863931+02:002026-01-19T15:30:39.450063+01:00NULLNULL94295192-0819-4e3a-b4fa-b114c5ee394dpointe, arbor pointe#6d28d942.335093-85.216277media/property_images/real_birchwood_terrace.jpg90.0-28.0
dd6765b3-df28-4f01-a9a2-0181cc76d325walnutCedar Creek Apartments100.04600 Colter DriveKokomoIndiana46902NULLNULL240NULLNULLactive[]2025-09-21T17:29:47.899525+02:002026-01-19T15:30:49.987287+01:00NULLNULLe70f7442-fe79-4643-bc94-4e0e9ea44801creek, walnut creek#f9731640.435942-86.101349media/property_images/real_cedar_creek_apartments.jpg90.0-28.0
properties_type
5 rows 6 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 category varchar(50) NO
4 description text NO
5 is_active bool NO
6 created_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX properties_type_name_key ON public.properties_type USING btree (name)
  • CREATE UNIQUE INDEX properties_type_pkey ON public.properties_type USING btree (id)
  • CREATE INDEX properties_type_name_e9712598_like ON public.properties_type USING btree (name varchar_pattern_ops)

Sample Data (3 of 5 rows)

idnamecategorydescriptionis_activecreated_at
94295192-0819-4e3a-b4fa-b114c5ee394dTownhomesresidentialTownhouse-style residential communityTrue2026-01-17T17:43:39.118977+01:00
e70f7442-fe79-4643-bc94-4e0e9ea44801Apartment ComplexresidentialMulti-unit apartment buildingTrue2026-01-17T17:43:39.118977+01:00
a1cc7953-524d-4e95-893b-9b613ec3b10fMixed UsemixedCombined residential and commercial propertyTrue2026-01-17T17:43:39.118977+01:00
properties_amenity
1 rows 21 cols 5 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 amenity_type varchar(20) NO
3 amenity_number varchar(50) NO
4 location_description varchar(200) NO
5 parking_type varchar(20) YES
6 storage_type varchar(30) YES
7 size_sqft int4 YES
8 monthly_rent numeric NO
9 security_deposit numeric NO
10 status varchar(20) NO
11 yardi_amenity_id varchar(100) NO
12 features jsonb NO
13 notes text NO
14 is_active bool NO
15 created_at timestamptz NO
16 updated_at timestamptz NO
17 assigned_tenant_id uuid YES ๐Ÿ”— โ†’ tenants.id
18 assigned_unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id
19 building_id uuid YES ๐Ÿ”— โ†’ properties_building.id
20 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
21 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX properties_amenity_status_1d9f46ab_like ON public.properties_amenity USING btree (status varchar_pattern_ops)
  • CREATE INDEX properties__assigne_c1eedf_idx ON public.properties_amenity USING btree (assigned_tenant_id)
  • CREATE INDEX properties__propert_4f89d8_idx ON public.properties_amenity USING btree (property_id, amenity_type)
  • CREATE INDEX properties_amenity_assigned_tenant_id_e9de51c5 ON public.properties_amenity USING btree (assigned_tenant_id)
  • CREATE INDEX properties_amenity_created_by_id_e3bb0502 ON public.properties_amenity USING btree (created_by_id)
  • CREATE INDEX properties_amenity_property_id_00839d8b ON public.properties_amenity USING btree (property_id)
  • CREATE INDEX properties_amenity_status_1d9f46ab ON public.properties_amenity USING btree (status)
  • CREATE INDEX properties_amenity_assigned_unit_id_ff8f5e6f ON public.properties_amenity USING btree (assigned_unit_id)
  • CREATE INDEX properties__propert_c23a1c_idx ON public.properties_amenity USING btree (property_id, status)
  • CREATE UNIQUE INDEX properties_amenity_pkey ON public.properties_amenity USING btree (id)
  • CREATE UNIQUE INDEX properties_amenity_property_id_amenity_number_7de5eebc_uniq ON public.properties_amenity USING btree (property_id, amenity_number)
  • CREATE INDEX properties__amenity_6c3b61_idx ON public.properties_amenity USING btree (amenity_type, status)
  • CREATE INDEX properties_amenity_building_id_05cab775 ON public.properties_amenity USING btree (building_id)

Check Constraints

  • properties_amenity_size_sqft_check: (size_sqft >= 0)

Sample Data (1 of 1 rows)

idamenity_typeamenity_numberlocation_descriptionparking_typestorage_typesize_sqftmonthly_rentsecurity_depositstatusyardi_amenity_idfeaturesnotesis_activecreated_atupdated_atassigned_tenant_idassigned_unit_idbuilding_idcreated_by_idproperty_id
6ebbda78-096d-4c2b-89df-3d105f7fe210storageS-101NULLindoor50106.0601.0available{}True2025-10-20T09:21:39.205096+02:002025-10-20T09:21:39.205148+02:00NULLNULLNULL359220b4cf-6966-4b42-8534-dc802039b024
properties_document
0 rows 7 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 document_type varchar(50) NO
3 title varchar(200) NO
4 file varchar(100) NO
5 uploaded_at timestamptz NO
6 property_id uuid NO ๐Ÿ”— โ†’ properties.id
7 uploaded_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX properties_document_property_id_16babf10 ON public.properties_document USING btree (property_id)
  • CREATE UNIQUE INDEX properties_document_pkey ON public.properties_document USING btree (id)
  • CREATE INDEX properties_document_uploaded_by_id_8fc7cab6 ON public.properties_document USING btree (uploaded_by_id)

Sample Data (0 of 0 rows)

No data

properties_image
0 rows 10 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 image_type varchar(50) NO
3 title varchar(200) NO
4 description text NO
5 image varchar(100) NO
6 is_primary bool NO
7 display_order int4 NO
8 uploaded_at timestamptz NO
9 property_id uuid NO ๐Ÿ”— โ†’ properties.id
10 uploaded_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX properties__propert_615775_idx ON public.properties_image USING btree (property_id, display_order)
  • CREATE INDEX properties_image_property_id_26573457 ON public.properties_image USING btree (property_id)
  • CREATE INDEX properties_image_uploaded_by_id_83a120ef ON public.properties_image USING btree (uploaded_by_id)
  • CREATE UNIQUE INDEX properties_image_pkey ON public.properties_image USING btree (id)
  • CREATE INDEX properties__propert_2c5c4a_idx ON public.properties_image USING btree (property_id, is_primary)

Check Constraints

  • properties_image_display_order_check: (display_order >= 0)

Sample Data (0 of 0 rows)

No data

properties_vendor
0 rows 8 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 service_type varchar(50) NO
3 is_primary bool NO
4 is_active bool NO
5 created_at timestamptz NO
6 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
7 property_id uuid NO ๐Ÿ”— โ†’ properties.id
8 vendor_id uuid NO ๐Ÿ”— โ†’ vendors_vendor.id

Foreign Keys

Indexes

  • CREATE INDEX properties_vendor_created_by_id_12e4ce24 ON public.properties_vendor USING btree (created_by_id)
  • CREATE UNIQUE INDEX properties_vendor_pkey ON public.properties_vendor USING btree (id)
  • CREATE UNIQUE INDEX properties_vendor_property_id_vendor_id_se_64cb51ba_uniq ON public.properties_vendor USING btree (property_id, vendor_id, service_type)
  • CREATE INDEX properties_vendor_vendor_id_c06c67e1 ON public.properties_vendor USING btree (vendor_id)
  • CREATE INDEX properties_vendor_property_id_ff7c5bd1 ON public.properties_vendor USING btree (property_id)

Sample Data (0 of 0 rows)

No data

units_charge
0 rows 14 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 actual_amount numeric NO
3 charge_date date NO
4 due_date date YES
5 payment_status varchar(20) NO
6 paid_amount numeric NO
7 paid_date date YES
8 notes text NO
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 charge_template_id uuid NO ๐Ÿ”— โ†’ units_charge_template.id
12 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
13 lease_id uuid YES ๐Ÿ”— โ†’ units_lease.id
14 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX units_charge_charge_template_id_428856ca ON public.units_charge USING btree (charge_template_id)
  • CREATE INDEX units_charge_created_by_id_bc21d0c7 ON public.units_charge USING btree (created_by_id)
  • CREATE INDEX units_charge_lease_id_21163e8c ON public.units_charge USING btree (lease_id)
  • CREATE INDEX units_charge_unit_id_dc4bbb25 ON public.units_charge USING btree (unit_id)
  • CREATE UNIQUE INDEX units_charge_pkey ON public.units_charge USING btree (id)

Sample Data (0 of 0 rows)

No data

units_charge_template
0 rows 17 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 charge_category varchar(20) NO
3 charge_code varchar(20) NO
4 description varchar(200) NO
5 charge_description varchar(200) NO
6 default_amount numeric NO
7 is_taxable bool NO
8 is_recurring bool NO
9 is_required bool NO
10 is_refundable bool NO
11 duration_months int4 NO
12 months_to_start int4 NO
13 instances int4 NO
14 is_active bool NO
15 created_at timestamptz NO
16 updated_at timestamptz NO
17 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX units_charge_template_property_id_charge_code__70b95815_uniq ON public.units_charge_template USING btree (property_id, charge_code, charge_category)
  • CREATE INDEX units_charge_template_property_id_8ea5b4f1 ON public.units_charge_template USING btree (property_id)
  • CREATE UNIQUE INDEX units_charge_template_pkey ON public.units_charge_template USING btree (id)

Check Constraints

  • units_charge_template_months_to_start_check: (months_to_start >= 0)
  • units_charge_template_duration_months_check: (duration_months >= 0)
  • units_charge_template_instances_check: (instances >= 0)

Sample Data (0 of 0 rows)

No data

units_lease
0 rows 15 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 lease_number varchar(100) NO
3 start_date date NO
4 end_date date NO
5 monthly_rent numeric NO
6 tenant_name varchar(200) NO
7 tenant_email varchar(254) NO
8 tenant_phone varchar(20) NO
9 security_deposit numeric NO
10 lease_type varchar(20) NO
11 status varchar(20) NO
12 created_at timestamptz NO
13 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
14 primary_tenant_id int4 YES ๐Ÿ”— โ†’ auth_user.id
15 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX units_lease_lease_number_key ON public.units_lease USING btree (lease_number)
  • CREATE INDEX units_lease_primary_tenant_id_4979818e ON public.units_lease USING btree (primary_tenant_id)
  • CREATE INDEX units_lease_unit_id_547d2e59 ON public.units_lease USING btree (unit_id)
  • CREATE INDEX units_lease_lease_number_200036f4_like ON public.units_lease USING btree (lease_number varchar_pattern_ops)
  • CREATE UNIQUE INDEX units_lease_pkey ON public.units_lease USING btree (id)
  • CREATE INDEX units_lease_created_by_id_7e7837a1 ON public.units_lease USING btree (created_by_id)

Sample Data (0 of 0 rows)

No data

units_lease_charge
0 rows 7 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 amount_charged numeric NO
3 date_applied date NO
4 is_active bool NO
5 created_at timestamptz NO
6 charge_template_id uuid NO ๐Ÿ”— โ†’ units_charge_template.id
7 lease_id uuid NO ๐Ÿ”— โ†’ units_lease.id

Foreign Keys

Indexes

  • CREATE INDEX units_lease_charge_charge_template_id_31a14f94 ON public.units_lease_charge USING btree (charge_template_id)
  • CREATE INDEX units_lease_charge_lease_id_f0a177a3 ON public.units_lease_charge USING btree (lease_id)
  • CREATE UNIQUE INDEX units_lease_charge_pkey ON public.units_lease_charge USING btree (id)
  • CREATE UNIQUE INDEX units_lease_charge_lease_id_charge_template_id_2be86bc2_uniq ON public.units_lease_charge USING btree (lease_id, charge_template_id)

Sample Data (0 of 0 rows)

No data

๐Ÿฆ Banking & Reconciliation 10 tables ยท 0 rows
reconciliation_banktransaction
0 rows 20 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 transaction_date date NO CURRENT_DATE
3 reference varchar(255) NO ''::character varying
4 description varchar(500) YES
5 amount_usd numeric NO 0
6 sender_name varchar(255) YES
7 sender_bank varchar(255) YES
8 status varchar(20) NO 'unmatched'::character varying
9 match_confidence float8 YES
10 matched_at timestamptz YES
11 confirmed_by varchar(255) YES
12 confirmed_at timestamptz YES
13 external_txn_id varchar(100) NO ''::character varying
14 match_reasoning jsonb NO '{}'::jsonb
15 variance_amount numeric YES
16 variance_note varchar(255) NO ''::character varying
17 created_at timestamptz NO now()
18 matched_buyer_id int8 YES
19 matched_installment_id int8 YES
20 upload_batch_id int8 YES

Indexes

  • CREATE UNIQUE INDEX reconciliation_banktransaction_pkey ON public.reconciliation_banktransaction USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_broker
0 rows 9 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(255) NO
3 company varchar(255) YES
4 phone varchar(30) YES
5 email varchar(254) YES
6 license_number varchar(20) YES
7 whatsapp_enabled bool NO false
8 is_active bool NO true
9 created_at timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX reconciliation_broker_pkey ON public.reconciliation_broker USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_brokercommission
0 rows 15 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 sale_price numeric NO 0
3 commission_rate numeric NO 0
4 commission_amount numeric NO 0
5 status varchar(20) NO 'pending'::character varying
6 paid_date date YES
7 notes text NO ''::text
8 client_signed_date date YES
9 spa_registered_date date YES
10 akud_complete_date date YES
11 commission_eligible_date date YES
12 commission_paid_date date YES
13 broker_id int8 NO
14 unit_id int8 NO
15 buyer_id int8 NO

Indexes

  • CREATE UNIQUE INDEX reconciliation_brokercommission_pkey ON public.reconciliation_brokercommission USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_buyer
0 rows 19 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(255) NO
3 email varchar(254) YES
4 phone varchar(30) YES
5 nationality varchar(100) YES
6 passport_number varchar(50) YES
7 spa_signed_date date YES
8 total_paid_usd numeric NO 0
9 outstanding_usd numeric NO 0
10 payment_status varchar(20) NO 'pending'::character varying
11 created_at timestamptz NO now()
12 lease_start_date date YES
13 lease_end_date date YES
14 monthly_rent_usd numeric YES
15 security_deposit_usd numeric YES
16 national_id varchar(20) YES
17 broker_id int8 YES
18 payment_plan_id int8 YES
19 unit_id int8 YES

Indexes

  • CREATE UNIQUE INDEX reconciliation_buyer_pkey ON public.reconciliation_buyer USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_buyerdocument
0 rows 6 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 document_type varchar(20) NO ''::character varying
3 title varchar(255) NO ''::character varying
4 file varchar(100) NO ''::character varying
5 created_at timestamptz NO now()
6 buyer_id int8 NO

Indexes

  • CREATE UNIQUE INDEX reconciliation_buyerdocument_pkey ON public.reconciliation_buyerdocument USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_installment
0 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 installment_number int4 NO 0
3 description varchar(255) NO ''::character varying
4 due_date date NO CURRENT_DATE
5 amount_usd numeric NO 0
6 status varchar(20) NO 'pending'::character varying
7 paid_date date YES
8 paid_amount_usd numeric YES
9 payment_method varchar(50) YES
10 remaining_balance numeric YES
11 buyer_id int8 NO

Indexes

  • CREATE UNIQUE INDEX reconciliation_installment_pkey ON public.reconciliation_installment USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_paymentreceipt
0 rows 8 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 receipt_number varchar(50) NO ''::character varying
3 amount_usd numeric NO 0
4 generated_at timestamptz NO now()
5 bank_transaction_id int8 NO
6 buyer_id int8 NO
7 project_id int8 NO
8 unit_id int8 NO

Indexes

  • CREATE UNIQUE INDEX reconciliation_paymentreceipt_pkey ON public.reconciliation_paymentreceipt USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_senderalias
0 rows 6 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 sender_name varchar(255) NO
3 confirmed bool NO false
4 first_seen timestamptz NO now()
5 times_matched int4 NO 0
6 buyer_id int8 NO

Indexes

  • CREATE UNIQUE INDEX reconciliation_senderalias_sender_name_key ON public.reconciliation_senderalias USING btree (sender_name)
  • CREATE UNIQUE INDEX reconciliation_senderalias_pkey ON public.reconciliation_senderalias USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_supportticket
0 rows 7 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 subject varchar(255) NO ''::character varying
3 message text NO ''::text
4 attachment varchar(100) YES
5 status varchar(20) NO 'open'::character varying
6 created_at timestamptz NO now()
7 buyer_id int8 NO

Indexes

  • CREATE UNIQUE INDEX reconciliation_supportticket_pkey ON public.reconciliation_supportticket USING btree (id)

Sample Data (0 of 0 rows)

No data

reconciliation_uploadbatch
0 rows 7 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 filename varchar(500) NO
3 uploaded_at timestamptz NO now()
4 total_rows int4 NO 0
5 valid_rows int4 NO 0
6 rejected_rows int4 NO 0
7 status varchar(20) NO 'pending'::character varying

Indexes

  • CREATE UNIQUE INDEX reconciliation_uploadbatch_pkey ON public.reconciliation_uploadbatch USING btree (id)

Sample Data (0 of 0 rows)

No data

๐Ÿ‘ค Owners 2 tables ยท 38 rows
owners_eigentuemerliegenschaft
24 rows 9 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 anteil_prozent numeric NO
3 role varchar(20) NO
4 seit date NO
5 is_active bool NO
6 created_at timestamptz NO
7 updated_at timestamptz NO
8 eigentuemer_id uuid NO ๐Ÿ”— โ†’ owners_eigentuemer.id
9 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX owners_eigentuemerliegenschaft_eigentuemer_id_5dbbd3af ON public.owners_eigentuemerliegenschaft USING btree (eigentuemer_id)
  • CREATE UNIQUE INDEX owners_eigentuemerliegen_eigentuemer_id_property__8ee71e84_uniq ON public.owners_eigentuemerliegenschaft USING btree (eigentuemer_id, property_id)
  • CREATE UNIQUE INDEX owners_eigentuemerliegenschaft_pkey ON public.owners_eigentuemerliegenschaft USING btree (id)
  • CREATE INDEX owners_eigentuemerliegenschaft_property_id_a8af237c ON public.owners_eigentuemerliegenschaft USING btree (property_id)

Sample Data (3 of 24 rows)

idanteil_prozentroleseitis_activecreated_atupdated_ateigentuemer_idproperty_id
eae7ff4a-7079-4c85-93f3-66d6be48329971.09haupteigentuemer2017-04-01True2026-03-20T09:35:27.867475+01:002026-03-20T09:35:27.867484+01:008bd0f3a4-47c8-47e5-87d6-fc90b505216743389a68-9a5f-4262-819f-7d7a71066ba2
7e9dfcd4-5d4a-4b91-aa10-c6fa0140ac6967.14miteigentuemer2021-10-01True2026-03-20T09:35:27.870937+01:002026-03-20T09:35:27.870945+01:008bd0f3a4-47c8-47e5-87d6-fc90b50521672656a22f-14e6-47bc-b75f-d9fa9c65394d
3dd2301d-87ff-4719-b1c4-356512f8abb969.0haupteigentuemer2016-01-01True2026-03-20T09:35:27.872079+01:002026-03-20T09:35:27.872086+01:00023119e1-1e68-4dc8-a69b-6f3cf2818655b4837704-3fe2-4a6f-8f12-394d38987f41
owners_eigentuemer
14 rows 10 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 email varchar(254) NO
4 phone varchar(50) NO
5 address text NO
6 steuernummer varchar(50) NO
7 bankverbindung jsonb NO
8 status varchar(10) NO
9 created_at timestamptz NO
10 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX owners_eigentuemer_pkey ON public.owners_eigentuemer USING btree (id)

Sample Data (3 of 14 rows)

idnameemailphoneaddresssteuernummerbankverbindungstatuscreated_atupdated_at
8bd0f3a4-47c8-47e5-87d6-fc90b5052167Dr. Wolfgang Huberw.huber@huber-immobilien.at+43 1 512 3456Schubertgasse 12/4, 1090 Wien12 345/6789{"bic": "OPSKATWW", "iban": "AT61 1900 0500 1155 6789", "bank_name": "\u00d6sterreichische Post AG"}active2026-03-20T09:35:27.850227+01:002026-03-20T09:35:27.850244+01:00
023119e1-1e68-4dc8-a69b-6f3cf2818655Mag. Ingrid Bergeri.berger@berger-partner.at+43 1 408 7654Mariahilfer StraรŸe 88, 1070 Wien23 456/7890{"bic": "BKAUATWW", "iban": "AT83 1200 0515 1234 5678", "bank_name": "UniCredit Bank Austria AG"}active2026-03-20T09:35:27.85235+01:002026-03-20T09:35:27.852368+01:00
b00691f1-381a-4d59-beea-646b9fd656fbKarl-Heinz Mรผllerkh.mueller@mueller-wohnbau.at+43 732 789 012LandstraรŸe 45, 4020 Linz34 567/8901{"bic": "RLNWATWW", "iban": "AT82 1500 0006 9876 5432", "bank_name": "Raiffeisen Landesbank N\u00d6-active2026-03-20T09:35:27.854251+01:002026-03-20T09:35:27.85426+01:00
๐Ÿ’ฌ Chat & Communication 9 tables ยท 1,319 rows
chat_participants
513 rows 18 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 role varchar(20) NO
3 joined_at timestamptz NO
4 last_read_at timestamptz YES
5 last_active_at timestamptz NO
6 is_active bool NO
7 notifications_enabled bool NO
8 mention_notifications bool NO
9 can_post_messages bool NO
10 can_upload_files bool NO
11 can_edit_messages bool NO
12 can_delete_messages bool NO
13 can_invite_users bool NO
14 can_manage_thread bool NO
15 invitation_message text NO
16 invited_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
17 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
18 thread_id uuid NO ๐Ÿ”— โ†’ chat_threads.id

Foreign Keys

Indexes

  • CREATE INDEX chat_participants_thread_id_0bab7d58 ON public.chat_participants USING btree (thread_id)
  • CREATE INDEX chat_partic_thread__aafd14_idx ON public.chat_participants USING btree (thread_id, is_active)
  • CREATE INDEX chat_partic_user_id_53c708_idx ON public.chat_participants USING btree (user_id, is_active)
  • CREATE INDEX chat_participants_invited_by_id_6f191b44 ON public.chat_participants USING btree (invited_by_id)
  • CREATE INDEX chat_participants_user_id_283c72d9 ON public.chat_participants USING btree (user_id)
  • CREATE UNIQUE INDEX chat_participants_pkey ON public.chat_participants USING btree (id)
  • CREATE UNIQUE INDEX chat_participants_thread_id_user_id_f8b70664_uniq ON public.chat_participants USING btree (thread_id, user_id)
  • CREATE INDEX chat_partic_last_ac_673cde_idx ON public.chat_participants USING btree (last_active_at)

Sample Data (3 of 513 rows)

idrolejoined_atlast_read_atlast_active_atis_activenotifications_enabledmention_notificationscan_post_messagescan_upload_filescan_edit_messagescan_delete_messagescan_invite_userscan_manage_threadinvitation_messageinvited_by_iduser_idthread_id
b98736da-4bad-4965-88c9-376d9f48b970owner2025-10-01T12:08:44.143091+02:00NULL2025-10-01T12:08:44.143108+02:00TrueTrueTrueTrueTrueFalseFalseTrueTrueNULL1d6d7985a-8f10-4e8d-b758-182904b42557
f9a5e9a1-0641-4aa1-9a9f-4b100a8c0326owner2025-10-01T12:08:56.09276+02:00NULL2025-10-01T12:08:56.092777+02:00TrueTrueTrueTrueTrueFalseFalseTrueTrueNULL126bba804-0a6f-49fc-a24d-eab7022f8d62
c04cc0be-eac3-47b9-9c0f-723e06c966faowner2025-10-01T12:09:01.927152+02:00NULL2025-10-01T12:09:01.92717+02:00TrueTrueTrueTrueTrueFalseFalseTrueTrueNULL12da81c9c-02ee-4c5e-baad-d4a8b76646d5
chat_threads
513 rows 18 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 title varchar(200) NO
3 description text NO
4 thread_type varchar(20) NO
5 privacy_level varchar(20) NO
6 is_active bool NO
7 is_archived bool NO
8 is_pinned bool NO
9 last_message_at timestamptz YES
10 message_count int4 NO
11 unread_count int4 NO
12 tags jsonb NO
13 settings jsonb NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 created_by_id int4 NO ๐Ÿ”— โ†’ auth_user.id
17 invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id
18 team_id int8 NO ๐Ÿ”— โ†’ rbac_team.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX chat_threads_pkey ON public.chat_threads USING btree (id)
  • CREATE INDEX chat_thread_created_8f4471_idx ON public.chat_threads USING btree (created_by_id, is_active)
  • CREATE INDEX chat_threads_invoice_id_53709b60 ON public.chat_threads USING btree (invoice_id)
  • CREATE INDEX chat_threads_created_by_id_04569d58 ON public.chat_threads USING btree (created_by_id)
  • CREATE INDEX chat_thread_team_id_78702e_idx ON public.chat_threads USING btree (team_id, thread_type, is_active)
  • CREATE INDEX chat_threads_team_id_e34b7a93 ON public.chat_threads USING btree (team_id)
  • CREATE INDEX chat_thread_last_me_8e1747_idx ON public.chat_threads USING btree (last_message_at)
  • CREATE INDEX chat_thread_invoice_ba767c_idx ON public.chat_threads USING btree (invoice_id, is_active)

Check Constraints

  • chat_threads_message_count_check: (message_count >= 0)
  • chat_threads_unread_count_check: (unread_count >= 0)

Sample Data (3 of 513 rows)

idtitledescriptionthread_typeprivacy_levelis_activeis_archivedis_pinnedlast_message_atmessage_countunread_counttagssettingscreated_atupdated_atcreated_by_idinvoice_idteam_id
d6d7985a-8f10-4e8d-b758-182904b42557Invoice TEMP_20251001_100835_INVOICES-E_202510010 - OLD TOWNE APTSChat thread for vendor communication: Invoice TEMP_20251001_100835_INVOICES-E_20...vendorpublicTrueFalseFalseNULL00[]{}2025-10-01T12:08:44.1394+02:002025-10-01T12:08:44.139413+02:001NULL1
26bba804-0a6f-49fc-a24d-eab7022f8d62Invoice TEMP_20251001_100844_2025_09_30_10_39_44 - CANDLEWYCK APTSChat thread for vendor communication: Invoice TEMP_20251001_100844_2025_09_30_10...vendorpublicTrueFalseFalseNULL00[]{}2025-10-01T12:08:56.090085+02:002025-10-01T12:08:56.090098+02:001NULL1
2da81c9c-02ee-4c5e-baad-d4a8b76646d5Invoice TEMP_20251001_100856_INVOICES-E_202509300 - THE SHERWIN WILLIAMS CO.Chat thread for vendor communication: Invoice TEMP_20251001_100856_INVOICES-E_20...vendorpublicTrueFalseFalseNULL00[]{}2025-10-01T12:09:01.924371+02:002025-10-01T12:09:01.924384+02:001NULL1
chat_messages
262 rows 15 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 content text NO
3 message_type varchar(20) NO
4 status varchar(20) NO
5 reply_count int4 NO
6 edited_at timestamptz YES
7 edit_history jsonb NO
8 delivered_at timestamptz YES
9 search_vector text NO
10 created_at timestamptz NO
11 updated_at timestamptz NO
12 edited_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
13 parent_message_id uuid YES ๐Ÿ”— โ†’ chat_messages.id
14 sender_id int4 NO ๐Ÿ”— โ†’ auth_user.id
15 thread_id uuid NO ๐Ÿ”— โ†’ chat_threads.id

Foreign Keys

Indexes

  • CREATE INDEX chat_messages_sender_id_cd95a334 ON public.chat_messages USING btree (sender_id)
  • CREATE INDEX chat_messages_thread_id_7e4efafd ON public.chat_messages USING btree (thread_id)
  • CREATE UNIQUE INDEX chat_messages_pkey ON public.chat_messages USING btree (id)
  • CREATE INDEX chat_messages_parent_message_id_972a2156 ON public.chat_messages USING btree (parent_message_id)
  • CREATE INDEX chat_messages_edited_by_id_9486a864 ON public.chat_messages USING btree (edited_by_id)
  • CREATE INDEX chat_messag_thread__ba3d5c_idx ON public.chat_messages USING btree (thread_id, created_at)
  • CREATE INDEX chat_messag_sender__7a605a_idx ON public.chat_messages USING btree (sender_id, created_at)
  • CREATE INDEX chat_messag_parent__c7f2a8_idx ON public.chat_messages USING btree (parent_message_id, created_at)
  • CREATE INDEX chat_messag_message_300ff1_idx ON public.chat_messages USING btree (message_type, status)
  • CREATE INDEX chat_messag_created_eb4133_idx ON public.chat_messages USING btree (created_at)

Check Constraints

  • chat_messages_reply_count_check: (reply_count >= 0)

Sample Data (3 of 262 rows)

idcontentmessage_typestatusreply_countedited_atedit_historydelivered_atsearch_vectorcreated_atupdated_atedited_by_idparent_message_idsender_idthread_id
e7d94169-0ca7-4fa4-b2ab-0c8c19a3aea9Invoice 251005112146 received from WORLDWIDE Amount: $153.86 Invoice Date: 2025-...textsent0NULL[]NULL2025-10-08T08:34:10.015965+02:002025-10-08T08:34:10.015985+02:00NULLNULL1d5592d40-a4be-4bb3-b4fa-df654223944d
70dfd468-1d51-41d6-96f6-9a021fbe4b41Invoice 056769-02 received from SUPPLY Amount: $17.46 Invoice Date: 2025-10-08 D...textsent0NULL[]NULL2025-10-08T09:04:52.318739+02:002025-10-08T09:04:52.318754+02:00NULLNULL1aecef010-8043-4bbd-9abd-bc049d7015b4
e90f2a43-470e-47eb-b70f-6665dc63db17Invoice 056771-01 received from SUPPLY Amount: $68.05 Invoice Date: 2025-10-08 D...textsent0NULL[]NULL2025-10-08T09:04:52.348019+02:002025-10-08T09:04:52.348033+02:00NULLNULL1302cddd7-9149-46ee-ae98-b2f16435458e
chat_message_reads
25 rows 4 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 read_at timestamptz NO
3 message_id uuid NO ๐Ÿ”— โ†’ chat_messages.id
4 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX chat_message_reads_message_id_3313b434 ON public.chat_message_reads USING btree (message_id)
  • CREATE UNIQUE INDEX chat_message_reads_message_id_user_id_538fae14_uniq ON public.chat_message_reads USING btree (message_id, user_id)
  • CREATE UNIQUE INDEX chat_message_reads_pkey ON public.chat_message_reads USING btree (id)
  • CREATE INDEX chat_messag_message_d1f775_idx ON public.chat_message_reads USING btree (message_id, user_id)
  • CREATE INDEX chat_messag_user_id_f3d63d_idx ON public.chat_message_reads USING btree (user_id, read_at)
  • CREATE INDEX chat_message_reads_user_id_649253d7 ON public.chat_message_reads USING btree (user_id)

Sample Data (3 of 25 rows)

idread_atmessage_iduser_id
12025-10-08T12:14:18.025148+02:00121acdfd-b197-4728-904a-0761a7a9b5f71
22025-10-08T14:31:51.646687+02:0018b2e9de-c8ed-4a94-aa72-fbb73d5e5f7b35
32025-10-10T09:00:55.708452+02:00e63e235e-8c27-4013-9255-a20c18fe584335
chat_activity_logs
6 rows 11 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 activity_type varchar(30) NO
3 description text NO
4 metadata jsonb NO
5 ip_address inet YES
6 user_agent text NO
7 session_id varchar(100) NO
8 created_at timestamptz NO
9 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
10 message_id uuid YES ๐Ÿ”— โ†’ chat_messages.id
11 thread_id uuid YES ๐Ÿ”— โ†’ chat_threads.id

Foreign Keys

Indexes

  • CREATE INDEX chat_activity_logs_user_id_9e875866 ON public.chat_activity_logs USING btree (user_id)
  • CREATE UNIQUE INDEX chat_activity_logs_pkey ON public.chat_activity_logs USING btree (id)
  • CREATE INDEX chat_activi_activit_cbda9e_idx ON public.chat_activity_logs USING btree (activity_type, created_at)
  • CREATE INDEX chat_activi_created_95a535_idx ON public.chat_activity_logs USING btree (created_at)
  • CREATE INDEX chat_activi_thread__8f1429_idx ON public.chat_activity_logs USING btree (thread_id, created_at)
  • CREATE INDEX chat_activi_user_id_b21f7e_idx ON public.chat_activity_logs USING btree (user_id, activity_type)
  • CREATE INDEX chat_activity_logs_message_id_db12d008 ON public.chat_activity_logs USING btree (message_id)
  • CREATE INDEX chat_activity_logs_thread_id_3ab73ad0 ON public.chat_activity_logs USING btree (thread_id)

Sample Data (3 of 6 rows)

idactivity_typedescriptionmetadataip_addressuser_agentsession_idcreated_atuser_idmessage_idthread_id
b212e378-c98d-479f-9ad5-87cbfe486196message_sentMessage sent in Invoice 057310-01 - SUPPLY{}NULL2025-10-08T12:16:43.12232+02:0015834b06e-3ae9-4efc-9ea0-84e937502d18d526d776-450e-4f34-8f80-8d56fffbd153
94d762ac-2f3b-4232-850d-8b01b11c6dfemessage_sentMessage sent in Invoice 057310-01 - SUPPLY{}NULL2025-10-08T12:16:45.446622+02:001d0c3236b-6b23-4f31-b499-a2359cc08020d526d776-450e-4f34-8f80-8d56fffbd153
5cf89c75-6fc7-4282-9f04-a16e27b78160message_sentMessage sent in Invoice 057310-01 - SUPPLY{}NULL2025-10-08T12:16:46.907192+02:0017c8924f2-8954-485e-9259-1b2dc11155dfd526d776-450e-4f34-8f80-8d56fffbd153
chat_message_attachments
0 rows 16 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 original_filename varchar(255) NO
3 file_path varchar(500) NO
4 file_size int4 NO
5 file_type varchar(100) NO
6 attachment_type varchar(20) NO
7 is_scanned bool NO
8 is_safe bool NO
9 scan_result jsonb NO
10 is_public bool NO
11 download_count int4 NO
12 metadata jsonb NO
13 thumbnail_path varchar(500) NO
14 uploaded_at timestamptz NO
15 message_id uuid NO ๐Ÿ”— โ†’ chat_messages.id
16 uploaded_by_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX chat_messag_is_scan_1819ef_idx ON public.chat_message_attachments USING btree (is_scanned, is_safe)
  • CREATE UNIQUE INDEX chat_message_attachments_pkey ON public.chat_message_attachments USING btree (id)
  • CREATE INDEX chat_messag_message_6f9b71_idx ON public.chat_message_attachments USING btree (message_id, attachment_type)
  • CREATE INDEX chat_messag_uploade_6130c2_idx ON public.chat_message_attachments USING btree (uploaded_by_id, uploaded_at)
  • CREATE INDEX chat_message_attachments_message_id_caa1d001 ON public.chat_message_attachments USING btree (message_id)
  • CREATE INDEX chat_message_attachments_uploaded_by_id_8d501f17 ON public.chat_message_attachments USING btree (uploaded_by_id)

Check Constraints

  • chat_message_attachments_download_count_check: (download_count >= 0)
  • chat_message_attachments_file_size_check: (file_size >= 0)

Sample Data (0 of 0 rows)

No data

chat_message_reactions
0 rows 5 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 reaction varchar(10) NO
3 created_at timestamptz NO
4 message_id uuid NO ๐Ÿ”— โ†’ chat_messages.id
5 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX chat_message_reactions_user_id_2b27785a ON public.chat_message_reactions USING btree (user_id)
  • CREATE UNIQUE INDEX chat_message_reactions_message_id_user_id_react_fc101c88_uniq ON public.chat_message_reactions USING btree (message_id, user_id, reaction)
  • CREATE INDEX chat_message_reactions_message_id_189e94bd ON public.chat_message_reactions USING btree (message_id)
  • CREATE UNIQUE INDEX chat_message_reactions_pkey ON public.chat_message_reactions USING btree (id)
  • CREATE INDEX chat_messag_message_98c8f8_idx ON public.chat_message_reactions USING btree (message_id, reaction)
  • CREATE INDEX chat_messag_user_id_5c6285_idx ON public.chat_message_reactions USING btree (user_id, created_at)

Sample Data (0 of 0 rows)

No data

chat_messages_mentions
0 rows 3 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 chatmessage_id uuid NO ๐Ÿ”— โ†’ chat_messages.id
3 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX chat_messages_mentions_pkey ON public.chat_messages_mentions USING btree (id)
  • CREATE UNIQUE INDEX chat_messages_mentions_chatmessage_id_user_id_d9882e29_uniq ON public.chat_messages_mentions USING btree (chatmessage_id, user_id)
  • CREATE INDEX chat_messages_mentions_user_id_4f94ac1d ON public.chat_messages_mentions USING btree (user_id)
  • CREATE INDEX chat_messages_mentions_chatmessage_id_3a79a3ad ON public.chat_messages_mentions USING btree (chatmessage_id)

Sample Data (0 of 0 rows)

No data

chat_notifications
0 rows 18 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 notification_type varchar(20) NO
3 title varchar(200) NO
4 message text NO
5 object_id uuid NO
6 delivery_method varchar(20) NO
7 status varchar(20) NO
8 scheduled_at timestamptz YES
9 sent_at timestamptz YES
10 delivered_at timestamptz YES
11 read_at timestamptz YES
12 metadata jsonb NO
13 error_message text NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 content_type_id int4 NO ๐Ÿ”— โ†’ django_content_type.id
17 recipient_id int4 NO ๐Ÿ”— โ†’ auth_user.id
18 sender_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX chat_notifications_content_type_id_07a39502 ON public.chat_notifications USING btree (content_type_id)
  • CREATE INDEX chat_notifi_schedul_4300d5_idx ON public.chat_notifications USING btree (scheduled_at)
  • CREATE INDEX chat_notifi_recipie_3ce54b_idx ON public.chat_notifications USING btree (recipient_id, status)
  • CREATE INDEX chat_notifi_notific_eb2ccf_idx ON public.chat_notifications USING btree (notification_type, created_at)
  • CREATE INDEX chat_notifi_content_241aae_idx ON public.chat_notifications USING btree (content_type_id, object_id)
  • CREATE UNIQUE INDEX chat_notifications_pkey ON public.chat_notifications USING btree (id)
  • CREATE INDEX chat_notifications_sender_id_92c55a5a ON public.chat_notifications USING btree (sender_id)
  • CREATE INDEX chat_notifications_recipient_id_4ee8b946 ON public.chat_notifications USING btree (recipient_id)

Sample Data (0 of 0 rows)

No data

๐Ÿ’ฐ Invoices & Billing 11 tables ยท 69,016 rows
invoice_field_mappings
55,828 rows 16 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 field_type varchar(50) NO
3 field_name varchar(100) NO
4 extracted_value text YES
5 page_number int4 NO
6 x_coordinate float8 NO
7 y_coordinate float8 NO
8 width float8 NO
9 height float8 NO
10 confidence_score float8 NO
11 processor_type varchar(50) NO
12 line_item_index int4 YES
13 line_item_property varchar(50) YES
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoice_field_mappings_invoice_id_field_type_li_3910184d_uniq ON public.invoice_field_mappings USING btree (invoice_id, field_type, line_item_index, line_item_property)
  • CREATE INDEX invoice_field_mappings_invoice_id_22786b80 ON public.invoice_field_mappings USING btree (invoice_id)
  • CREATE INDEX invoice_fie_invoice_266970_idx ON public.invoice_field_mappings USING btree (invoice_id, field_type)
  • CREATE INDEX invoice_fie_invoice_2773e5_idx ON public.invoice_field_mappings USING btree (invoice_id, page_number)
  • CREATE INDEX invoice_fie_field_t_5539aa_idx ON public.invoice_field_mappings USING btree (field_type)
  • CREATE INDEX invoice_fie_confide_c53c73_idx ON public.invoice_field_mappings USING btree (confidence_score)
  • CREATE UNIQUE INDEX invoice_field_mappings_pkey ON public.invoice_field_mappings USING btree (id)

Check Constraints

  • invoice_field_mappings_line_item_index_check: (line_item_index >= 0)
  • invoice_field_mappings_page_number_check: (page_number >= 0)

Sample Data (3 of 55,828 rows)

idfield_typefield_nameextracted_valuepage_numberx_coordinatey_coordinatewidthheightconfidence_scoreprocessor_typeline_item_indexline_item_propertycreated_atupdated_atinvoice_id
146204currencycurrency$1154621096230.999956488609314document_aiNULLNULL2025-12-09T19:09:24.561846+01:002025-12-09T19:09:24.561863+01:0011325
146205invoice_dateinvoice_date129202511303280103220.9981831908226013document_aiNULLNULL2025-12-09T19:09:24.563057+01:002025-12-09T19:09:24.563072+01:0011325
146206othersupplier_phone281-558-4840110292174171330.9986158609390259document_aiNULLNULL2025-12-09T19:09:24.564095+01:002025-12-09T19:09:24.56411+01:0011325
invoice_line_items
5,765 rows 19 cols 5 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 line_number int4 NO
3 description varchar(500) NO
4 amount numeric NO
5 quantity numeric NO
6 unit_price numeric YES
7 is_recurring bool NO
8 is_emergency bool NO
9 is_capital_expense bool NO
10 requires_approval bool NO
11 approved_at timestamptz YES
12 notes text NO
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 account_id int8 YES ๐Ÿ”— โ†’ chart_of_accounts.id
16 approved_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
17 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id
18 property_ref_id uuid YES ๐Ÿ”— โ†’ properties.id
19 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoice_line_items_pkey ON public.invoice_line_items USING btree (id)
  • CREATE INDEX invoice_lin_invoice_484095_idx ON public.invoice_line_items USING btree (invoice_id, line_number)
  • CREATE INDEX invoice_lin_is_capi_d83201_idx ON public.invoice_line_items USING btree (is_capital_expense)
  • CREATE INDEX invoice_lin_propert_1c06c6_idx ON public.invoice_line_items USING btree (property_ref_id, unit_id)
  • CREATE INDEX invoice_line_items_account_id_1d03c06d ON public.invoice_line_items USING btree (account_id)
  • CREATE INDEX invoice_line_items_approved_by_id_63f7de9d ON public.invoice_line_items USING btree (approved_by_id)
  • CREATE INDEX invoice_line_items_invoice_id_f077acf8 ON public.invoice_line_items USING btree (invoice_id)
  • CREATE INDEX invoice_line_items_property_ref_id_a9b3f6a8 ON public.invoice_line_items USING btree (property_ref_id)
  • CREATE INDEX invoice_line_items_unit_id_b2df4a9d ON public.invoice_line_items USING btree (unit_id)
  • CREATE UNIQUE INDEX invoice_line_items_invoice_id_line_number_617dc8c3_uniq ON public.invoice_line_items USING btree (invoice_id, line_number)
  • CREATE INDEX invoice_lin_account_c4d7c8_idx ON public.invoice_line_items USING btree (account_id)

Check Constraints

  • invoice_line_items_line_number_check: (line_number >= 0)

Sample Data (3 of 5,765 rows)

idline_numberdescriptionamountquantityunit_priceis_recurringis_emergencyis_capital_expenserequires_approvalapproved_atnotescreated_atupdated_ataccount_idapproved_by_idinvoice_idproperty_ref_idunit_id
144481HDF310PGRWW 24 DISHWASHER291.771.0291.77FalseFalseTrueFalseNULL2025-12-10T06:50:10.65723+01:002025-12-10T06:50:10.657246+01:0029NULL11450ce83695e-0d41-4aae-8a87-ae4a2eab470eNULL
150771CHARGE933.91.0NULLFalseFalseFalseFalseNULL2025-12-10T21:43:01.451517+01:002025-12-10T21:43:01.451557+01:0010NULL11668ac632223-fff6-484f-9243-9ee0984cd8a2NULL
143281Snow Plowing460.01.0460.0FalseFalseFalseFalseNULL2025-12-09T20:25:48.404127+01:002025-12-09T20:25:48.404148+01:0019NULL114038b8ea261-3e4c-46e2-bfd1-407f3e571414NULL
invoice_attachments
2,983 rows 12 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 file_type varchar(20) NO
3 file_name varchar(255) NO
4 file_path varchar(500) NO
5 file_size int8 NO
6 mime_type varchar(100) YES
7 checksum varchar(64) YES
8 is_processed bool NO
9 processing_errors text YES
10 created_at timestamptz NO
11 processed_at timestamptz YES
12 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoice_attachments_pkey ON public.invoice_attachments USING btree (id)
  • CREATE INDEX invoice_att_invoice_f2f6fd_idx ON public.invoice_attachments USING btree (invoice_id)
  • CREATE INDEX invoice_attachments_invoice_id_1d0a2777 ON public.invoice_attachments USING btree (invoice_id)
  • CREATE INDEX invoice_att_file_ty_531268_idx ON public.invoice_attachments USING btree (file_type)
  • CREATE INDEX invoice_att_is_proc_db7914_idx ON public.invoice_attachments USING btree (is_processed)

Sample Data (3 of 2,983 rows)

idfile_typefile_namefile_pathfile_sizemime_typechecksumis_processedprocessing_errorscreated_atprocessed_atinvoice_id
6001image1242363_page_1.pnginvoices/11397/attachments/1242363_page_1.png224480image/pngNULLFalseNULL2025-12-09T19:36:10.932701+01:00NULL11397
5922pdfInv_1242346_from_J_Turner_Research_LP_8057383_54496.pdfinvoices/originals/2025/12/20251209_180921_Inv_1242346_from_J_Turner_Research_LP...705653application/pdfNULLTrueNULL2025-12-09T19:09:21.253522+01:002025-12-09T19:09:24.528816+01:0011325
6004image1242364_page_1.pnginvoices/11394/attachments/1242364_page_1.png222341image/pngNULLFalseNULL2025-12-09T19:39:21.385483+01:00NULL11394
invoices
2,142 rows 96 cols 10 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 invoice_number varchar(100) NO
3 invoice_type varchar(20) NO
4 vendor_name varchar(200) NO
5 amount numeric NO
6 currency varchar(3) NO
7 invoice_date date NO
8 due_date date NO
9 service_date date YES
10 status varchar(20) NO
11 confidence_score float8 YES
12 email_subject varchar(500) YES
13 email_sender varchar(254) YES
14 email_received_at timestamptz YES
15 original_file_path varchar(500) YES
16 processed_file_path varchar(500) YES
17 pdf_file varchar(100) YES
18 payment_status varchar(20) NO
19 paid_amount numeric NO
20 payment_date date YES
21 yardi_invoice_id varchar(100) YES
22 yardi_upload_status varchar(20) NO
23 created_at timestamptz NO
24 updated_at timestamptz NO
25 processed_at timestamptz YES
26 description text YES
27 notes text YES
28 is_duplicate bool NO
29 metadata jsonb NO
30 document_ai_raw_data jsonb YES
31 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
32 original_invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id
33 property_id uuid YES ๐Ÿ”— โ†’ properties.id
34 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id
35 vendor_id uuid YES ๐Ÿ”— โ†’ vendors_vendor.id
36 yardi_invoice_register_id varchar(100) YES
37 expense_category_id uuid YES ๐Ÿ”— โ†’ invoice_expense_categories.id
38 vendor_match_confidence numeric YES
39 vendor_matched bool NO
40 vendor_verification_required bool NO
41 security_flag bool NO
42 property_match_confidence numeric YES
43 property_matched bool NO
44 probable_property_address text YES
45 probable_property_code varchar(50) YES
46 probable_property_name varchar(200) YES
47 probable_unit_number varchar(50) YES
48 probable_vendor_address text YES
49 probable_vendor_email varchar(255) YES
50 probable_vendor_name varchar(200) YES
51 probable_vendor_phone varchar(50) YES
52 probable_vendor_tax_id varchar(50) YES
53 property_assigned_at timestamptz YES
54 property_assigned_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
55 property_assignment_notes text YES
56 property_manually_matched bool NO
57 property_match_failed bool NO
58 property_match_strategy varchar(50) YES
59 security_notes text YES
60 unit_manually_matched bool NO
61 unit_match_confidence numeric YES
62 unit_matched bool NO
63 vendor_match_strategy varchar(50) YES
64 vendor_verified_at timestamptz YES
65 vendor_verified_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
66 invoice_paid_on timestamptz YES
67 page_count int4 YES
68 yardi_batch_id varchar(100) YES
69 yardi_images_upload_date timestamptz YES
70 yardi_images_uploaded bool NO
71 yardi_last_upload_attempt timestamptz YES
72 yardi_upload_retry_count int4 NO
73 page_dimensions jsonb YES
74 page_dimensions_unit varchar(20) YES
75 page_height_pixels float8 YES
76 page_width_pixels float8 YES
77 auto_approved bool NO
78 yardi_po_batch_id varchar(100) YES
79 yardi_po_created_date timestamptz YES
80 yardi_po_number varchar(100) YES
81 subtotal_amount numeric YES
82 tax_amount numeric NO
83 tax_percentage numeric YES
84 ocr_full_text text NO
85 ai_summary text NO
86 llm_response jsonb YES
87 reason text NO
88 last_reprocess_attempt timestamptz YES
89 reprocess_attempt_count int4 NO
90 is_split_parent bool NO
91 parent_split_job_id int8 YES ๐Ÿ”— โ†’ pdf_split_jobs.id
92 email_message_id varchar(255) YES
93 processing_priority int4 NO
94 vendor_assigned_at timestamptz YES
95 vendor_assigned_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
96 vendor_manually_matched bool NO

Foreign Keys

Indexes

  • CREATE INDEX invoices_vendor__547095_idx ON public.invoices USING btree (vendor_name)
  • CREATE INDEX invoices_yardi_u_8525d1_idx ON public.invoices USING btree (yardi_upload_status)
  • CREATE INDEX invoices_vendor_verified_by_id_1f0a99dc ON public.invoices USING btree (vendor_verified_by_id)
  • CREATE INDEX invoices_vendor_id_688bc1ae ON public.invoices USING btree (vendor_id)
  • CREATE INDEX invoices_vendor_assigned_by_id_c7a97e9c ON public.invoices USING btree (vendor_assigned_by_id)
  • CREATE INDEX invoices_expense_category_id_23f40645 ON public.invoices USING btree (expense_category_id)
  • CREATE UNIQUE INDEX invoices_pkey ON public.invoices USING btree (id)
  • CREATE UNIQUE INDEX invoices_invoice_number_key ON public.invoices USING btree (invoice_number)
  • CREATE INDEX invoices_invoice_7778bc_idx ON public.invoices USING btree (invoice_number)
  • CREATE INDEX invoices_invoice_e14adb_idx ON public.invoices USING btree (invoice_date)
  • CREATE INDEX invoices_invoice_number_d71e3c2e_like ON public.invoices USING btree (invoice_number varchar_pattern_ops)
  • CREATE INDEX invoices_is_spli_189df8_idx ON public.invoices USING btree (is_split_parent)
  • CREATE INDEX invoices_is_split_parent_95782f30 ON public.invoices USING btree (is_split_parent)
  • CREATE INDEX invoices_original_invoice_id_8a1e2a0c ON public.invoices USING btree (original_invoice_id)
  • CREATE INDEX invoices_parent_split_job_id_903851ff ON public.invoices USING btree (parent_split_job_id)
  • CREATE INDEX invoices_processing_priority_cbb0cba2 ON public.invoices USING btree (processing_priority)
  • CREATE INDEX invoices_property_assigned_by_id_63173d3a ON public.invoices USING btree (property_assigned_by_id)
  • CREATE INDEX invoices_property_id_248b3646 ON public.invoices USING btree (property_id)
  • CREATE INDEX invoices_unit_id_49b57fb4 ON public.invoices USING btree (unit_id)
  • CREATE INDEX invoices_status_07776b_idx ON public.invoices USING btree (status)
  • CREATE INDEX invoices_reason_594d3772_like ON public.invoices USING btree (reason text_pattern_ops)
  • CREATE INDEX invoices_reason_594d3772 ON public.invoices USING btree (reason)
  • CREATE INDEX invoices_due_dat_039a25_idx ON public.invoices USING btree (due_date)
  • CREATE INDEX invoices_email_message_id_56f21791 ON public.invoices USING btree (email_message_id)
  • CREATE INDEX invoices_email_message_id_56f21791_like ON public.invoices USING btree (email_message_id varchar_pattern_ops)
  • CREATE INDEX invoices_created_by_id_ae2b3bef ON public.invoices USING btree (created_by_id)

Check Constraints

  • invoices_page_count_check: (page_count >= 0)
  • invoices_reprocess_attempt_count_check: (reprocess_attempt_count >= 0)
  • invoices_yardi_upload_retry_count_check: (yardi_upload_retry_count >= 0)

Sample Data (3 of 2,142 rows)

idinvoice_numberinvoice_typevendor_nameamountcurrencyinvoice_datedue_dateservice_datestatusconfidence_scoreemail_subjectemail_senderemail_received_atoriginal_file_pathprocessed_file_pathpdf_filepayment_statuspaid_amountpayment_dateyardi_invoice_idyardi_upload_statuscreated_atupdated_atprocessed_atdescriptionnotesis_duplicatemetadatadocument_ai_raw_datacreated_by_idoriginal_invoice_idproperty_idunit_idvendor_idyardi_invoice_register_idexpense_category_idvendor_match_confidencevendor_matchedvendor_verification_requiredsecurity_flagproperty_match_confidenceproperty_matchedprobable_property_addressprobable_property_codeprobable_property_nameprobable_unit_numberprobable_vendor_addressprobable_vendor_emailprobable_vendor_nameprobable_vendor_phoneprobable_vendor_tax_idproperty_assigned_atproperty_assigned_by_idproperty_assignment_notesproperty_manually_matchedproperty_match_failedproperty_match_strategysecurity_notesunit_manually_matchedunit_match_confidenceunit_matchedvendor_match_strategyvendor_verified_atvendor_verified_by_idinvoice_paid_onpage_countyardi_batch_idyardi_images_upload_dateyardi_images_uploadedyardi_last_upload_attemptyardi_upload_retry_countpage_dimensionspage_dimensions_unitpage_height_pixelspage_width_pixelsauto_approvedyardi_po_batch_idyardi_po_created_dateyardi_po_numbersubtotal_amounttax_amounttax_percentageocr_full_textai_summaryllm_responsereasonlast_reprocess_attemptreprocess_attempt_countis_split_parentparent_split_job_idemail_message_idprocessing_priorityvendor_assigned_atvendor_assigned_by_idvendor_manually_matched
113361242353otherJ TURNER335.58USD2025-12-092026-01-10NULLapproved0.986205400586128Invoice 1242353 from J Turner Research LPDyanne Grant <dgrant@jturnerresearch.com>2025-12-09T18:59:56+01:00NULLNULLunpaid0.0NULL1242353uploaded2025-12-09T19:12:38.077308+01:002025-12-09T19:27:32.428671+01:002025-12-09T19:12:42.293841+01:00NULLThis invoice details marketing and resident relation services, including surveys...False{"source": "outlook_email", "email_id": "AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAA{"ocr_text": "Invoice\nJ TURNER\nDate\nInvoice #\nRESEARCH\n12/9/2025\n1242353\nBill To\nZidans HamiNULLNULL0602c07d-9fb4-4a1c-90b7-26f119d1d34aNULL27a843c6-f498-4574-9be4-0846d2d88c78291283350faca4-bfa5-4181-9628-dd7dd9e1345a1.0TrueFalseFalse0.95TrueNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLFalseFalseunified_gemini_llmNULLFalseNULLFalsellm_vendor_matchNULLNULLNULL11127672025-12-09T19:27:32.391103+01:00True2025-12-09T19:26:28.111712+01:000{"all_pages": [{"unit": "pixels", "width": 1758.0, "height": 2275.0, "page_number": 1}], "first_pagepixels22751758TrueNULLNULLNULL310.025.588.252Invoice J TURNER Date Invoice # RESEARCH 12/9/2025 1242353 Bill To Zidans Hamilt...This invoice details marketing and resident relation services, including surveys...{"line_items": [{"notes": "", "amount": 90.0, "quantity": 90.0, "unit_price": 1.0, "description": "PNULL0FalseNULLAAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAAAAADwWEjxf6EQRaWlwKdD...5NULLNULLFalse
1139814NK-YPNV-G7HNotheramazon business15.24USD2025-12-092026-02-03NULLcompleted0.9279072711467743Amazon Invoice Available (Invoice # 14NK-YPNV-G7HN)Amazon Business <no-reply@amazon.com>2025-12-09T19:38:24+01:00NULLNULLunpaid0.0NULLNULLpending2025-12-09T19:43:47.763537+01:002025-12-09T19:44:22.104174+01:002025-12-09T19:44:22.101061+01:00NULLThis invoice details the purchase of a Rantice Military-Grade Tested Case for an...False{"source": "outlook_email", "email_id": "AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAA{"ocr_text": "amazon business\nInvoice\nInvoice # 14NK-YPNV-G7HN | December 09, 2025\nFor customer sNULLNULL0602c07d-9fb4-4a1c-90b7-26f119d1d34aNULL627ae96a-752e-455e-921b-83c65ba8c9b2NULLccd11c62-401f-44c7-ab1a-700bf36a0f161.0TrueFalseFalse0.95TrueNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLNULLFalseFalseunified_gemini_llmNULLFalseNULLFalsellm_vendor_matchNULLNULLNULL2NULLNULLFalseNULL0{"all_pages": [{"unit": "pixels", "width": 1758.0, "height": 2275.0, "page_number": 1}, {"unit": "pipixels22751758FalseNULLNULLNULL14.241.07.022amazon business Invoice Invoice # 14NK-YPNV-G7HN | December 09, 2025 For custome...This invoice details the purchase of a Rantice Military-Grade Tested Case for an...{"line_items": [{"notes": "", "amount": 14.24, "quantity": 1.0, "unit_price": 14.24, "description": NULL0FalseNULLAAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAAAAADwWEjxf6EQRaWlwKdD...5NULLNULLFalse
13084INV-1990193-3otherApartment Guide/Rent Path Rent Group Inc.389.0USD2025-11-262025-12-26NULLrejected0.8858619954341497Fw: 79423 Arbor Pointe Townhomes Apartment List | Courtesy Reminder of Outstandi...Simona Ginga <sginga@zidans.com>2025-12-29T14:51:03+01:00NULLNULLunpaid0.0NULLNULLpending2025-12-29T14:53:51.295398+01:002025-12-29T14:55:30.00629+01:002025-12-29T14:55:30.001246+01:00NULLThis invoice from Apartment List is for a pay-per-lease agreement, where the com...False{"source": "outlook_email", "email_id": "AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAA{"ocr_text": "Apartment List\nINVOICE\nCommunity Name\nInvoice #\nInvoice Date\nDue Date\nInvoice ReNULLNULL9220b4cf-6966-4b42-8534-dc802039b024NULL47fffc10-2ddc-4cca-9f8c-89879e6af4ddNULLccd11c62-401f-44c7-ab1a-700bf36a0f16NULLFalseFalseFalse0.95TrueNULLNULLNULLNULLAtlanta, GA, 30374-092513669@yardi.scrubNULL3178721983NULLNULLNULLNULLFalseFalseunified_gemini_llmNULLFalseNULLFalseNULLNULLNULLNULL1NULLNULLFalseNULL0{"all_pages": [{"unit": "pixels", "width": 1758.0, "height": 2275.0, "page_number": 1}], "first_pagepixels22751758FalseNULLNULLNULLNULL0.0NULLApartment List INVOICE Community Name Invoice # Invoice Date Due Date Invoice Re...This invoice from Apartment List is for a pay-per-lease agreement, where the com...{"line_items": [{"notes": "", "amount": 389.0, "quantity": 1.0, "unit_price": 389.0, "description": Duplicate of invoice #INV-1990193NULL0FalseNULLAAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAAAAADwWEjxf6EQRaWlwKdD...5NULLNULLFalse
invoices_rawemail
1,544 rows 16 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 email_id varchar(200) NO
3 message_id varchar(500) NO
4 subject varchar(500) NO
5 sender varchar(254) NO
6 sender_name varchar(200) NO
7 recipient varchar(254) NO
8 body_text text NO
9 body_html text NO
10 received_date timestamptz NO
11 processed_date timestamptz YES
12 is_processed bool NO
13 is_invoice bool NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoices_rawemail_pkey ON public.invoices_rawemail USING btree (id)
  • CREATE UNIQUE INDEX invoices_rawemail_email_id_key ON public.invoices_rawemail USING btree (email_id)
  • CREATE INDEX invoices_ra_email_i_6c1a15_idx ON public.invoices_rawemail USING btree (email_id)
  • CREATE INDEX invoices_ra_is_invo_767f56_idx ON public.invoices_rawemail USING btree (is_invoice)
  • CREATE INDEX invoices_ra_is_proc_0ed359_idx ON public.invoices_rawemail USING btree (is_processed)
  • CREATE INDEX invoices_ra_receive_fc046e_idx ON public.invoices_rawemail USING btree (received_date)
  • CREATE INDEX invoices_ra_sender_f354ed_idx ON public.invoices_rawemail USING btree (sender)
  • CREATE INDEX invoices_rawemail_email_id_4fecf525_like ON public.invoices_rawemail USING btree (email_id varchar_pattern_ops)
  • CREATE INDEX invoices_rawemail_invoice_id_aa9cc4a7 ON public.invoices_rawemail USING btree (invoice_id)

Sample Data (3 of 1,544 rows)

idemail_idmessage_idsubjectsendersender_namerecipientbody_textbody_htmlreceived_dateprocessed_dateis_processedis_invoicecreated_atupdated_atinvoice_id
1940AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAAAAADwWEjxf6EQRaWlwKdD...Invoice 1242346 from J Turner Research LPDyanne Grant <dgrant@jturnerresearch.com>CAUTION: This email originated from outside your organization. Exercise caution ...2025-12-09T19:02:08+01:00NULLFalseTrue2025-12-09T19:09:21.057489+01:002025-12-09T19:09:21.0575+01:0011325
1941AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAAAAADwWEjxf6EQRaWlwKdD...Invoice 1242345 from J Turner Research LPDyanne Grant <dgrant@jturnerresearch.com>CAUTION: This email originated from outside your organization. Exercise caution ...2025-12-09T19:01:30+01:00NULLFalseTrue2025-12-09T19:09:40.0533+01:002025-12-09T19:09:40.053311+01:0011326
1942AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi05ZDQ4LWViYzMwMWE0NDM4ZABGAAAAAADwWEjxf6EQRaWlwKdD...Invoice 1242356 from J Turner Research LPDyanne Grant <dgrant@jturnerresearch.com>CAUTION: This email originated from outside your organization. Exercise caution ...2025-12-09T19:01:28+01:00NULLFalseTrue2025-12-09T19:09:59.480428+01:002025-12-09T19:09:59.480437+01:0011327
invoice_exceptions
720 rows 21 cols 5 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 error_message text NO
3 error_details jsonb NO
4 field_name varchar(100) NO
5 field_value text NO
6 status varchar(20) NO
7 priority int4 NO
8 resolution_notes text NO
9 resolution_action varchar(100) NO
10 detected_at timestamptz NO
11 reviewed_at timestamptz YES
12 resolved_at timestamptz YES
13 sla_deadline timestamptz YES
14 is_blocking bool NO
15 auto_detected bool NO
16 notification_sent bool NO
17 assigned_to_id int4 YES ๐Ÿ”— โ†’ auth_user.id
18 duplicate_invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id
19 exception_type_id int8 NO ๐Ÿ”— โ†’ exception_types.id
20 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id
21 reviewed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX invoice_exceptions_assigned_to_id_eb4885a6 ON public.invoice_exceptions USING btree (assigned_to_id)
  • CREATE UNIQUE INDEX invoice_exceptions_pkey ON public.invoice_exceptions USING btree (id)
  • CREATE INDEX invoice_exc_assigne_bada61_idx ON public.invoice_exceptions USING btree (assigned_to_id, status)
  • CREATE INDEX invoice_exc_detecte_08a67e_idx ON public.invoice_exceptions USING btree (detected_at)
  • CREATE INDEX invoice_exc_invoice_ea7eb0_idx ON public.invoice_exceptions USING btree (invoice_id, exception_type_id)
  • CREATE INDEX invoice_exc_status_6a45ec_idx ON public.invoice_exceptions USING btree (status, priority)
  • CREATE INDEX invoice_exceptions_duplicate_invoice_id_8a7bf2e6 ON public.invoice_exceptions USING btree (duplicate_invoice_id)
  • CREATE INDEX invoice_exceptions_exception_type_id_d0f3eda7 ON public.invoice_exceptions USING btree (exception_type_id)
  • CREATE INDEX invoice_exceptions_invoice_id_8d7ed467 ON public.invoice_exceptions USING btree (invoice_id)
  • CREATE INDEX invoice_exceptions_reviewed_by_id_875a61cf ON public.invoice_exceptions USING btree (reviewed_by_id)

Sample Data (3 of 720 rows)

iderror_messageerror_detailsfield_namefield_valuestatuspriorityresolution_notesresolution_actiondetected_atreviewed_atresolved_atsla_deadlineis_blockingauto_detectednotification_sentassigned_to_idduplicate_invoice_idexception_type_idinvoice_idreviewed_by_id
3553Document is an account statement (summary), not an invoice. Confidence: 75%. Do ...{"filename": "invoices/originals/2025/12/20251209_181321_statement-olde-towne-apartments-2025-12-08.pending22025-12-09T19:13:49.572138+01:00NULLNULL2025-12-10T03:13:49.571907+01:00TrueTrueFalseNULLNULL1611341NULL
3554Duplicate invoice: original number '00040' already exists as invoice 00040 (ID: ...{"confidence": 1.0, "detection_id": "10076", "suffix_added": 1, "suffix_reason": "duplicate_invoice_pending22025-12-09T19:15:15.711166+01:00NULLNULL2025-12-10T03:15:15.710776+01:00TrueTrueFalseNULL11348111350NULL
4256Low confidence score: 55%{"threshold": 0.7, "confidence_score": 0.5510781965617622}pending22026-01-10T17:51:38.394132+01:00NULLNULL2026-01-11T17:51:38.393642+01:00FalseTrueFalseNULLNULL713721NULL
invoice_expense_categories
16 rows 17 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 code varchar(20) NO
4 description text NO
5 keywords jsonb NO
6 vendor_patterns jsonb NO
7 icon varchar(50) NO
8 color varchar(7) NO
9 display_order int4 NO
10 is_active bool NO
11 is_default bool NO
12 auto_classify bool NO
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
16 parent_category_id uuid YES ๐Ÿ”— โ†’ invoice_expense_categories.id
17 annual_budget numeric YES

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoice_expense_categories_code_key ON public.invoice_expense_categories USING btree (code)
  • CREATE INDEX invoice_expense_categories_parent_category_id_2e81a426 ON public.invoice_expense_categories USING btree (parent_category_id)
  • CREATE INDEX invoice_expense_categories_name_b748c769_like ON public.invoice_expense_categories USING btree (name varchar_pattern_ops)
  • CREATE INDEX invoice_expense_categories_created_by_id_f8800b69 ON public.invoice_expense_categories USING btree (created_by_id)
  • CREATE INDEX invoice_expense_categories_code_d3eaef28_like ON public.invoice_expense_categories USING btree (code varchar_pattern_ops)
  • CREATE UNIQUE INDEX invoice_expense_categories_pkey ON public.invoice_expense_categories USING btree (id)
  • CREATE UNIQUE INDEX invoice_expense_categories_name_key ON public.invoice_expense_categories USING btree (name)

Sample Data (3 of 16 rows)

idnamecodedescriptionkeywordsvendor_patternsiconcolordisplay_orderis_activeis_defaultauto_classifycreated_atupdated_atcreated_by_idparent_category_idannual_budget
ee03d94d-a3e1-445e-ab2f-478bda5e50acCleaning ServicesCLEANCleaning and janitorial services["cleaning", "janitorial", "housekeeping", "sanitation", "disinfection", "carpet cleaning", "window ["CLEANING", "JANITORIAL", "HOUSEKEEPING", "CUSTODIAL", "SANITATION"]broom#A8E6CF6TrueFalseTrue2025-09-29T16:22:16.440395+02:002025-09-29T16:22:16.440412+02:00NULLNULL47683.0
306b88a2-a722-4d77-a58e-aa68bbb1c04eElectrical ServicesELECElectrical installation, repair, and maintenance services["electrical", "electric", "electrician", "wiring", "outlet", "switch", "breaker", "panel", "circuit["ELECTRICAL", "ELECTRIC", "POWER", "LIGHTING"]zap#F7DC6F4TrueFalseTrue2025-09-29T16:22:16.398192+02:002025-09-29T16:22:16.398216+02:00NULLNULL96019.0
deda10e4-6d1a-4d94-bcc6-96942ec4aebbFlooring & CarpetFLOORFlooring installation, repair, and carpet services["flooring", "carpet", "tile", "hardwood", "laminate", "vinyl", "installation", "replacement", "refi["CARPET", "FLOORING", "TILE", "HARDWOOD", "FLOOR"]grid#D4A57410TrueFalseTrue2025-09-29T16:22:16.491463+02:002025-09-29T16:22:16.491488+02:00NULLNULL62881.0
invoices_invoiceaiextraction
12 rows 23 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 extracted_vendor_name varchar(255) NO
3 extracted_invoice_number varchar(100) NO
4 extracted_date date YES
5 extracted_due_date date YES
6 extracted_total numeric YES
7 extracted_subtotal numeric YES
8 extracted_tax numeric YES
9 extracted_line_items jsonb NO
10 matched_work_order_id uuid YES
11 wo_match_confidence float8 YES
12 suggested_gl_code varchar(50) NO
13 price_anomaly_detected bool NO
14 price_anomaly_details text NO
15 extraction_confidence float8 NO
16 extraction_status varchar(20) NO
17 extraction_model varchar(100) NO
18 extracted_at timestamptz YES
19 approved_at timestamptz YES
20 approved_by varchar(255) NO
21 created_at timestamptz NO
22 updated_at timestamptz NO
23 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoices_invoiceaiextraction_pkey ON public.invoices_invoiceaiextraction USING btree (id)
  • CREATE UNIQUE INDEX invoices_invoiceaiextraction_invoice_id_key ON public.invoices_invoiceaiextraction USING btree (invoice_id)
  • CREATE INDEX invoices_in_extract_c986d5_idx ON public.invoices_invoiceaiextraction USING btree (extraction_status)
  • CREATE INDEX invoices_in_extract_08450f_idx ON public.invoices_invoiceaiextraction USING btree (extraction_confidence)

Sample Data (3 of 12 rows)

idextracted_vendor_nameextracted_invoice_numberextracted_dateextracted_due_dateextracted_totalextracted_subtotalextracted_taxextracted_line_itemsmatched_work_order_idwo_match_confidencesuggested_gl_codeprice_anomaly_detectedprice_anomaly_detailsextraction_confidenceextraction_statusextraction_modelextracted_atapproved_atapproved_bycreated_atupdated_atinvoice_id
48d41edf-c149-4c94-a090-64ef57043920Nine One/One ExterminatorsTEMP_20251222_103459_EMAIL2025-12-222026-01-210.00.00.0[{"amount": 340.0, "quantity": 4.0, "unit_price": 85.0, "description": "Labor - General Maintenance"NULLNULL9000-Capital-ImprovementsFalse0.8986completedunitcycle-extract-v22026-03-20T19:01:03.772953+01:00NULL2026-03-29T19:01:03.773778+02:002026-03-29T19:01:03.773785+02:0012691
17f0b7ce-3651-4333-9137-c0e4e1bcf957J TURNER12423532025-12-092026-01-10338.21315.6222.59[{"amount": 186.4, "quantity": 1.0, "unit_price": 186.4, "description": "Janitorial Supplies"}, {"amNULLNULL5000-MaintenanceFalse0.9703approvedunitcycle-extract-v22026-03-21T21:01:03.782949+01:002026-03-27T11:01:03.782923+01:00j.smith2026-03-29T19:01:03.783594+02:002026-03-29T19:01:03.783599+02:0011336
698f8371-5f8a-43a2-a3f3-4efc53d05187amazon business14NK-YPNV-G7HN2025-12-092026-02-0315.0413.641.4[{"amount": 250.0, "quantity": 2.0, "unit_price": 125.0, "description": "Plumbing - Drain Cleaning"}NULLNULL6200-ElectricityFalse0.9051completedunitcycle-extract-v22026-03-27T20:01:03.788397+01:00NULL2026-03-29T19:01:03.788877+02:002026-03-29T19:01:03.788884+02:0011398
invoice_expense_category_rules
6 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 rule_type varchar(20) NO
4 match_type varchar(20) NO
5 pattern varchar(500) NO
6 is_case_sensitive bool NO
7 priority int4 NO
8 confidence_score numeric NO
9 min_amount numeric YES
10 max_amount numeric YES
11 is_active bool NO
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 category_id uuid NO ๐Ÿ”— โ†’ invoice_expense_categories.id
15 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX invoice_expense_category_rules_category_id_77afdba4 ON public.invoice_expense_category_rules USING btree (category_id)
  • CREATE INDEX invoice_expense_category_rules_created_by_id_dad8656f ON public.invoice_expense_category_rules USING btree (created_by_id)
  • CREATE UNIQUE INDEX invoice_expense_category_rules_category_id_name_6fd8e2ae_uniq ON public.invoice_expense_category_rules USING btree (category_id, name)
  • CREATE UNIQUE INDEX invoice_expense_category_rules_pkey ON public.invoice_expense_category_rules USING btree (id)

Sample Data (3 of 6 rows)

idnamerule_typematch_typepatternis_case_sensitivepriorityconfidence_scoremin_amountmax_amountis_activecreated_atupdated_atcategory_idcreated_by_id
28814d87-2ae1-48b1-abdf-48ece6563194HVAC Vendor Patternvendor_namecontainsMECHANICALFalse00.9NULLNULLTrue2025-09-29T16:22:16.588785+02:002025-09-29T16:22:16.588801+02:00b18e58b6-0be1-4dc1-b461-065502b75746NULL
32a61832-e5d6-4ee0-a97d-482d81663970Roto-Rooter Patternvendor_namecontainsROTOFalse00.95NULLNULLTrue2025-09-29T16:22:16.595646+02:002025-09-29T16:22:16.595667+02:001bd93917-1ed2-409b-af8c-3bb1a72dc20aNULL
6654457a-c850-41a0-bb4e-7787988db2d0Cleaning Keywordskeywordcontainscleaning|janitorial|housekeepingFalse00.8NULLNULLTrue2025-09-29T16:22:16.634753+02:002025-09-29T16:22:16.634769+02:00ee03d94d-a3e1-445e-ab2f-478bda5e50acNULL
invoice_classifications
0 rows 11 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 classification_method varchar(20) NO
3 confidence_score float8 NO
4 requires_review bool NO
5 reviewed_at timestamptz YES
6 review_notes text NO
7 classified_at timestamptz NO
8 classified_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
9 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id
10 primary_account_id int8 NO ๐Ÿ”— โ†’ chart_of_accounts.id
11 reviewed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX invoice_classifications_classified_by_id_311a8a79 ON public.invoice_classifications USING btree (classified_by_id)
  • CREATE INDEX invoice_cla_primary_decbe5_idx ON public.invoice_classifications USING btree (primary_account_id)
  • CREATE INDEX invoice_cla_classif_272a3f_idx ON public.invoice_classifications USING btree (classification_method)
  • CREATE UNIQUE INDEX invoice_classifications_pkey ON public.invoice_classifications USING btree (id)
  • CREATE UNIQUE INDEX invoice_classifications_invoice_id_key ON public.invoice_classifications USING btree (invoice_id)
  • CREATE INDEX invoice_classifications_reviewed_by_id_2a561814 ON public.invoice_classifications USING btree (reviewed_by_id)
  • CREATE INDEX invoice_classifications_primary_account_id_afd7e4cc ON public.invoice_classifications USING btree (primary_account_id)
  • CREATE INDEX invoice_cla_require_335403_idx ON public.invoice_classifications USING btree (requires_review)

Sample Data (0 of 0 rows)

No data

invoices_emailattachment
0 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 attachment_id varchar(200) NO
3 filename varchar(500) NO
4 content_type varchar(100) NO
5 size_bytes int4 NO
6 encoding varchar(50) NO
7 content_data bytea YES
8 content_hash varchar(64) NO
9 is_downloaded bool NO
10 is_processed bool NO
11 download_error text NO
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 invoice_attachment_id int8 YES ๐Ÿ”— โ†’ invoice_attachments.id
15 raw_email_id int8 NO ๐Ÿ”— โ†’ invoices_rawemail.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX invoices_emailattachment_invoice_attachment_id_key ON public.invoices_emailattachment USING btree (invoice_attachment_id)
  • CREATE INDEX invoices_em_content_8a112d_idx ON public.invoices_emailattachment USING btree (content_type)
  • CREATE INDEX invoices_em_attachm_291b28_idx ON public.invoices_emailattachment USING btree (attachment_id)
  • CREATE UNIQUE INDEX invoices_emailattachment_raw_email_id_attachment__c069ebf4_uniq ON public.invoices_emailattachment USING btree (raw_email_id, attachment_id)
  • CREATE UNIQUE INDEX invoices_emailattachment_pkey ON public.invoices_emailattachment USING btree (id)
  • CREATE INDEX invoices_em_is_proc_1e7e4f_idx ON public.invoices_emailattachment USING btree (is_processed)
  • CREATE INDEX invoices_em_is_down_641662_idx ON public.invoices_emailattachment USING btree (is_downloaded)
  • CREATE INDEX invoices_em_filenam_9c746b_idx ON public.invoices_emailattachment USING btree (filename)
  • CREATE INDEX invoices_emailattachment_raw_email_id_d76fccdb ON public.invoices_emailattachment USING btree (raw_email_id)

Check Constraints

  • invoices_emailattachment_size_bytes_check: (size_bytes >= 0)

Sample Data (0 of 0 rows)

No data

๐Ÿ’ณ Collections 11 tables ยท 223 rows
collection_action
79 rows 31 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 action_type varchar(30) NO
4 escalation_level int4 YES 1
5 message_text text YES ''::text
6 channel varchar(20) YES 'system'::character varying
7 status varchar(20) YES 'pending'::character varying
8 response text YES
9 response_date timestamptz YES
10 created_by varchar(100) YES 'system'::character varying
11 created_at timestamptz YES now()
12 tone_used varchar(20) YES ''::character varying
13 message_sent text YES ''::text
14 sent_at timestamptz YES
15 direction varchar(10) YES 'outbound'::character varying
16 delivery_status varchar(30) YES 'pending'::character varying
17 disposition_code varchar(40) YES ''::character varying
18 call_duration_seconds int4 YES
19 recording_url varchar(500) YES ''::character varying
20 actor_name varchar(100) YES 'system'::character varying
21 subject varchar(255) YES ''::character varying
22 template_key varchar(100) YES ''::character varying
23 payment_method varchar(20) YES ''::character varying
24 payment_source varchar(30) YES ''::character varying
25 nsf_flag bool YES false
26 nsf_reason_code varchar(50) YES ''::character varying
27 allocation_json jsonb YES '[]'::jsonb
28 certified_mail_tracking varchar(100) YES ''::character varying
29 certified_mail_proof_url varchar(500) YES ''::character varying
30 door_notice_date date YES
31 door_notice_photo_url varchar(500) YES ''::character varying

Foreign Keys

Indexes

  • CREATE INDEX idx_ca_created ON public.collection_action USING btree (created_at DESC)
  • CREATE INDEX idx_ca_case_id ON public.collection_action USING btree (case_id)
  • CREATE UNIQUE INDEX collection_action_pkey ON public.collection_action USING btree (id)

Sample Data (3 of 79 rows)

idcase_idaction_typeescalation_levelmessage_textchannelstatusresponseresponse_datecreated_bycreated_attone_usedmessage_sentsent_atdirectiondelivery_statusdisposition_codecall_duration_secondsrecording_urlactor_namesubjecttemplate_keypayment_methodpayment_sourcensf_flagnsf_reason_codeallocation_jsoncertified_mail_trackingcertified_mail_proof_urldoor_notice_datedoor_notice_photo_url
91a50e67-45e8-4df3-ae16-6658c1fe845bc34310bd-6e67-4f7e-bd33-7093b941ad78sms1Reminder: Your account has an outstanding balance of EUR 173. Please contact us ...smsdeliveredI'm disputing the late fee, I paid on time last month.2026-03-29T18:39:41.203405+02:00system2026-03-30T19:39:41.20944+02:00friendlyNULLoutboundreadNULLAI Dunning Enginedunning_l1_friendlyFalse[]NULL
7aac7498-fb4c-4b44-ab26-785ba907af88c34310bd-6e67-4f7e-bd33-7093b941ad78sms1I'm disputing the late fee, I paid on time last month.smsdeliveredNULLNULLNicol Beaumont2026-03-30T19:39:41.213765+02:00NULLinbounddeliveredNULLNicol BeaumontFalse[]NULL
fb3822c3-cbd1-40a3-9250-f5d788999082c0e30ffa-dcf0-4c14-abfc-dd2aff3901cbsms1Hi Juliette, this is a friendly reminder that your rent payment of EUR 425 is pa...smsdeliveredNULLNULLsystem2026-03-30T19:39:41.222552+02:00friendlyNULLoutboundreadNULLAI Dunning Enginedunning_l1_friendlyFalse[]NULL
collection_audit_trail
65 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO nextval('collection_audit_trail_id_seq'::regclass) ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 actor varchar(100) NO
4 action varchar(100) NO
5 detail text YES ''::text
6 ip_address varchar(45) YES ''::character varying
7 metadata_json jsonb YES '{}'::jsonb
8 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_cat_created ON public.collection_audit_trail USING btree (created_at DESC)
  • CREATE INDEX idx_cat_case_id ON public.collection_audit_trail USING btree (case_id)
  • CREATE UNIQUE INDEX collection_audit_trail_pkey ON public.collection_audit_trail USING btree (id)

Sample Data (3 of 65 rows)

idcase_idactoractiondetailip_addressmetadata_jsoncreated_at
9c34310bd-6e67-4f7e-bd33-7093b941ad78AI Dunning Enginecase_createdCollection case created from overdue lease192.168.1.100{}2026-03-30T19:39:41.215541+02:00
10c34310bd-6e67-4f7e-bd33-7093b941ad78Mike Chensend_reminderAutomated email reminder sent10.0.1.42{}2026-03-30T19:39:41.217777+02:00
11c34310bd-6e67-4f7e-bd33-7093b941ad78systemsend_reminderAutomated SMS reminder sent{}2026-03-30T19:39:41.219047+02:00
collection_document
19 rows 10 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO nextval('collection_document_id_seq'::regclass) ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 document_type varchar(40) NO
4 title varchar(255) NO
5 file_url varchar(500) YES ''::character varying
6 uploaded_by varchar(100) YES 'system'::character varying
7 uploaded_at timestamptz YES now()
8 category varchar(20) YES 'other'::character varying
9 version int4 YES 1
10 parent_document_id int8 YES ๐Ÿ”— โ†’ collection_document.id

Foreign Keys

Indexes

  • CREATE INDEX idx_collection_document_case_id ON public.collection_document USING btree (case_id)
  • CREATE UNIQUE INDEX collection_document_pkey ON public.collection_document USING btree (id)
  • CREATE INDEX idx_cdoc_case_id ON public.collection_document USING btree (case_id)

Sample Data (3 of 19 rows)

idcase_iddocument_typetitlefile_urluploaded_byuploaded_atcategoryversionparent_document_id
20fbab6e1c-7b54-48ca-9cd6-8606988f6c0aleaseLease Agreement โ€” 4802Thttps://demo.unitcycle.com/documents/82e09395.pdfProperty Manager2026-03-30T19:39:41.2562+02:00other1NULL
2140eb6167-c77e-454c-bd94-458eb2f25172leaseLease Agreement โ€” 0203https://demo.unitcycle.com/documents/2741a32e.pdfProperty Manager2026-03-30T19:39:41.274849+02:00other1NULL
22d6386c85-6acf-4481-870b-61c52581392dleaseLease Agreement โ€” 1411Ahttps://demo.unitcycle.com/documents/6c79c83f.pdfProperty Manager2026-03-30T19:39:41.293616+02:00other1NULL
collection_case
15 rows 79 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 unit_id uuid NO
4 property_id uuid NO
5 lease_id uuid NO
6 tenant_name varchar(200) YES ''::character varying
7 property_name varchar(200) YES ''::character varying
8 unit_number varchar(50) YES ''::character varying
9 outstanding_balance numeric YES 0
10 days_overdue int4 YES 0
11 escalation_level int4 YES 1
12 status varchar(20) YES 'open'::character varying
13 last_action_date timestamptz YES
14 next_action_date timestamptz YES
15 next_action_type varchar(50) YES ''::character varying
16 assigned_to varchar(100) YES ''::character varying
17 notes text YES ''::text
18 created_at timestamptz YES now()
19 updated_at timestamptz YES now()
20 tenant_risk_profile varchar(20) YES 'standard'::character varying
21 tone varchar(20) YES 'friendly'::character varying
22 missed_months_json jsonb YES
23 preferred_contact_method varchar(20) YES
24 payment_probability_score numeric YES
25 legal_status varchar(50) YES
26 jurisdiction_state varchar(50) YES
27 cure_expires_at timestamptz YES
28 legal_hold bool YES false
29 bankruptcy_flag bool YES false
30 military_flag bool YES false
31 next_best_action varchar(255) YES ''::character varying
32 security_deposit numeric YES 0
33 deposit_escrow_status varchar(30) YES 'held'::character varying
34 lease_type varchar(20) YES 'fixed'::character varying
35 move_in_date date YES
36 co_tenants_json jsonb YES '[]'::jsonb
37 ar_aging_json jsonb YES '{}'::jsonb
38 autopay_enrolled bool YES false
39 rental_assistance_amount numeric YES 0
40 writeoff_history_json jsonb YES '[]'::jsonb
41 do_not_contact bool YES false
42 skip_flag bool YES false
43 snooze_until timestamptz YES
44 snooze_reason varchar(100) YES ''::character varying
45 attorney_name varchar(100) YES ''::character varying
46 attorney_firm varchar(200) YES ''::character varying
47 attorney_phone varchar(30) YES ''::character varying
48 attorney_notes text YES ''::text
49 attorney_privileged bool YES false
50 court_case_number varchar(50) YES ''::character varying
51 court_name varchar(200) YES ''::character varying
52 hearing_datetime timestamptz YES
53 hearing_room varchar(50) YES ''::character varying
54 judge_name varchar(100) YES ''::character varying
55 judgment_amount numeric YES
56 judgment_date date YES
57 appeal_deadline date YES
58 writ_issue_date date YES
59 lockout_date date YES
60 scra_status varchar(20) YES 'not_verified'::character varying
61 scra_verified_at timestamptz YES
62 bankruptcy_chapter varchar(10) YES ''::character varying
63 bankruptcy_filing_date date YES
64 bankruptcy_case_number varchar(50) YES ''::character varying
65 bankruptcy_stay_expires date YES
66 tcpa_opt_out bool YES false
67 tcpa_consent_date timestamptz YES
68 tenant_timezone varchar(50) YES 'America/New_York'::character varying
69 payment_probability_7d numeric YES
70 payment_probability_14d numeric YES
71 payment_probability_30d numeric YES
72 optimal_contact_day varchar(10) YES ''::character varying
73 optimal_contact_time varchar(10) YES ''::character varying
74 optimal_contact_channel varchar(10) YES ''::character varying
75 risk_trend varchar(15) YES 'stable'::character varying
76 ai_case_summary text YES ''::text
77 escalation_ladder_json jsonb YES '[]'::jsonb
78 current_stage_entered_at timestamptz YES
79 legal_fees_total numeric YES 0

Indexes

  • CREATE INDEX idx_cc_priority ON public.collection_case USING btree (outstanding_balance, days_overdue, payment_probability_score)
  • CREATE INDEX idx_cc_legal_status ON public.collection_case USING btree (legal_status)
  • CREATE INDEX idx_cc_risk_profile ON public.collection_case USING btree (tenant_risk_profile)
  • CREATE INDEX idx_cc_created ON public.collection_case USING btree (created_at DESC)
  • CREATE INDEX idx_cc_escalation ON public.collection_case USING btree (escalation_level)
  • CREATE INDEX idx_cc_status ON public.collection_case USING btree (status)
  • CREATE INDEX idx_cc_property_id ON public.collection_case USING btree (property_id)
  • CREATE INDEX idx_cc_tenant_id ON public.collection_case USING btree (tenant_id)
  • CREATE UNIQUE INDEX collection_case_pkey ON public.collection_case USING btree (id)
  • CREATE INDEX idx_cc_snooze ON public.collection_case USING btree (snooze_until) WHERE (snooze_until IS NOT NULL)

Sample Data (3 of 15 rows)

idtenant_idunit_idproperty_idlease_idtenant_nameproperty_nameunit_numberoutstanding_balancedays_overdueescalation_levelstatuslast_action_datenext_action_datenext_action_typeassigned_tonotescreated_atupdated_attenant_risk_profiletonemissed_months_jsonpreferred_contact_methodpayment_probability_scorelegal_statusjurisdiction_statecure_expires_atlegal_holdbankruptcy_flagmilitary_flagnext_best_actionsecurity_depositdeposit_escrow_statuslease_typemove_in_dateco_tenants_jsonar_aging_jsonautopay_enrolledrental_assistance_amountwriteoff_history_jsondo_not_contactskip_flagsnooze_untilsnooze_reasonattorney_nameattorney_firmattorney_phoneattorney_notesattorney_privilegedcourt_case_numbercourt_namehearing_datetimehearing_roomjudge_namejudgment_amountjudgment_dateappeal_deadlinewrit_issue_datelockout_datescra_statusscra_verified_atbankruptcy_chapterbankruptcy_filing_datebankruptcy_case_numberbankruptcy_stay_expirestcpa_opt_outtcpa_consent_datetenant_timezonepayment_probability_7dpayment_probability_14dpayment_probability_30doptimal_contact_dayoptimal_contact_timeoptimal_contact_channelrisk_trendai_case_summaryescalation_ladder_jsoncurrent_stage_entered_atlegal_fees_total
c0e30ffa-dcf0-4c14-abfc-dd2aff3901cb900dfa8b-d03a-4a65-8e15-f48d9a482d41b6eee9cf-43fd-4602-a205-af5cabcb64f0ac632223-fff6-484f-9243-9ee0984cd8a29bc9b85f-0d0c-47ac-a0e4-d5019844e753Juliette NguemkamLakeshore Vista Apartments4801A425.031open2026-03-27T18:39:41.203405+01:002026-04-03T19:39:41.203405+02:00emailProperty Manager2026-03-30T19:39:41.220519+02:002026-03-30T19:39:41.220522+02:00standardfriendly[{"year": 2026, "month": "Feb", "total": 479.88, "status": "current_due", "credits": 0, "nsf_fee": 0sms62.0pre_legalGeorgiaNULLFalseFalseFalseSend friendly SMS reminder โ€” tenant has good payment history1800.0heldmtm2023-12-30[]{"current": 425.0, "days_30": 0.0, "days_60": 0.0, "days_90": 0.0, "days_120": 0.0}False0.0[]FalseFalseNULLFalseNULLNULLNULLNULLNULLNULLnot_verifiedNULLNULLNULLFalse2025-11-29T18:39:41.203405+01:00Europe/Vienna68.060.080.0Friday10:00smsdeterioratingTenant dispute ongoing regarding maintenance deduction. Legal review of lease te...[{"day": 1, "completed": true, "action_type": "sms_reminder", "completed_at": "2026-03-28 17:39:41.22026-03-28T18:39:41.203405+01:000.0
5c45b0d6-d545-450a-bc58-010daab99b179d1b3b0f-2f17-4bf3-a62f-4522603a33f1f85bec42-61c8-491c-94f8-4bcd78fd67da821af994-2185-4eb9-b8b2-31b72fb5fd72807146dc-9604-4a2f-8cd8-2fa04ae5c3d5Mohammad Esmaiel MohammadiCopperfield Apartments0103658.052open2026-03-30T19:39:41.203405+02:002026-04-03T19:39:41.203405+02:00noticeProperty Manager2026-03-30T19:39:41.229049+02:002026-03-30T19:39:41.229053+02:00standardfirm[{"year": 2026, "month": "Feb", "total": 716.52, "status": "unpaid", "credits": 0, "nsf_fee": 0, "lasms46.0pre_legalGeorgiaNULLFalseFalseFalseFollow up with email โ€” SMS was delivered but no response in 48h1500.0heldmtm2025-05-10[{"name": "Markus Steiner", "email": "m.steiner@icloud.com", "phone": "+43 650 777 8899", "liability{"current": 658.0, "days_30": 0.0, "days_60": 0.0, "days_90": 0.0, "days_120": 0.0}False0.0[]TrueFalseNULLFalseNULLNULLNULLNULLNULLNULLnot_verifiedNULLNULLNULLFalse2026-01-08T18:39:41.203405+01:00Europe/Vienna58.061.053.0Tuesday09:00phonestableSubsidized housing tenant with rental assistance pending. ERA application submit...[{"day": 1, "completed": true, "action_type": "sms_reminder", "completed_at": "2026-03-26 17:39:41.22026-03-25T18:39:41.203405+01:000.0
683e79d5-543b-4c9b-9e6e-2146d7798fe969a1d977-8c6a-4555-b383-ba8334e62cad8702519f-4de9-43c3-8395-970092de15a4a03e48a1-5e56-4c8b-b817-cbe072bb6056656d2cd7-24ff-4176-8431-acf47653eea8Javier AscencionAshford Farms Apartments1407D479.062open2026-03-30T19:39:41.203405+02:002026-04-03T19:39:41.203405+02:00noticeProperty Manager2026-03-30T19:39:41.23862+02:002026-03-30T19:39:41.238634+02:00repeat_offenderfirm[{"year": 2026, "month": "Feb", "total": 557.07, "status": "unpaid", "credits": 0, "nsf_fee": 0, "laemail23.0pre_legalGeorgiaNULLFalseFalseFalseFollow up with email โ€” SMS was delivered but no response in 48h2000.0heldfixed2024-03-10[{"name": "Katharina Pichler", "email": "k.pichler@gmail.com", "phone": "+43 699 444 5566", "liabili{"current": 479.0, "days_30": 0.0, "days_60": 0.0, "days_90": 0.0, "days_120": 0.0}False0.0[]FalseFalseNULLFalseNULLNULLNULLNULLNULLNULLnot_verifiedNULLNULLNULLTrueNULLEurope/Vienna30.034.041.0Friday11:00phonedeterioratingTenant has a consistent history of late payments averaging 5-8 days past due. Re...[{"day": 1, "completed": true, "action_type": "sms_reminder", "completed_at": "2026-03-25 17:39:41.22026-03-24T18:39:41.203405+01:000.0
collection_call_log
13 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO nextval('collection_call_log_id_seq'::regclass) ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 started_at timestamptz NO
4 duration_seconds int4 YES 0
5 outcome varchar(40) NO
6 agent_name varchar(100) NO
7 notes text YES ''::text
8 recording_url varchar(500) YES ''::character varying
9 voicemail_left bool YES false
10 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_ccl_case_id ON public.collection_call_log USING btree (case_id)
  • CREATE INDEX idx_collection_call_log_case_id ON public.collection_call_log USING btree (case_id)
  • CREATE UNIQUE INDEX collection_call_log_pkey ON public.collection_call_log USING btree (id)
  • CREATE INDEX idx_ccl_started ON public.collection_call_log USING btree (started_at DESC)

Sample Data (3 of 13 rows)

idcase_idstarted_atduration_secondsoutcomeagent_namenotesrecording_urlvoicemail_leftcreated_at
18fbab6e1c-7b54-48ca-9cd6-8606988f6c0a2026-03-29T11:39:41.203405+02:0030busySarah JohnsonTenant disputed late fee. Explained lease terms. Will follow up by email.False2026-03-30T19:39:41.252582+02:00
1940eb6167-c77e-454c-bd94-458eb2f251722026-03-24T02:39:41.203405+01:00440promise_to_payProperty ManagerSpoke with tenant's spouse. They will relay the message.False2026-03-30T19:39:41.273036+02:00
20d6386c85-6acf-4481-870b-61c52581392d2026-03-26T02:39:41.203405+01:00515promise_to_payMike ChenDiscussed payment plan options. Tenant agreed to 3-month plan starting next week...False2026-03-30T19:39:41.289545+02:00
collection_legal_event
10 rows 9 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO nextval('collection_legal_event_id_seq'::regclass) ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 event_type varchar(40) NO
4 status varchar(30) YES 'pending'::character varying
5 effective_date date YES
6 due_date date YES
7 notes text YES ''::text
8 attorney_name varchar(100) YES ''::character varying
9 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_cle_case_id ON public.collection_legal_event USING btree (case_id)
  • CREATE UNIQUE INDEX collection_legal_event_pkey ON public.collection_legal_event USING btree (id)
  • CREATE INDEX idx_collection_legal_event_case_id ON public.collection_legal_event USING btree (case_id)

Sample Data (3 of 10 rows)

idcase_idevent_typestatuseffective_datedue_datenotesattorney_namecreated_at
12d6386c85-6acf-4481-870b-61c52581392dnotice_to_paycompleted2026-03-162026-03-23Notice To Pay โ€” Case #d6386c852026-03-30T19:39:41.29764+02:00
13413f0a5e-ae6c-46fe-b39a-4b2be979a16enotice_to_paycompleted2026-03-162026-03-23Notice To Pay โ€” Case #413f0a5e2026-03-30T19:39:41.330784+02:00
1412824d40-2521-4b0c-acbd-8121d668f22fnotice_to_paycompleted2026-03-162026-03-23Notice To Pay โ€” Case #12824d402026-03-30T19:39:41.378039+02:00
collection_message_template
8 rows 10 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO nextval('collection_message_template_id_seq'::regc ๐Ÿ”‘ PK
2 key varchar(100) NO
3 name varchar(200) NO
4 category varchar(30) NO
5 channel varchar(20) NO
6 subject_template varchar(500) YES ''::character varying
7 body_template text NO
8 stage varchar(30) YES ''::character varying
9 active bool YES true
10 created_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX collection_message_template_pkey ON public.collection_message_template USING btree (id)
  • CREATE UNIQUE INDEX collection_message_template_key_key ON public.collection_message_template USING btree (key)

Sample Data (3 of 8 rows)

idkeynamecategorychannelsubject_templatebody_templatestageactivecreated_at
1friendly_reminder_smsFriendly Payment Reminder (SMS)remindersmsHallo {tenant_name}, wir mรถchten Sie freundlich daran erinnern, dass Ihre Mietza...pre_legalTrue2026-03-30T19:39:41.512778+02:00
2friendly_reminder_emailFriendly Payment Reminder (Email)reminderemailErinnerung: Offene Mietzahlung โ€” {unit}Sehr geehrte/r {tenant_name}, wir mรถchten Sie hรถflich daran erinnern, dass Ihre...pre_legalTrue2026-03-30T19:39:41.515472+02:00
3firm_demand_emailFirm Payment Demand (Email)demandemailDringende Zahlungsaufforderung โ€” {unit}Sehr geehrte/r {tenant_name}, trotz unserer vorherigen Erinnerung ist Ihre Miet...pre_legalTrue2026-03-30T19:39:41.517021+02:00
collection_legal_fee
6 rows 6 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO nextval('collection_legal_fee_id_seq'::regclass) ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 description varchar(255) NO
4 amount numeric NO
5 date date NO
6 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX collection_legal_fee_pkey ON public.collection_legal_fee USING btree (id)
  • CREATE INDEX idx_clf_case_id ON public.collection_legal_fee USING btree (case_id)

Sample Data (3 of 6 rows)

idcase_iddescriptionamountdatecreated_at
212824d40-2521-4b0c-acbd-8121d668f22fZustellgebรผhr โ€” Gerichtliches Schreiben45.02026-02-282026-03-30T19:39:41.385975+02:00
312824d40-2521-4b0c-acbd-8121d668f22fGerichtsgebรผhr โ€” Rรคumungsklage380.02026-03-052026-03-30T19:39:41.387261+02:00
412824d40-2521-4b0c-acbd-8121d668f22fAnwaltshonorar โ€” Erstberatung350.02026-03-182026-03-30T19:39:41.388708+02:00
collection_plan_installment
6 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 plan_id uuid NO ๐Ÿ”— โ†’ collection_payment_plan.id
3 installment_number int4 NO
4 amount numeric NO
5 due_date date NO
6 paid_date date YES
7 paid_amount numeric YES
8 status varchar(20) YES 'pending'::character varying

Foreign Keys

Indexes

  • CREATE INDEX idx_cpi_plan_id ON public.collection_plan_installment USING btree (plan_id)
  • CREATE UNIQUE INDEX collection_plan_installment_pkey ON public.collection_plan_installment USING btree (id)
  • CREATE INDEX idx_cpi_due_date ON public.collection_plan_installment USING btree (due_date)

Sample Data (3 of 6 rows)

idplan_idinstallment_numberamountdue_datepaid_datepaid_amountstatus
afc1c9e6-3403-47a1-a7d8-fd725380e42ca0c0a281-20e4-4c3e-8468-c4d134f0c63f1576.672026-04-062026-03-30576.67paid
8435b711-9e09-4170-8134-f6d41a1bbdf3a0c0a281-20e4-4c3e-8468-c4d134f0c63f2576.672026-05-06NULLNULLpending
e2a84b19-9f9b-4426-bfae-67b5286fd9daa0c0a281-20e4-4c3e-8468-c4d134f0c63f3576.662026-06-05NULLNULLpending
collection_payment_plan
2 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 total_amount numeric NO
4 num_installments int4 NO
5 frequency varchar(20) YES 'monthly'::character varying
6 start_date date NO
7 status varchar(20) YES 'proposed'::character varying
8 created_by varchar(100) YES 'system'::character varying
9 created_at timestamptz YES now()
10 updated_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_cpp_status ON public.collection_payment_plan USING btree (status)
  • CREATE INDEX idx_cpp_case_id ON public.collection_payment_plan USING btree (case_id)
  • CREATE UNIQUE INDEX collection_payment_plan_pkey ON public.collection_payment_plan USING btree (id)

Sample Data (2 of 2 rows)

idcase_idtotal_amountnum_installmentsfrequencystart_datestatuscreated_bycreated_atupdated_at
a0c0a281-20e4-4c3e-8468-c4d134f0c63f413f0a5e-ae6c-46fe-b39a-4b2be979a16e1730.03monthly2026-04-06activeProperty Manager2026-03-30T19:39:41.332027+02:002026-03-30T19:39:41.332032+02:00
bef5a6fc-c7fc-4a98-ad52-69326aa0c55fa7d3999d-e0a1-48f9-8170-f5956d80f660744.03monthly2026-04-06activeProperty Manager2026-03-30T19:39:41.475034+02:002026-03-30T19:39:41.47504+02:00
collection_scheduled_message
0 rows 12 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ collection_case.id
3 channel varchar(20) NO
4 message_text text NO
5 subject varchar(255) YES ''::character varying
6 template_key varchar(100) YES ''::character varying
7 trigger_condition varchar(50) YES 'no_payment_by'::character varying
8 trigger_date date NO
9 status varchar(20) YES 'pending'::character varying
10 created_by varchar(100) YES 'system'::character varying
11 created_at timestamptz YES now()
12 sent_at timestamptz YES

Foreign Keys

Indexes

  • CREATE INDEX idx_csm_trigger ON public.collection_scheduled_message USING btree (trigger_date, status) WHERE ((status)::text = 'pending'::text)
  • CREATE INDEX idx_csm_case_id ON public.collection_scheduled_message USING btree (case_id)
  • CREATE UNIQUE INDEX collection_scheduled_message_pkey ON public.collection_scheduled_message USING btree (id)

Sample Data (0 of 0 rows)

No data

๐Ÿ“ Other 92 tables ยท 10,653 rows
insurance_alerts
2,302 rows 18 cols 6 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 alert_type varchar(50) NO
3 severity varchar(20) NO
4 status varchar(20) NO
5 title varchar(200) NO
6 description text NO
7 due_date timestamptz YES
8 resolved_at timestamptz YES
9 resolution_notes text NO
10 metadata jsonb NO
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 assigned_to_id int4 YES ๐Ÿ”— โ†’ auth_user.id
14 policy_id int8 YES ๐Ÿ”— โ†’ tenant_insurance_policies.id
15 property_ref_id uuid NO ๐Ÿ”— โ†’ properties.id
16 resolved_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
17 tenant_id uuid YES ๐Ÿ”— โ†’ tenants.id
18 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX insurance_alerts_resolved_by_id_02b685cf ON public.insurance_alerts USING btree (resolved_by_id)
  • CREATE INDEX insurance_alerts_severity_e102747c ON public.insurance_alerts USING btree (severity)
  • CREATE INDEX insurance_alerts_assigned_to_id_6da229a0 ON public.insurance_alerts USING btree (assigned_to_id)
  • CREATE INDEX insurance_alerts_created_at_70c84d87 ON public.insurance_alerts USING btree (created_at)
  • CREATE INDEX insurance_alerts_unit_id_e97554d7 ON public.insurance_alerts USING btree (unit_id)
  • CREATE INDEX insurance_alerts_tenant_id_aa5c5a35 ON public.insurance_alerts USING btree (tenant_id)
  • CREATE INDEX insurance_alerts_status_d290deff_like ON public.insurance_alerts USING btree (status varchar_pattern_ops)
  • CREATE INDEX insurance_alerts_status_d290deff ON public.insurance_alerts USING btree (status)
  • CREATE INDEX insurance_alerts_severity_e102747c_like ON public.insurance_alerts USING btree (severity varchar_pattern_ops)
  • CREATE UNIQUE INDEX insurance_alerts_pkey ON public.insurance_alerts USING btree (id)
  • CREATE INDEX insurance_alerts_policy_id_4d1ecca5 ON public.insurance_alerts USING btree (policy_id)
  • CREATE INDEX insurance_a_assigne_7ce2cb_idx ON public.insurance_alerts USING btree (assigned_to_id, status)
  • CREATE INDEX insurance_a_alert_t_e3d72c_idx ON public.insurance_alerts USING btree (alert_type, severity)
  • CREATE INDEX insurance_a_due_dat_a146c2_idx ON public.insurance_alerts USING btree (due_date)
  • CREATE INDEX insurance_a_propert_7a0a35_idx ON public.insurance_alerts USING btree (property_ref_id, status)
  • CREATE INDEX insurance_a_status_b96919_idx ON public.insurance_alerts USING btree (status, created_at)
  • CREATE INDEX insurance_alerts_alert_type_425b5200 ON public.insurance_alerts USING btree (alert_type)
  • CREATE INDEX insurance_alerts_alert_type_425b5200_like ON public.insurance_alerts USING btree (alert_type varchar_pattern_ops)
  • CREATE INDEX insurance_alerts_property_ref_id_133dc62c ON public.insurance_alerts USING btree (property_ref_id)

Sample Data (3 of 2,302 rows)

idalert_typeseveritystatustitledescriptiondue_dateresolved_atresolution_notesmetadatacreated_atupdated_atassigned_to_idpolicy_idproperty_ref_idresolved_by_idtenant_idunit_id
ad3ad98a-5702-49c5-9fb4-93cfaa59ee0einsufficient_coveragehighpendingInsufficient Coverage - Unit 10159FLiability coverage of $25,000 is below minimum requirement of $100,0002025-11-21T11:51:33.009928+01:00NULL{}2025-11-14T11:51:33.011085+01:002025-11-14T11:51:33.0111+01:00NULLNULL33e1751a-2b05-4c23-97c4-bd60da93f14fNULLc82ca2d8-3a53-41af-baeb-b15fd521d1dee143b67b-d186-4b25-84fe-75d6317b6a35
3940fb1c-f409-477f-9990-3c8576d5f6ffpolicy_lapsedcriticalpendingInsurance Lapsed - Unit 100Tenant has been without insurance for 837 days2025-11-21T11:51:33.041175+01:00NULL{}2025-11-14T11:51:33.042571+01:002025-11-14T11:51:33.042591+01:00NULLNULL31b9e771-55fb-4ddc-bcab-3d5b8f341c20NULL3fbf61af-75a5-453c-94cc-65fbe70aef4ef2f15ac2-b767-4bf2-aa3c-ed5da49128a2
02c9dacf-5dc2-4230-a835-ccdca6c42b0epolicy_lapsedcriticalpendingInsurance Lapsed - Unit DTenant has been without insurance for 30 days2025-11-21T11:51:33.069977+01:00NULL{}2025-11-14T11:51:33.071026+01:002025-11-14T11:51:33.071037+01:00NULLNULL573f0259-e32f-4fb9-a70f-7f0b9e5d2e46NULL3a52ce74-98a8-451f-bbe8-e62a5bc97038387cc425-4a6c-4b8a-ab6e-1e6fffb7e570
split_invoices
1,158 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 detected_invoice_number varchar(100) YES
3 page_range_start int4 NO
4 page_range_end int4 NO
5 page_count int4 NO
6 split_file_path varchar(500) NO
7 split_file_size int8 NO
8 ocr_text_path varchar(500) YES
9 processed bool NO
10 processing_started_at timestamptz YES
11 processing_completed_at timestamptz YES
12 created_at timestamptz NO
13 error_message text YES
14 invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id
15 split_job_id int8 NO ๐Ÿ”— โ†’ pdf_split_jobs.id

Foreign Keys

Indexes

  • CREATE INDEX split_invoices_split_job_id_51c61de2 ON public.split_invoices USING btree (split_job_id)
  • CREATE INDEX split_invoices_invoice_id_d68ff222 ON public.split_invoices USING btree (invoice_id)
  • CREATE INDEX split_invoi_split_j_e15f02_idx ON public.split_invoices USING btree (split_job_id, processed)
  • CREATE INDEX split_invoi_invoice_5f6dde_idx ON public.split_invoices USING btree (invoice_id)
  • CREATE UNIQUE INDEX split_invoices_pkey ON public.split_invoices USING btree (id)

Sample Data (3 of 1,158 rows)

iddetected_invoice_numberpage_range_startpage_range_endpage_countsplit_file_pathsplit_file_sizeocr_text_pathprocessedprocessing_started_atprocessing_completed_atcreated_aterror_messageinvoice_idsplit_job_id
835MANUAL_1122invoices/uploads/11471_job_337_11469_MultipleInvoices_Nov_04_2025_41d32b3a-c7c4-...307011/app/invoices/processed/job_337/job_337_11469_MultipleInvoices_Nov_04_2025_41d32...True2025-12-10T09:54:46.253946+01:002025-12-10T09:54:57.167549+01:002025-12-10T09:54:45.803155+01:00NULL11471337
847MANUAL_2221invoices/uploads/11574_job_345_11525_rejected_MANUAL_2.pdf1426/app/invoices/processed/job_345/job_345_11525_rejected_MANUAL_2_ocr.txtTrue2025-12-10T20:56:03.321634+01:002025-12-10T20:56:12.439258+01:002025-12-10T20:56:02.551395+01:00NULL11574345
846MANUAL_1111invoices/uploads/11573_job_345_11525_rejected_MANUAL_1.pdf1426/app/invoices/processed/job_345/job_345_11525_rejected_MANUAL_1_ocr.txtTrue2025-12-10T20:56:03.062971+01:002025-12-10T20:56:12.685142+01:002025-12-10T20:56:02.542438+01:00NULL11573345
lease_status_log
1,156 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 lease_id uuid NO ๐Ÿ”— โ†’ tenant_lease.id
3 previous_status varchar(20) NO
4 new_status varchar(20) NO
5 changed_by varchar(100) YES 'system'::character varying
6 reason text YES ''::text
7 metadata jsonb YES '{}'::jsonb
8 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX lease_status_log_pkey ON public.lease_status_log USING btree (id)

Sample Data (3 of 1,156 rows)

idlease_idprevious_statusnew_statuschanged_byreasonmetadatacreated_at
75986c86-91b6-4d66-91a0-dd79565ef6999f480d3e-24bd-4ed1-8676-3307998bd219activemonth_to_monthmigration:initial_reclassifyLease end date passed without renewal{"lease_end_date": "2026-01-31"}2026-03-27T17:29:09.079295+01:00
8bc29bb0-ec1b-4850-a669-1277d7e2d58f1ac7967c-45d7-4b43-8e2e-fa236531f1e4activemonth_to_monthmigration:initial_reclassifyLease end date passed without renewal{"lease_end_date": "2026-01-31"}2026-03-27T17:29:09.079295+01:00
ac54b29c-34e4-4384-893f-8bff9ee52580990209f2-6536-4dd1-88b0-3f3a4b76abbfactivemonth_to_monthmigration:initial_reclassifyLease end date passed without renewal{"lease_end_date": "2026-01-31"}2026-03-27T17:29:09.079295+01:00
duplicate_payment_detections
1,074 rows 15 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 detection_type varchar(30) NO
3 confidence_score float8 NO
4 original_amount numeric NO
5 duplicate_amount numeric NO
6 overpayment_amount numeric YES
7 matching_fields jsonb NO
8 similarity_details jsonb NO
9 is_confirmed_duplicate bool YES
10 resolution_notes text NO
11 detected_at timestamptz NO
12 resolved_at timestamptz YES
13 resolved_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
14 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id
15 related_invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id

Foreign Keys

Indexes

  • CREATE INDEX duplicate_p_detecte_2298ae_idx ON public.duplicate_payment_detections USING btree (detected_at)
  • CREATE INDEX duplicate_payment_detections_resolved_by_id_d2486bd7 ON public.duplicate_payment_detections USING btree (resolved_by_id)
  • CREATE INDEX duplicate_payment_detections_related_invoice_id_2de836e5 ON public.duplicate_payment_detections USING btree (related_invoice_id)
  • CREATE INDEX duplicate_payment_detections_invoice_id_86491d9d ON public.duplicate_payment_detections USING btree (invoice_id)
  • CREATE INDEX duplicate_p_invoice_945da3_idx ON public.duplicate_payment_detections USING btree (invoice_id, detection_type)
  • CREATE UNIQUE INDEX duplicate_payment_detections_pkey ON public.duplicate_payment_detections USING btree (id)
  • CREATE INDEX duplicate_p_confide_b9b502_idx ON public.duplicate_payment_detections USING btree (confidence_score)

Sample Data (3 of 1,074 rows)

iddetection_typeconfidence_scoreoriginal_amountduplicate_amountoverpayment_amountmatching_fieldssimilarity_detailsis_confirmed_duplicateresolution_notesdetected_atresolved_atresolved_by_idinvoice_idrelated_invoice_id
10076exact_duplicate1455.82681.6NULL["invoice_number", "original_invoice_number_from_metadata", "property"]{"property_id": "ecf17e6e-04b6-48ef-a23e-1ab1b8e88690", "amount_match": false, "vendor_match": true,NULL2025-12-09T19:15:15.705709+01:00NULLNULL1135011348
10077exact_duplicate1-1088.58-1088.58NULL["invoice_number", "original_invoice_number_from_metadata", "property"]{"property_id": "ce83695e-0d41-4aae-8a87-ae4a2eab470e", "amount_match": true, "vendor_match": true, NULL2025-12-09T19:19:14.751583+01:00NULLNULL1137511354
10078exact_duplicate1-1088.58-1088.58NULL["vendor", "amount", "invoice_date", "property"]{"date_match": true, "match_type": "exact_vendor_amount_date", "property_id": "ce83695e-0d41-4aae-8aNULL2025-12-09T19:19:14.778377+01:00NULLNULL1137511354
exception_workflows
718 rows 9 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 action varchar(20) NO
3 notes text NO
4 metadata jsonb NO
5 created_at timestamptz NO
6 assigned_from_id int4 YES ๐Ÿ”— โ†’ auth_user.id
7 assigned_to_id int4 YES ๐Ÿ”— โ†’ auth_user.id
8 performed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
9 exception_id int8 NO ๐Ÿ”— โ†’ invoice_exceptions.id

Foreign Keys

Indexes

  • CREATE INDEX exception_workflows_assigned_from_id_9de57b54 ON public.exception_workflows USING btree (assigned_from_id)
  • CREATE UNIQUE INDEX exception_workflows_pkey ON public.exception_workflows USING btree (id)
  • CREATE INDEX exception_workflows_assigned_to_id_221f980d ON public.exception_workflows USING btree (assigned_to_id)
  • CREATE INDEX exception_workflows_exception_id_e352e78d ON public.exception_workflows USING btree (exception_id)
  • CREATE INDEX exception_workflows_performed_by_id_239c66de ON public.exception_workflows USING btree (performed_by_id)

Sample Data (3 of 718 rows)

idactionnotesmetadatacreated_atassigned_from_idassigned_to_idperformed_by_idexception_id
3356createdAuto-detected: Document is an account statement (summary), not an invoice. Confi...{}2025-12-09T19:13:49.573387+01:00NULLNULLNULL3553
3357createdAuto-detected: Duplicate invoice: original number '00040' already exists as invo...{}2025-12-09T19:15:15.713916+01:00NULLNULLNULL3554
3358createdAuto-detected: Duplicate invoice: original number '061361-01' already exists as ...{}2025-12-09T19:19:14.75865+01:00NULLNULLNULL3555
insurance_policy_lapses
643 rows 14 cols 5 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 previous_provider_name varchar(200) NO
3 previous_policy_number varchar(100) NO
4 lapsed_at timestamptz NO
5 days_lapsed int4 NO
6 is_resolved bool NO
7 resolved_at timestamptz YES
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 new_policy_id int8 YES ๐Ÿ”— โ†’ tenant_insurance_policies.id
11 previous_policy_id int8 YES ๐Ÿ”— โ†’ tenant_insurance_policies.id
12 property_ref_id uuid NO ๐Ÿ”— โ†’ properties.id
13 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
14 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX insurance_p_lapsed__993954_idx ON public.insurance_policy_lapses USING btree (lapsed_at)
  • CREATE INDEX insurance_p_tenant__dcedcd_idx ON public.insurance_policy_lapses USING btree (tenant_id, is_resolved)
  • CREATE INDEX insurance_policy_lapses_is_resolved_1c416907 ON public.insurance_policy_lapses USING btree (is_resolved)
  • CREATE INDEX insurance_policy_lapses_lapsed_at_e0c0739f ON public.insurance_policy_lapses USING btree (lapsed_at)
  • CREATE INDEX insurance_policy_lapses_new_policy_id_12189b19 ON public.insurance_policy_lapses USING btree (new_policy_id)
  • CREATE INDEX insurance_policy_lapses_previous_policy_id_2644ddb7 ON public.insurance_policy_lapses USING btree (previous_policy_id)
  • CREATE INDEX insurance_policy_lapses_property_ref_id_07f18936 ON public.insurance_policy_lapses USING btree (property_ref_id)
  • CREATE INDEX insurance_policy_lapses_tenant_id_59a7c4c0 ON public.insurance_policy_lapses USING btree (tenant_id)
  • CREATE INDEX insurance_policy_lapses_unit_id_9ca41e12 ON public.insurance_policy_lapses USING btree (unit_id)
  • CREATE UNIQUE INDEX insurance_policy_lapses_pkey ON public.insurance_policy_lapses USING btree (id)
  • CREATE INDEX insurance_p_is_reso_a48927_idx ON public.insurance_policy_lapses USING btree (is_resolved, days_lapsed DESC)
  • CREATE INDEX insurance_p_propert_c55da4_idx ON public.insurance_policy_lapses USING btree (property_ref_id, is_resolved)

Sample Data (3 of 643 rows)

idprevious_provider_nameprevious_policy_numberlapsed_atdays_lapsedis_resolvedresolved_atcreated_atupdated_atnew_policy_idprevious_policy_idproperty_ref_idtenant_idunit_id
260407b5-b95a-4655-9a22-1e72ff791a98AcordCR00T4J222025-11-14T11:50:48.246657+01:00837FalseNULL2025-11-14T11:50:48.248027+01:002025-11-14T11:50:48.248044+01:00NULLNULL31b9e771-55fb-4ddc-bcab-3d5b8f341c203fbf61af-75a5-453c-94cc-65fbe70aef4ef2f15ac2-b767-4bf2-aa3c-ed5da49128a2
3f770f20-7ed3-4a1b-8a41-1fcefd1f230fAcord52365727-032025-11-14T11:50:48.278596+01:0030FalseNULL2025-11-14T11:50:48.279661+01:002025-11-14T11:50:48.279678+01:00NULLNULL573f0259-e32f-4fb9-a70f-7f0b9e5d2e463a52ce74-98a8-451f-bbe8-e62a5bc97038387cc425-4a6c-4b8a-ab6e-1e6fffb7e570
138e9813-8f60-4186-be89-5cda1c5f61efAssurantREN08358822025-11-14T11:50:48.324888+01:00661FalseNULL2025-11-14T11:50:48.325857+01:002025-11-14T11:50:48.325871+01:00NULLNULLac632223-fff6-484f-9243-9ee0984cd8a212175b1f-1598-43d0-ba64-9079f1af400efc61c6f2-c06c-4db7-91d7-8297369dca5c
lease_timeline
428 rows 11 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 event_type varchar(50) NO
3 event_date timestamptz NO
4 field_name varchar(100) YES
5 old_value text YES
6 new_value text YES
7 notes text YES
8 created_at timestamptz NO
9 changed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
10 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
11 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX lease_timeline_tenant_id_070e2915 ON public.lease_timeline USING btree (tenant_id)
  • CREATE INDEX lease_timeline_lease_id_a0cf60ac ON public.lease_timeline USING btree (lease_id)
  • CREATE INDEX lease_timeline_changed_by_id_94ccdd12 ON public.lease_timeline USING btree (changed_by_id)
  • CREATE INDEX lease_timel_tenant__208a6b_idx ON public.lease_timeline USING btree (tenant_id)
  • CREATE INDEX lease_timel_lease_i_8b82fd_idx ON public.lease_timeline USING btree (lease_id)
  • CREATE INDEX lease_timel_event_t_7ccf7a_idx ON public.lease_timeline USING btree (event_type)
  • CREATE INDEX lease_timel_event_d_584872_idx ON public.lease_timeline USING btree (event_date)
  • CREATE UNIQUE INDEX lease_timeline_pkey ON public.lease_timeline USING btree (id)

Sample Data (3 of 428 rows)

idevent_typeevent_datefield_nameold_valuenew_valuenotescreated_atchanged_by_idlease_idtenant_id
3626c169-529c-4b71-80ba-76a003d96b69created2025-10-31T14:55:10.051264+01:00lease_startNULL2025-10-02Initial lease creation2025-10-31T14:55:10.055912+01:00NULL5d8bf96d-8404-4948-82d3-92a7ef74a35d5d8bf96d-8404-4948-82d3-92a7ef74a35d
0eb5e805-233e-4de9-8d36-6ee346563568created2025-10-31T14:55:12.373916+01:00lease_startNULL2024-10-18Initial lease creation2025-10-31T14:55:12.378511+01:00NULLd851f230-cea1-49f2-bb7d-bdef039a451dd851f230-cea1-49f2-bb7d-bdef039a451d
e780d60d-2223-4093-b8ac-1fd2dd77a822created2025-10-31T14:55:13.565894+01:00lease_startNULL2024-12-01Initial lease creation2025-10-31T14:55:13.574176+01:00NULL51049383-10a3-471c-b148-e6533bb0776551049383-10a3-471c-b148-e6533bb07765
backdating_flags
426 rows 15 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 flag_type varchar(50) NO
3 severity varchar(20) NO
4 lease_start_date date NO
5 created_in_system_date date NO
6 days_backdated int4 NO
7 description text NO
8 status varchar(20) NO
9 acknowledged_date timestamptz YES
10 resolution_notes text YES
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 acknowledged_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
14 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
15 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX backdating_flags_tenant_id_ff997e6f ON public.backdating_flags USING btree (tenant_id)
  • CREATE UNIQUE INDEX backdating_flags_pkey ON public.backdating_flags USING btree (id)
  • CREATE INDEX backdating__flag_ty_a8236d_idx ON public.backdating_flags USING btree (flag_type)
  • CREATE INDEX backdating_flags_acknowledged_by_id_6dbd0ea2 ON public.backdating_flags USING btree (acknowledged_by_id)
  • CREATE INDEX backdating_flags_lease_id_671ed2db ON public.backdating_flags USING btree (lease_id)
  • CREATE INDEX backdating__lease_i_ffe666_idx ON public.backdating_flags USING btree (lease_id)
  • CREATE INDEX backdating__severit_977ee3_idx ON public.backdating_flags USING btree (severity)
  • CREATE INDEX backdating__status_37698a_idx ON public.backdating_flags USING btree (status)
  • CREATE INDEX backdating__tenant__145332_idx ON public.backdating_flags USING btree (tenant_id)

Sample Data (3 of 426 rows)

idflag_typeseveritylease_start_datecreated_in_system_datedays_backdateddescriptionstatusacknowledged_dateresolution_notescreated_atupdated_atacknowledged_by_idlease_idtenant_id
b97a0ff0-0d96-4b12-bbfe-16c07fc444fcboth_backdatedwarning2025-10-022025-10-3129Both lease start date (2025-10-02) and move-in date (2025-10-02) are backdated b...activeNULLNULL2025-10-31T14:55:10.054678+01:002025-10-31T14:55:10.05469+01:00NULL5d8bf96d-8404-4948-82d3-92a7ef74a35d5d8bf96d-8404-4948-82d3-92a7ef74a35d
d9274aac-92a6-4c2d-bcce-51f06e9c83dbboth_backdatedcritical2024-10-182025-10-31378Both lease start date (2024-10-18) and move-in date (2024-10-18) are backdated b...activeNULLNULL2025-10-31T14:55:12.377273+01:002025-10-31T14:55:12.377285+01:00NULLd851f230-cea1-49f2-bb7d-bdef039a451dd851f230-cea1-49f2-bb7d-bdef039a451d
7ffc0807-fed2-4a1c-a587-aa485c350f5cboth_backdatedcritical2024-12-012025-10-311191Both lease start date (2024-12-01) and move-in date (2022-07-28) are backdated b...activeNULLNULL2025-10-31T14:55:13.570236+01:002025-10-31T14:55:13.570253+01:00NULL51049383-10a3-471c-b148-e6533bb0776551049383-10a3-471c-b148-e6533bb07765
pdf_split_jobs
408 rows 16 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 original_filename varchar(255) NO
3 original_file_path varchar(500) NO
4 original_file_size int8 NO
5 total_pages int4 NO
6 status varchar(20) NO
7 created_at timestamptz NO
8 started_at timestamptz YES
9 completed_at timestamptz YES
10 invoices_detected int4 NO
11 invoices_created int4 NO
12 error_message text YES
13 celery_task_id varchar(255) YES
14 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
15 metadata jsonb YES
16 file_hash varchar(64) YES

Foreign Keys

Indexes

  • CREATE INDEX pdf_split_jobs_created_by_id_718ab28e ON public.pdf_split_jobs USING btree (created_by_id)
  • CREATE INDEX pdf_split_j_celery__0bba6a_idx ON public.pdf_split_jobs USING btree (celery_task_id)
  • CREATE INDEX pdf_split_jobs_file_hash_77e7b48d_like ON public.pdf_split_jobs USING btree (file_hash varchar_pattern_ops)
  • CREATE UNIQUE INDEX pdf_split_jobs_pkey ON public.pdf_split_jobs USING btree (id)
  • CREATE INDEX pdf_split_jobs_file_hash_77e7b48d ON public.pdf_split_jobs USING btree (file_hash)
  • CREATE INDEX pdf_split_j_file_ha_9afa90_idx ON public.pdf_split_jobs USING btree (file_hash)
  • CREATE INDEX pdf_split_j_created_08c3f5_idx ON public.pdf_split_jobs USING btree (created_by_id, created_at)
  • CREATE INDEX pdf_split_j_status_3d109c_idx ON public.pdf_split_jobs USING btree (status)

Sample Data (3 of 408 rows)

idoriginal_filenameoriginal_file_pathoriginal_file_sizetotal_pagesstatuscreated_atstarted_atcompleted_atinvoices_detectedinvoices_createderror_messagecelery_task_idcreated_by_idmetadatafile_hash
130multiple_invoices_final.pdf/app/invoices/uploads/8668_multiple_invoices_final.pdf55823pending2025-12-01T02:04:21.690204+01:00NULLNULL00NULLNULL36{"manual_mode": true, "manual_page_ranges": ["1-1", "2-2", "3-3"]}NULL
1MV_Invoices.pdfinvoices/uploads/6174_MV_Invoices.pdf62735912failed2025-11-20T09:57:24.105452+01:002025-11-20T09:57:24.375672+01:002025-11-20T09:57:24.391103+01:0000no such file: 'invoices/uploads/6174_MV_Invoices.pdf'5ba6e2ee-b33f-4f6e-8ad0-89b6fef7a6841{}NULL
11multiple_invoices.pdfinvoices/uploads/6399_multiple_invoices.pdf50043failed2025-11-21T10:38:37.718336+01:002025-11-21T10:39:18.212552+01:002025-11-21T10:39:18.230047+01:0000no such file: 'invoices/uploads/6399_multiple_invoices.pdf'11abc21d-3563-4aa2-9a9e-4735ad6682ff36{}NULL
pricing_market_comp
371 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 snapshot_id uuid NO ๐Ÿ”— โ†’ pricing_snapshot.id
3 source varchar(100) NO
4 address varchar(300) NO
5 bedrooms int4 NO
6 bathrooms int4 NO
7 square_feet int4 NO
8 rent numeric NO
9 similarity_score numeric NO
10 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX pricing_market_comp_snapshot_idx ON public.pricing_market_comp USING btree (snapshot_id)
  • CREATE INDEX pricing_market_comp_similarity_idx ON public.pricing_market_comp USING btree (similarity_score DESC)
  • CREATE UNIQUE INDEX pricing_market_comp_pkey ON public.pricing_market_comp USING btree (id)

Check Constraints

  • pricing_market_comp_similarity_score_check: ((similarity_score >= 0.00) AND (similarity_score <= 1.00))

Sample Data (3 of 371 rows)

idsnapshot_idsourceaddressbedroomsbathroomssquare_feetrentsimilarity_scorecreated_at
f176295d-0113-4b28-a336-324235a9feb32dc74a7d-7e5c-4afc-be99-fb505d117112HotPads3064 Sycamore Rd, Apt 15, Austin, TX3110692093.280.952026-03-29T18:42:29.169578+02:00
9f5d8264-4fdd-43c9-afb4-f32a9e7117a32dc74a7d-7e5c-4afc-be99-fb505d117112RentCafe927 Walnut Way, Apt 33, Tampa, FL318582399.90.82026-03-29T18:42:29.172055+02:00
089e5542-9f1d-48c6-ae92-eb29b2041be52dc74a7d-7e5c-4afc-be99-fb505d117112HotPads6715 Pine Blvd, Apt 24, Raleigh, NC117162306.810.862026-03-29T18:42:29.173488+02:00
reserves_ruecklagetransaktion
349 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 datum date NO
3 typ varchar(15) NO
4 betrag numeric NO
5 beschreibung varchar(500) NO
6 created_at timestamptz NO
7 ruecklage_id uuid NO ๐Ÿ”— โ†’ reserves_ruecklage.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX reserves_ruecklagetransaktion_pkey ON public.reserves_ruecklagetransaktion USING btree (id)
  • CREATE INDEX reserves_ru_datum_893c64_idx ON public.reserves_ruecklagetransaktion USING btree (datum)
  • CREATE INDEX reserves_ru_typ_f6296f_idx ON public.reserves_ruecklagetransaktion USING btree (typ)
  • CREATE INDEX reserves_ruecklagetransaktion_ruecklage_id_6dc3ce01 ON public.reserves_ruecklagetransaktion USING btree (ruecklage_id)

Sample Data (3 of 349 rows)

iddatumtypbetragbeschreibungcreated_atruecklage_id
e607f5ca-88dd-4c63-a5ca-57ad0117a0012022-05-21entnahme7394.36Tiefgaragenreparatur und Beschichtung2026-03-20T09:35:21.250872+01:00c558cc63-8c13-49f0-93be-2b8c1b7f84fa
5e6fcfb5-107a-4687-8086-8b2efd2d72972022-07-12einzahlung1435.48Einmalzahlung Rรผcklage Neuzugang Eigentรผmer2026-03-20T09:35:21.250884+01:00c558cc63-8c13-49f0-93be-2b8c1b7f84fa
90edca7b-d9ae-4d19-9ee4-6c078645e6792022-11-23einzahlung1347.44Quartalseinlage Rรผcklage lt. Vorschreibung2026-03-20T09:35:21.250886+01:00c558cc63-8c13-49f0-93be-2b8c1b7f84fa
pricing_snapshot
120 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 snapshot_date date NO
5 current_rent numeric NO
6 market_rent numeric NO
7 recommended_rent numeric NO
8 rent_gap_amount numeric NO
9 rent_gap_pct numeric NO
10 confidence_score int4 NO
11 pricing_strategy varchar(30) NO 'market_rate'::character varying
12 status varchar(20) NO 'pending'::character varying
13 accepted_at timestamptz YES
14 created_at timestamptz NO now()
15 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX pricing_snapshot_date_idx ON public.pricing_snapshot USING btree (snapshot_date)
  • CREATE INDEX pricing_snapshot_unit_idx ON public.pricing_snapshot USING btree (unit_id)
  • CREATE UNIQUE INDEX pricing_snapshot_pkey ON public.pricing_snapshot USING btree (id)
  • CREATE INDEX pricing_snapshot_status_idx ON public.pricing_snapshot USING btree (status)
  • CREATE INDEX pricing_snapshot_property_idx ON public.pricing_snapshot USING btree (property_id)

Check Constraints

  • pricing_snapshot_confidence_score_check: ((confidence_score >= 0) AND (confidence_score <= 100))

Sample Data (3 of 120 rows)

idunit_idproperty_idsnapshot_datecurrent_rentmarket_rentrecommended_rentrent_gap_amountrent_gap_pctconfidence_scorepricing_strategystatusaccepted_atcreated_atupdated_at
2dc74a7d-7e5c-4afc-be99-fb505d1171126c4731db-1ece-4d46-90cb-4ac065dc24e5821af994-2185-4eb9-b8b2-31b72fb5fd722026-03-291776.932201.622031.74424.6923.961competitivependingNULL2026-03-29T18:42:29.166185+02:002026-03-29T18:42:29.166198+02:00
183a9dcc-e3f7-45da-9b23-7cd7f2240394fff368dd-53cd-4039-9b22-d5300e3601d0719dda38-3621-4f26-8795-e54ad5f97dc72026-03-291542.241500.61517.26-41.64-2.782value_addaccepted2026-03-14T17:42:29.175893+01:002026-03-29T18:42:29.176507+02:002026-03-29T18:42:29.176515+02:00
c0d763dc-ced3-451c-bf54-2f37030fe2be68d87511-972e-47c1-95b0-f9c1193ebaab35b664ba-bb75-4318-ae24-07b47a4453452026-03-291621.861681.871657.8760.013.775value_addaccepted2026-03-16T17:42:29.185654+01:002026-03-29T18:42:29.185946+02:002026-03-29T18:42:29.185953+02:00
rbac_permission
120 rows 5 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 resource varchar(50) NO
3 action varchar(50) NO
4 description text NO
5 is_active bool NO

Indexes

  • CREATE UNIQUE INDEX rbac_permission_pkey ON public.rbac_permission USING btree (id)
  • CREATE UNIQUE INDEX rbac_permission_resource_action_8afe1bda_uniq ON public.rbac_permission USING btree (resource, action)

Sample Data (3 of 120 rows)

idresourceactiondescriptionis_active
7f3d2156-fe6f-4796-8ed3-fb233a4ff9f2invoicecreateCreate invoices manually or through uploadTrue
8535a274-437e-40fa-926e-37082efc93e8invoicereadView invoice details and statusTrue
8e106cb2-3a49-4916-a1e8-8d6420845c2binvoiceupdateEdit invoice information and metadataTrue
turnover_checklist
120 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ turnover_case.id
3 task varchar(200) NO
4 is_completed bool YES false
5 completed_at timestamptz YES
6 completed_by varchar(100) YES ''::character varying
7 sort_order int4 YES 0
8 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_turnover_checklist_case ON public.turnover_checklist USING btree (case_id)
  • CREATE UNIQUE INDEX turnover_checklist_pkey ON public.turnover_checklist USING btree (id)

Sample Data (3 of 120 rows)

idcase_idtaskis_completedcompleted_atcompleted_bysort_ordercreated_at
fae9a7b4-034a-472c-bc4a-2576d2905fdc6aace4b5-df08-4a78-acf6-68f4bd6f8196Deep clean entire unitTrue2026-03-19T17:05:14.271703+01:00Maintenance Team12026-03-29T18:05:14.332035+02:00
365878d6-ba33-4fa9-98f1-1d8af5f0f5d26aace4b5-df08-4a78-acf6-68f4bd6f8196Patch and paint wallsTrue2026-03-20T17:05:14.271703+01:00Maintenance Team22026-03-29T18:05:14.334174+02:00
8e270244-f73b-477f-868f-6771ba390f3f6aace4b5-df08-4a78-acf6-68f4bd6f8196Clean/replace carpet or flooringTrue2026-03-22T17:05:14.271703+01:00Maintenance Team32026-03-29T18:05:14.335384+02:00
onboarding_task
97 rows 13 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 checklist_id uuid NO ๐Ÿ”— โ†’ onboarding_checklist.id
3 task_type varchar(50) NO
4 title varchar(200) NO
5 description text NO ''::text
6 status varchar(20) NO 'pending'::character varying
7 category varchar(50) NO 'documentation'::character varying
8 trigger varchar(50) NO ''::character varying
9 due_date date YES
10 completed_at timestamptz YES
11 sort_order int4 NO 0
12 context jsonb NO '{}'::jsonb
13 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX onboarding_task_pkey ON public.onboarding_task USING btree (id)
  • CREATE INDEX idx_onboarding_task_checklist ON public.onboarding_task USING btree (checklist_id)

Sample Data (3 of 97 rows)

idchecklist_idtask_typetitledescriptionstatuscategorytriggerdue_datecompleted_atsort_ordercontextcreated_at
5e21d298-241c-406d-be67-c199d2ffeb04685748b0-a962-44e1-b4f3-44bfb393e2bfwelcome_emailSend Welcome EmailSend the new tenant welcome email with move-in instructions, building rules, and...completedcommunicationimmediate2026-03-292026-03-21T19:08:41.07373+01:001{}2026-03-29T20:08:41.074706+02:00
93487454-c409-4bb1-92fe-b39be0accf7b685748b0-a962-44e1-b4f3-44bfb393e2bfdocument_collectionCollect Required DocumentsCollect government-issued ID, proof of income, and any additional documentation ...completeddocumentationimmediate2026-03-292026-03-22T19:08:41.073883+01:002{}2026-03-29T20:08:41.074712+02:00
e68d03c7-9a91-496a-aaed-e3456e1831b4685748b0-a962-44e1-b4f3-44bfb393e2bfinsurance_verificationVerify Renter's InsuranceConfirm tenant has obtained renter's insurance with minimum $50,000 personal pro...completeddocumentation7d_before_move_in2026-05-142026-03-25T19:08:41.073916+01:003{}2026-03-29T20:08:41.074715+02:00
audit_tenant_records
94 rows 12 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 record_data jsonb NO
3 has_validation_issues bool NO
4 validation_issues jsonb NO
5 flagged_for_investigation bool NO
6 investigation_notes text YES
7 investigated_at timestamptz YES
8 created_at timestamptz NO
9 audit_category_id int8 NO ๐Ÿ”— โ†’ audit_categories.id
10 investigated_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
11 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
12 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX audit_tenan_unit_id_444dcf_idx ON public.audit_tenant_records USING btree (unit_id)
  • CREATE INDEX audit_tenant_records_unit_id_88ddfe59 ON public.audit_tenant_records USING btree (unit_id)
  • CREATE INDEX audit_tenant_records_tenant_id_860b0f8c ON public.audit_tenant_records USING btree (tenant_id)
  • CREATE INDEX audit_tenant_records_investigated_by_id_1802bd57 ON public.audit_tenant_records USING btree (investigated_by_id)
  • CREATE INDEX audit_tenant_records_audit_category_id_7564cbf8 ON public.audit_tenant_records USING btree (audit_category_id)
  • CREATE INDEX audit_tenan_tenant__3efd5b_idx ON public.audit_tenant_records USING btree (tenant_id)
  • CREATE INDEX audit_tenan_has_val_4480cc_idx ON public.audit_tenant_records USING btree (has_validation_issues)
  • CREATE INDEX audit_tenan_flagged_b8f3f9_idx ON public.audit_tenant_records USING btree (flagged_for_investigation)
  • CREATE INDEX audit_tenan_audit_c_43eb28_idx ON public.audit_tenant_records USING btree (audit_category_id)
  • CREATE UNIQUE INDEX audit_tenant_records_pkey ON public.audit_tenant_records USING btree (id)

Sample Data (3 of 94 rows)

idrecord_datahas_validation_issuesvalidation_issuesflagged_for_investigationinvestigation_notesinvestigated_atcreated_ataudit_category_idinvestigated_by_idtenant_idunit_id
0bb0bf1a-814a-49bf-91fb-609354bb28a3{"tenant_id": "897f7c59-a694-4123-bdd1-cdf2986a4338", "unit_code": "233", "days_expired": 112, "resiTrue["Lease expired 112 days ago - exceeds review trigger (30 days)"]FalseNULLNULL2025-11-20T11:01:43.670705+01:004NULL897f7c59-a694-4123-bdd1-cdf2986a43388563a735-6363-421f-849f-2b8be88a7418
845dfcc2-4a80-48a9-bac6-118934ca2db7{"tenant_id": "9f6858e1-fffa-47ae-910b-f12628cdd125", "unit_code": "392", "days_expired": 112, "resiTrue["Lease expired 112 days ago - exceeds review trigger (30 days)"]FalseNULLNULL2025-11-20T11:01:43.676919+01:004NULL9f6858e1-fffa-47ae-910b-f12628cdd1254b10150a-ad97-4845-b687-d6f7f636f444
920c3ce3-0a63-426e-8724-995a405b5649{"tenant_id": "b50e3114-6267-425d-97ab-33435f2c0cd0", "unit_code": "192", "days_expired": 112, "resiTrue["Lease expired 112 days ago - exceeds review trigger (30 days)"]FalseNULLNULL2025-11-20T11:01:43.678172+01:004NULLb50e3114-6267-425d-97ab-33435f2c0cd01fc91afb-6704-4925-90eb-16a40486daa2
predictive_maintenance_prediction
80 rows 11 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 prediction_type varchar(20) NO
3 predicted_date date NO
4 confidence_score int4 NO
5 risk_level varchar(20) NO
6 estimated_cost numeric YES
7 reasoning text NO
8 status varchar(20) NO
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 equipment_id uuid NO ๐Ÿ”— โ†’ predictive_maintenance_equipment.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX predictive_maintenance_prediction_pkey ON public.predictive_maintenance_prediction USING btree (id)
  • CREATE INDEX predictive_maintenance_prediction_equipment_id_836fac4e ON public.predictive_maintenance_prediction USING btree (equipment_id)

Sample Data (3 of 80 rows)

idprediction_typepredicted_dateconfidence_scorerisk_levelestimated_costreasoningstatuscreated_atupdated_atequipment_id
8684c7a9-2b16-4a00-be31-758feb747a28scheduled2027-04-1370low160.0Regular scheduled maintenance for ABB System pro M compact. Interval: every 24 m...predicted2026-03-31T16:14:28.565864+02:002026-03-31T16:14:28.565888+02:00f2de2256-a2cf-43e4-a477-6be6e5f7ce78
0f2cb42f-a698-4922-8942-e95c5d2fe8cffailure_risk2026-08-1880high1120.0Failure risk assessment for ABB System pro M compact (Risk Score: 75/100). Key f...predicted2026-03-31T16:14:28.575603+02:002026-03-31T16:14:28.575625+02:00f2de2256-a2cf-43e4-a477-6be6e5f7ce78
bcb8fd97-0932-4928-9210-184e0cceb163scheduled2026-04-2989high110.0Scheduled maintenance for Bosch FPA-5000 is OVERDUE. Maintenance interval is 12 ...predicted2026-03-31T16:14:28.5828+02:002026-03-31T16:14:28.582814+02:0039746075-c589-4d0e-bbc3-c454637fabe8
unit_risk_score
80 rows 12 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 score int4 NO
5 level varchar(20) NO
6 top_risk_factor varchar(200) NO
7 factor_breakdown jsonb NO '{}'::jsonb
8 predicted_next_issue varchar(300) NO ''::character varying
9 predicted_issue_date date YES
10 last_assessment_date date NO
11 created_at timestamptz NO now()
12 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX unit_risk_score_unit_idx ON public.unit_risk_score USING btree (unit_id)
  • CREATE INDEX unit_risk_score_property_idx ON public.unit_risk_score USING btree (property_id)
  • CREATE INDEX unit_risk_score_level_idx ON public.unit_risk_score USING btree (level)
  • CREATE INDEX unit_risk_score_score_idx ON public.unit_risk_score USING btree (score DESC)
  • CREATE UNIQUE INDEX unit_risk_score_pkey ON public.unit_risk_score USING btree (id)

Check Constraints

  • unit_risk_score_score_check: ((score >= 0) AND (score <= 100))

Sample Data (3 of 80 rows)

idunit_idproperty_idscoreleveltop_risk_factorfactor_breakdownpredicted_next_issuepredicted_issue_datelast_assessment_datecreated_atupdated_at
4a93a03e-3fdf-48d7-925b-de9d5643d460dd468041-ce82-4ee2-a901-673e44cade8aac632223-fff6-484f-9243-9ee0984cd8a235mediumFire suppression maintenance overdue{"hvac": 30, "other": 5, "plumbing": 20, "electrical": 10, "structural": 35}Smoke detector battery and sensor replacement overdue2026-09-132026-03-292026-03-29T18:35:16.055428+02:002026-03-29T18:35:16.055442+02:00
26669226-b019-49b8-8733-5ef95eb365db4be8a639-355f-4f4e-850d-686651d4048fdd6765b3-df28-4f01-a9a2-0181cc76d32518lowAging HVAC system{"hvac": 30, "other": 5, "plumbing": 20, "electrical": 10, "structural": 35}Window seal failure likely before next winter โ€” draft/moisture risk2026-10-052026-03-292026-03-29T18:35:16.060226+02:002026-03-29T18:35:16.060234+02:00
6869fb6b-294d-47b5-b939-14963804a73ed393a771-abae-4e9d-a4ba-9ad6394108a6821af994-2185-4eb9-b8b2-31b72fb5fd7261highRoof membrane wear{"hvac": 40, "other": 10, "plumbing": 20, "appliance": 10, "electrical": 20}Smoke detector battery and sensor replacement overdue2026-05-162026-03-292026-03-29T18:35:16.06218+02:002026-03-29T18:35:16.062187+02:00
portfolio_chat_chatmessage
62 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 role varchar(20) NO
3 content text NO
4 data jsonb NO
5 actions jsonb NO
6 created_at timestamptz NO
7 session_id uuid NO ๐Ÿ”— โ†’ portfolio_chat_chatsession.id

Foreign Keys

Indexes

  • CREATE INDEX portfolio_c_role_79a10f_idx ON public.portfolio_chat_chatmessage USING btree (role)
  • CREATE INDEX portfolio_chat_chatmessage_session_id_90d91000 ON public.portfolio_chat_chatmessage USING btree (session_id)
  • CREATE INDEX portfolio_c_session_47a819_idx ON public.portfolio_chat_chatmessage USING btree (session_id, created_at)
  • CREATE UNIQUE INDEX portfolio_chat_chatmessage_pkey ON public.portfolio_chat_chatmessage USING btree (id)

Sample Data (3 of 62 rows)

idrolecontentdataactionscreated_atsession_id
d830e601-b655-4353-bc21-f610a0a349a6userShow me tenants with outstanding balances{}[]2026-03-29T19:02:19.627351+02:0084c605f4-e936-4706-bf06-f6421bec8825
3e7ccf5f-4987-4009-83f1-44be5b9c60ceassistantI found 8 tenants with outstanding balances totaling $14,320.50. Here are the to...{"rows": [["Marcus Williams", "4B", "$3,200.00", "active"], ["Sarah Johnson", "12A", "$2,850.75", "a[{"icon": "receipt_long", "label": "Start Collection", "route": "/collections"}, {"icon": "download"2026-03-29T19:02:19.629504+02:0084c605f4-e936-4706-bf06-f6421bec8825
450b3a4e-fe7f-45e8-973b-f05d175c8c83userWhich ones are more than 60 days overdue?{}[]2026-03-29T19:02:19.630789+02:0084c605f4-e936-4706-bf06-f6421bec8825
turnover_log
50 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ turnover_case.id
3 event_type varchar(50) NO
4 previous_stage varchar(20) YES ''::character varying
5 new_stage varchar(20) YES ''::character varying
6 details text YES ''::text
7 created_by varchar(100) YES 'system'::character varying
8 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_turnover_log_case ON public.turnover_log USING btree (case_id)
  • CREATE INDEX idx_turnover_log_created ON public.turnover_log USING btree (created_at DESC)
  • CREATE UNIQUE INDEX turnover_log_pkey ON public.turnover_log USING btree (id)

Sample Data (3 of 50 rows)

idcase_idevent_typeprevious_stagenew_stagedetailscreated_bycreated_at
6c20af13-8388-42d6-8bd6-201a8a0191bc6af0b243-09bf-420f-9baf-87a2bd031341creatednoticeTurnover case created. Move-out: 2026-04-25.system2026-03-29T18:05:14.280767+02:00
94a30efa-9722-4d09-af6f-e1fa5245b2bfc3a29f3e-7217-40b6-9f88-df03eeac3d78creatednoticeTurnover case created. Move-out: 2026-04-21.system2026-03-29T18:05:14.290419+02:00
c0a62544-47a4-41a6-a653-83e0a1bdf1d2ccdc4f23-3b68-4583-a10b-71ced42540e6creatednoticeTurnover case created. Move-out: 2026-04-27.system2026-03-29T18:05:14.296801+02:00
moveout_photos_inspectionphoto
48 rows 13 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 room varchar(100) NO
3 original_url varchar(500) NO
4 ai_analysis jsonb NO
5 damage_detected bool NO
6 damage_type varchar(100) NO
7 damage_description text NO
8 estimated_repair_cost numeric NO
9 severity varchar(10) NO
10 deduction_status varchar(10) NO
11 adjusted_amount numeric YES
12 created_at timestamptz NO
13 inspection_id uuid NO ๐Ÿ”— โ†’ moveout_photos_moveoutinspection.id

Foreign Keys

Indexes

  • CREATE INDEX moveout_pho_damage__8e576d_idx ON public.moveout_photos_inspectionphoto USING btree (damage_detected)
  • CREATE INDEX moveout_pho_room_8158a4_idx ON public.moveout_photos_inspectionphoto USING btree (room)
  • CREATE UNIQUE INDEX moveout_photos_inspectionphoto_pkey ON public.moveout_photos_inspectionphoto USING btree (id)
  • CREATE INDEX moveout_photos_inspectionphoto_inspection_id_a47d7fb2 ON public.moveout_photos_inspectionphoto USING btree (inspection_id)
  • CREATE INDEX moveout_pho_deducti_ae1b2e_idx ON public.moveout_photos_inspectionphoto USING btree (deduction_status)

Sample Data (3 of 48 rows)

idroomoriginal_urlai_analysisdamage_detecteddamage_typedamage_descriptionestimated_repair_costseveritydeduction_statusadjusted_amountcreated_atinspection_id
c301b453-742a-4610-bf50-d893d31e2698Living Roomhttps://images.unsplash.com/photo-1484101403633-562f891dc89a?w=800{"tags": ["living_room", "damage"], "model": "unitcycle-damage-v2", "confidence": 0.89, "analyzed_atTrueWall DamageAI detected significant wall damage in living room. Multiple holes and scuff mar...320.0moderatependingNULL2026-03-29T19:00:40.225946+02:004ea7a7eb-62a0-4412-8ad0-9e0a1e275c14
882b5d05-f5e6-495d-af9f-be0e592c248cKitchenhttps://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=800{"tags": ["kitchen", "damage"], "model": "unitcycle-damage-v2", "confidence": 0.85, "analyzed_at": "TrueStainAI detected moderate staining on kitchen countertop and backsplash. Grease build...180.0minorpendingNULL2026-03-29T19:00:40.228295+02:004ea7a7eb-62a0-4412-8ad0-9e0a1e275c14
9f3233ff-917d-4f34-9f26-e4e8691ede1eBathroomhttps://images.unsplash.com/photo-1620626011761-996317702519?w=800{"tags": ["bathroom", "normal"], "model": "unitcycle-damage-v2", "confidence": 0.86, "analyzed_at": FalseNormal wear and tear. No deductions.0.0nonependingNULL2026-03-29T19:00:40.230405+02:004ea7a7eb-62a0-4412-8ad0-9e0a1e275c14
law_monitor_lawchangechecklist
47 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 description varchar(500) NO
3 is_completed bool NO
4 completed_by varchar(200) NO
5 completed_at timestamptz YES
6 notes text NO
7 order int4 NO
8 alert_id uuid NO ๐Ÿ”— โ†’ law_monitor_lawchangealert.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX law_monitor_lawchangechecklist_pkey ON public.law_monitor_lawchangechecklist USING btree (id)
  • CREATE INDEX law_monitor_lawchangechecklist_alert_id_708cd1c6 ON public.law_monitor_lawchangechecklist USING btree (alert_id)

Sample Data (3 of 47 rows)

iddescriptionis_completedcompleted_bycompleted_atnotesorderalert_id
b61fa2a1-c8fa-4ad5-b54d-5bce3519f79dBestandsaufnahme aller betroffenen Mietvertrรคge durchfรผhrenFalseNULL07716639c-5cee-4c49-9792-02a0a2a77ea9
2d3710d1-a83c-4d7e-a80b-40af87521b86Mietzinsobergrenzen gemรครŸ neuem ยง16 MRG berechnenFalseNULL17716639c-5cee-4c49-9792-02a0a2a77ea9
77f8f4d3-eb14-4d25-919f-a6c89c720844IT-System fรผr digitale BK-Abrechnung aktualisierenFalseNULL27716639c-5cee-4c49-9792-02a0a2a77ea9
chart_of_accounts
45 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 account_code varchar(20) NO
3 account_name varchar(200) NO
4 description text NO
5 yardi_account_id varchar(50) YES
6 yardi_account_type varchar(50) NO
7 is_active bool NO
8 requires_unit_number bool NO
9 requires_vendor_approval bool NO
10 monthly_budget numeric YES
11 annual_budget numeric YES
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
15 category_id int8 NO ๐Ÿ”— โ†’ expense_categories.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX chart_of_accounts_account_code_key ON public.chart_of_accounts USING btree (account_code)
  • CREATE UNIQUE INDEX chart_of_accounts_pkey ON public.chart_of_accounts USING btree (id)
  • CREATE INDEX chart_of_ac_account_501bc2_idx ON public.chart_of_accounts USING btree (account_code)
  • CREATE INDEX chart_of_ac_categor_16f061_idx ON public.chart_of_accounts USING btree (category_id, is_active)
  • CREATE INDEX chart_of_ac_yardi_a_e3f0fe_idx ON public.chart_of_accounts USING btree (yardi_account_id)
  • CREATE INDEX chart_of_accounts_account_code_c878d800_like ON public.chart_of_accounts USING btree (account_code varchar_pattern_ops)
  • CREATE INDEX chart_of_accounts_category_id_2fb544e9 ON public.chart_of_accounts USING btree (category_id)
  • CREATE INDEX chart_of_accounts_created_by_id_9d100aed ON public.chart_of_accounts USING btree (created_by_id)

Sample Data (3 of 45 rows)

idaccount_codeaccount_namedescriptionyardi_account_idyardi_account_typeis_activerequires_unit_numberrequires_vendor_approvalmonthly_budgetannual_budgetcreated_atupdated_atcreated_by_idcategory_id
16111Credit to Grow InvoicesCredit to grow invoices and related fees6111-0000expenseTrueFalseFalseNULLNULL2025-09-21T17:31:54.881402+02:002025-09-21T17:31:54.881402+02:00NULL1
26115Referral FeesApartment List or referrals through third party - NOT Modern Message6115-0000expenseTrueFalseFalseNULLNULL2025-09-21T17:31:54.885401+02:002025-09-21T17:31:54.885401+02:00NULL1
36120Collections & Evictions FeesCourt Costs, Attorney Fees & Beatty, McNeely Law, Ford, Klapheke, & Joe Matejkov...6120-0000expenseTrueTrueFalseNULLNULL2025-09-21T17:31:54.8864+02:002025-09-21T17:31:54.8864+02:00NULL1
expense_category_account_mappings
36 rows 9 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 confidence_boost numeric NO
3 priority int4 NO
4 is_active bool NO
5 notes text NO
6 created_at timestamptz NO
7 updated_at timestamptz NO
8 account_id int8 NO ๐Ÿ”— โ†’ chart_of_accounts.id
9 category_id int8 NO ๐Ÿ”— โ†’ expense_categories.id

Foreign Keys

Indexes

  • CREATE INDEX expense_cat_account_5c19d1_idx ON public.expense_category_account_mappings USING btree (account_id, is_active)
  • CREATE INDEX expense_category_account_mappings_category_id_063a88bc ON public.expense_category_account_mappings USING btree (category_id)
  • CREATE INDEX expense_cat_categor_c4de9f_idx ON public.expense_category_account_mappings USING btree (category_id, is_active)
  • CREATE INDEX expense_category_account_mappings_account_id_52dc7c59 ON public.expense_category_account_mappings USING btree (account_id)
  • CREATE UNIQUE INDEX expense_category_account_category_id_account_id_67362f81_uniq ON public.expense_category_account_mappings USING btree (category_id, account_id)
  • CREATE UNIQUE INDEX expense_category_account_mappings_pkey ON public.expense_category_account_mappings USING btree (id)

Check Constraints

  • expense_category_account_mappings_priority_check: (priority >= 0)

Sample Data (3 of 36 rows)

idconfidence_boostpriorityis_activenotescreated_atupdated_ataccount_idcategory_id
10.1210TrueHVAC repairs - most common maintenance2025-11-10T16:26:19.15332+01:002025-11-10T16:26:19.15334+01:0061
20.1210TruePlumbing repairs - most common maintenance2025-11-10T16:26:19.158649+01:002025-11-10T16:26:19.158667+01:0051
30.1210TrueElectrical repairs - most common maintenance2025-11-10T16:26:19.162897+01:002025-11-10T16:26:19.162914+01:0071
key_issuance
35 rows 10 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 checklist_id uuid YES ๐Ÿ”— โ†’ onboarding_checklist.id
4 key_type varchar(50) NO
5 key_identifier varchar(100) NO ''::character varying
6 issued_to varchar(200) NO
7 issued_at timestamptz YES
8 returned_at timestamptz YES
9 return_status varchar(20) NO 'issued'::character varying
10 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX key_issuance_unit_idx ON public.key_issuance USING btree (unit_id)
  • CREATE UNIQUE INDEX key_issuance_pkey ON public.key_issuance USING btree (id)
  • CREATE INDEX idx_key_issuance_unit ON public.key_issuance USING btree (unit_id)
  • CREATE INDEX key_issuance_return_status_idx ON public.key_issuance USING btree (return_status)

Sample Data (3 of 35 rows)

idunit_idchecklist_idkey_typekey_identifierissued_toissued_atreturned_atreturn_statuscreated_at
9c126202-4b1f-42f6-b552-c326c10d6937adb00c54-9173-47c0-b7fd-375cfd412da1685748b0-a962-44e1-b4f3-44bfb393e2bfgarageGR-497-ADB0Aaliya Johnson2026-03-11T19:08:41.082405+01:00NULLissued2026-03-29T20:08:41.084509+02:00
edd5ef52-28d4-45ba-aa36-a64c05bf9abaadb00c54-9173-47c0-b7fd-375cfd412da1685748b0-a962-44e1-b4f3-44bfb393e2bfunit_doorUD-786-ADB0Aaliya Johnson2026-03-26T19:08:41.083988+01:00NULLissued2026-03-29T20:08:41.084515+02:00
4aab38e4-9e97-4ad0-aeca-e4908e1a4eafadb00c54-9173-47c0-b7fd-375cfd412da1685748b0-a962-44e1-b4f3-44bfb393e2bffront_doorFD-187-ADB0Aaliya Johnson2026-03-06T19:08:41.084051+01:00NULLissued2026-03-29T20:08:41.084517+02:00
rbac_user_profile
34 rows 34 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 employee_id varchar(50) YES
3 yardi_id varchar(100) YES
4 department varchar(50) NO
5 phone varchar(20) NO
6 is_team_member bool NO
7 can_approve_invoices bool NO
8 approval_limit numeric YES
9 joined_date date NO
10 last_activity timestamptz YES
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 role_id uuid YES ๐Ÿ”— โ†’ rbac_role.id
14 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
15 address_line_1 varchar(255) NO
16 address_line_2 varchar(255) NO
17 city varchar(100) NO
18 company_name varchar(200) NO
19 country varchar(100) NO
20 fax varchar(20) NO
21 home_phone varchar(20) NO
22 inactive_date date YES
23 is_active bool NO
24 job_title varchar(100) NO
25 mailing_address text NO
26 mobile_phone varchar(20) NO
27 modified_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
28 notes text NO
29 office_phone varchar(20) NO
30 state varchar(50) NO
31 zip_code varchar(20) NO
32 login_notifications_enabled bool NO
33 profile_picture varchar(100) YES
34 two_factor_enabled bool NO

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX rbac_user_profile_pkey ON public.rbac_user_profile USING btree (id)
  • CREATE INDEX rbac_user_profile_yardi_id_4e718661_like ON public.rbac_user_profile USING btree (yardi_id varchar_pattern_ops)
  • CREATE INDEX rbac_user_profile_role_id_072f0dfe ON public.rbac_user_profile USING btree (role_id)
  • CREATE INDEX rbac_user_profile_modified_by_id_aa974c63 ON public.rbac_user_profile USING btree (modified_by_id)
  • CREATE INDEX rbac_user_profile_employee_id_20de7b2f_like ON public.rbac_user_profile USING btree (employee_id varchar_pattern_ops)
  • CREATE INDEX rbac_user_p_yardi_i_8b4db6_idx ON public.rbac_user_profile USING btree (yardi_id)
  • CREATE INDEX rbac_user_p_is_acti_d6cffc_idx ON public.rbac_user_profile USING btree (is_active, is_team_member)
  • CREATE INDEX rbac_user_p_employe_47e8b4_idx ON public.rbac_user_profile USING btree (employee_id)
  • CREATE UNIQUE INDEX rbac_user_profile_yardi_id_key ON public.rbac_user_profile USING btree (yardi_id)
  • CREATE UNIQUE INDEX rbac_user_profile_user_id_key ON public.rbac_user_profile USING btree (user_id)
  • CREATE UNIQUE INDEX rbac_user_profile_employee_id_key ON public.rbac_user_profile USING btree (employee_id)

Sample Data (3 of 34 rows)

idemployee_idyardi_iddepartmentphoneis_team_membercan_approve_invoicesapproval_limitjoined_datelast_activitycreated_atupdated_atrole_iduser_idaddress_line_1address_line_2citycompany_namecountryfaxhome_phoneinactive_dateis_activejob_titlemailing_addressmobile_phonemodified_by_idnotesoffice_phonestatezip_codelogin_notifications_enabledprofile_picturetwo_factor_enabled
18EMP5626NULLmanagementTrueFalse2099.02025-09-21NULL2025-09-21T17:34:03.176576+02:002025-09-21T17:34:03.176576+02:00e3f321fb-79bf-44dd-9384-133b49a08e2d23USANULLTrueNULLTrueNULLFalse
19EMP6054NULLprocurementTrueTrue8066.02025-09-21NULL2025-09-21T17:34:03.476444+02:002025-09-21T17:34:03.476444+02:00fff03074-636e-4224-a1fa-098c6675361224USANULLTrueNULLTrueNULLFalse
20EMP1995NULLmanagementTrueTrueNULL2025-09-21NULL2025-09-21T17:34:03.773535+02:002025-09-21T17:34:03.773535+02:0013421b03-30c0-4d7f-a4f1-13ee23960a0225USANULLTrueNULLTrueNULLFalse
turnover_deduction
34 rows 6 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 case_id uuid NO ๐Ÿ”— โ†’ turnover_case.id
3 category varchar(30) YES 'other'::character varying
4 description varchar(300) YES ''::character varying
5 amount numeric NO
6 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX turnover_deduction_pkey ON public.turnover_deduction USING btree (id)
  • CREATE INDEX idx_turnover_deduction_case ON public.turnover_deduction USING btree (case_id)

Sample Data (3 of 34 rows)

idcase_idcategorydescriptionamountcreated_at
949a567d-73b2-4cce-bb08-8447f6ff5bcc0b99f494-981e-4744-9073-9db72da0f62ecleaningProfessional deep cleaning232.02026-03-29T18:05:14.303174+02:00
c8ed1c44-71ed-4460-917b-074de24753070b99f494-981e-4744-9073-9db72da0f62edoorCloset door track repair73.02026-03-29T18:05:14.304859+02:00
30104f54-cc0b-4e27-8691-3ce75b38038f6074b963-8464-492d-9425-888c9eb331f4trashJunk removal โ€” tenant left furniture237.02026-03-29T18:05:14.312836+02:00
syndication_lead
33 rows 14 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 listing_id uuid NO ๐Ÿ”— โ†’ syndication_listing.id
3 platform varchar(50) NO
4 first_name varchar(100) NO
5 last_name varchar(100) NO
6 email varchar(254) NO
7 phone varchar(30) NO ''::character varying
8 grade varchar(1) NO
9 ai_score int4 NO 0
10 suggested_response text NO ''::text
11 message text NO ''::text
12 move_in_date date YES
13 status varchar(20) NO 'new'::character varying
14 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX syndication_lead_pkey ON public.syndication_lead USING btree (id)

Sample Data (3 of 33 rows)

idlisting_idplatformfirst_namelast_nameemailphonegradeai_scoresuggested_responsemessagemove_in_datestatuscreated_at
086ec416-0e07-4c1d-99f8-e5d899a8d633ed9d0fba-ba25-491b-a80c-73ad6636ce71craigslistSamuelHillsamuel.hill84@example.com(716) 617-9325C38Hi Samuel, thanks for your message. The unit at 204A is still available. I'd be ...Hi, I saw your listing online and I'm very interested. I'm currently employed fu...2026-05-11qualified2026-03-29T20:59:06.84354+02:00
99ca6d5d-1917-4842-8590-e45efa271dc4ed9d0fba-ba25-491b-a80c-73ad6636ce71facebookEmmaAndersonemma.anderson40@example.com(225) 343-9626B57Hi Emma, thanks for reaching out about 204A! We'd be happy to schedule a showing...Hello! This unit looks perfect for my needs. I'm a quiet professional with no pe...NULLnew2026-03-29T20:59:06.844612+02:00
d871be25-76e4-442f-a54f-a3a34511cf54ed9d0fba-ba25-491b-a80c-73ad6636ce71apartments_comDanielDavisdaniel.davis19@example.com(805) 955-7834C33Hi Daniel, thanks for your message. The unit at 204A is still available. I'd be ...Good morning. I'm relocating for work and need something move-in ready. Budget i...NULLnew2026-03-29T20:59:06.845443+02:00
reserves_ruecklage
32 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 jahr int4 NO
3 gesetzliches_minimum_pro_m2 numeric NO
4 soll_beitrag numeric NO
5 ist_beitrag numeric NO
6 kontostand numeric NO
7 status varchar(15) NO
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX reserves_ru_jahr_47ce43_idx ON public.reserves_ruecklage USING btree (jahr)
  • CREATE INDEX reserves_ruecklage_property_id_c3627d59 ON public.reserves_ruecklage USING btree (property_id)
  • CREATE UNIQUE INDEX reserves_ruecklage_property_id_jahr_b124b4c3_uniq ON public.reserves_ruecklage USING btree (property_id, jahr)
  • CREATE UNIQUE INDEX reserves_ruecklage_pkey ON public.reserves_ruecklage USING btree (id)
  • CREATE INDEX reserves_ru_status_d83e74_idx ON public.reserves_ruecklage USING btree (status)

Sample Data (3 of 32 rows)

idjahrgesetzliches_minimum_pro_m2soll_beitragist_beitragkontostandstatuscreated_atupdated_atproperty_id
c558cc63-8c13-49f0-93be-2b8c1b7f84fa20220.92824.183100.814601.85konform2026-03-20T09:35:21.245215+01:002026-03-20T09:35:21.245236+01:009220b4cf-6966-4b42-8534-dc802039b024
b149e093-b0b0-4449-9f27-3d0058ff30df20230.92175.441665.134192.33unterschritten2026-03-20T09:35:21.255572+01:002026-03-20T09:35:21.255587+01:009220b4cf-6966-4b42-8534-dc802039b024
b68968fb-a956-4ea1-b3eb-bf66e64b182b20240.9901.68783.8215790.04unterschritten2026-03-20T09:35:21.25924+01:002026-03-20T09:35:21.25925+01:009220b4cf-6966-4b42-8534-dc802039b024
staging_photo
32 rows 9 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 project_id uuid NO ๐Ÿ”— โ†’ staging_project.id
3 room varchar(50) NO
4 original_url varchar(500) NO
5 staged_url varchar(500) NO ''::character varying
6 processing_status varchar(20) NO 'pending'::character varying
7 ai_description text NO ''::text
8 photo_order int4 NO 0
9 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX staging_photo_project_idx ON public.staging_photo USING btree (project_id)
  • CREATE INDEX idx_staging_photo_project ON public.staging_photo USING btree (project_id)
  • CREATE UNIQUE INDEX staging_photo_pkey ON public.staging_photo USING btree (id)

Sample Data (3 of 32 rows)

idproject_idroomoriginal_urlstaged_urlprocessing_statusai_descriptionphoto_ordercreated_at
0c112822-c341-4063-8913-60499c73f45e982465b7-eaa2-40be-8b7c-4f1bb165d3c6bedroom/media/staging/bedroom_1.jpgprocessing02026-03-29T20:08:30.179061+02:00
c3fb584c-839c-4f72-b23c-1e7c0888c7d3982465b7-eaa2-40be-8b7c-4f1bb165d3c6living_room/media/staging/living_room_2.jpgprocessing12026-03-29T20:08:30.181213+02:00
9e758348-5409-4a01-935e-23a7e8bfb716982465b7-eaa2-40be-8b7c-4f1bb165d3c6kitchen/media/staging/kitchen_3.jpgprocessing22026-03-29T20:08:30.183098+02:00
predictive_maintenance_equipment
30 rows 17 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 category varchar(20) NO
4 manufacturer varchar(200) NO
5 model_number varchar(100) NO
6 serial_number varchar(100) NO
7 installation_date date NO
8 expected_lifespan_years int4 NO
9 purchase_cost numeric YES
10 last_maintenance_date date YES
11 maintenance_interval_months int4 NO
12 condition varchar(20) NO
13 location_detail varchar(200) NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 building_id uuid YES ๐Ÿ”— โ†’ properties_building.id
17 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX predictive_maintenance_equipment_building_id_e7137f43 ON public.predictive_maintenance_equipment USING btree (building_id)
  • CREATE INDEX predictive_maintenance_equipment_property_id_1c5f6631 ON public.predictive_maintenance_equipment USING btree (property_id)
  • CREATE UNIQUE INDEX predictive_maintenance_equipment_pkey ON public.predictive_maintenance_equipment USING btree (id)

Sample Data (3 of 30 rows)

idnamecategorymanufacturermodel_numberserial_numberinstallation_dateexpected_lifespan_yearspurchase_costlast_maintenance_datemaintenance_interval_monthsconditionlocation_detailcreated_atupdated_atbuilding_idproperty_id
7b809265-a97e-460e-bc35-1e9fe13f6d2fVaillant ecoTEC plus VCW 206heizungVaillantVCW 206/5-5VAI-1642042014-06-26204800.02025-05-2312maengelStiegenhaus2026-03-19T15:30:05.598418+01:002026-03-19T15:30:05.598433+01:00eb0f5c5a-4f5b-438e-8986-837cdf416c8c9220b4cf-6966-4b42-8534-dc802039b024
ef5af218-2df1-48d2-93d7-47c3a874778fViessmann Vitodens 200-WheizungViessmannB2HB-19VIE-4113432014-11-17206200.02023-05-0412gutKeller / Technikraum2026-03-19T15:30:05.60108+01:002026-03-19T15:30:05.6011+01:00aebe0257-e406-470f-9784-8caa36d584e835b664ba-bb75-4318-ae24-07b47a445345
12e03c16-76a7-434b-b0b9-09fe17b4ea9eBuderus Logamax plus GB192iheizungBuderusGB192i-25BUD-6138892011-08-16185400.02023-08-0212maengelWaschkรผche2026-03-19T15:30:05.604332+01:002026-03-19T15:30:05.604342+01:0063ae5fed-d99f-4b90-bae0-5e413e1c358794af2ce9-2c88-4b56-b06d-482dbdcfd3ad
preventive_maintenance_schedules
30 rows 17 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(300) NO
3 description text NO
4 category varchar(50) NO
5 frequency varchar(20) NO
6 interval_months int4 NO
7 wo_priority varchar(20) NO
8 wo_title_template varchar(300) NO
9 auto_create_wo bool NO
10 is_active bool NO
11 last_triggered_at timestamptz YES
12 next_trigger_date date NO
13 estimated_cost numeric YES
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 equipment_id uuid YES ๐Ÿ”— โ†’ predictive_maintenance_equipment.id
17 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX preventive_maintenance_schedules_equipment_id_032aa73b ON public.preventive_maintenance_schedules USING btree (equipment_id)
  • CREATE INDEX preventive_maintenance_schedules_property_id_0a5ea237 ON public.preventive_maintenance_schedules USING btree (property_id)
  • CREATE UNIQUE INDEX preventive_maintenance_schedules_pkey ON public.preventive_maintenance_schedules USING btree (id)

Sample Data (3 of 30 rows)

idnamedescriptioncategoryfrequencyinterval_monthswo_prioritywo_title_templateauto_create_wois_activelast_triggered_atnext_trigger_dateestimated_costcreated_atupdated_atequipment_idproperty_id
eb34c68d-4b9e-4dc3-8609-cf03284c8e94Brandschutzanlage Prรผfung - Westridge GardensAnnual fire safety system inspection including smoke detectors, fire extinguishe...fire_safetyannual12urgentPM: Brandschutzanlage Prรผfung - {property}TrueTrueNULL2026-07-11888.02026-04-01T09:54:32.214999+02:002026-04-01T09:54:32.215005+02:0039746075-c589-4d0e-bbc3-c454637fabe835b664ba-bb75-4318-ae24-07b47a445345
e656910b-4872-4913-9cab-9a7cf98c9c7dLรผftungsanlage Wartung - Westridge GardensSemi-annual ventilation system maintenance: filter replacement, duct inspection,...hvacsemi_annual6mediumPM: Lรผftungsanlage Wartung - {property}TrueTrueNULL2026-09-25304.02026-04-01T09:54:32.215061+02:002026-04-01T09:54:32.215064+02:0029c6a128-feeb-4d48-9ab8-ef2170c216ec35b664ba-bb75-4318-ae24-07b47a445345
c7dd11cb-1cf7-4c70-9eb2-b33c72988a3fAufzug TรœV-Prรผfung - Willowbrook Square Phase 1Biennial TรœV main inspection for elevator per BetrSichV ยง16. Full safety assessm...elevatorcustom24urgentPM: Aufzug TรœV-Prรผfung - {property}TrueTrueNULL2026-08-154131.02026-04-01T09:54:32.215128+02:002026-04-01T09:54:32.215131+02:00bceb70ef-ec61-4b37-8d9a-38c566240d69ef4f1816-561d-4f47-a5ef-efc80771f2d2
bk_anomalien_bkanomaly
28 rows 18 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 category_code varchar(10) NO
3 category_name varchar(200) NO
4 year_current int4 NO
5 year_previous int4 NO
6 cost_current numeric NO
7 cost_previous numeric NO
8 deviation_pct numeric NO
9 deviation_eur numeric NO
10 severity varchar(10) NO
11 anomaly_type varchar(20) NO
12 status varchar(15) NO
13 explanation text NO
14 detected_by varchar(100) NO
15 detection_date date NO
16 created_at timestamptz NO
17 updated_at timestamptz NO
18 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX bk_anomalien_bkanomaly_pkey ON public.bk_anomalien_bkanomaly USING btree (id)
  • CREATE INDEX bk_anomalien_bkanomaly_property_id_44403ef5 ON public.bk_anomalien_bkanomaly USING btree (property_id)

Sample Data (3 of 28 rows)

idcategory_codecategory_nameyear_currentyear_previouscost_currentcost_previousdeviation_pctdeviation_eurseverityanomaly_typestatusexplanationdetected_bydetection_datecreated_atupdated_atproperty_id
50ecc4e1-b64e-44d9-8f72-f2e11e56f421BK-14Gemeinschaftsanlagen202520245368.842982.4880.012386.36criticalthreshold_exceededdetectedsystem2026-03-192026-03-19T15:29:18.542778+01:002026-03-19T15:29:18.542843+01:005d0567c4-d757-46eb-9ee8-98f0a2a5c68e
2d9e4224-1d48-463c-b92b-76aa7642f761BK-10Hausbetreuung2025202418322.719415.6894.68907.03criticalthreshold_exceededinvestigatingsystem2026-03-192026-03-19T15:29:18.542795+01:002026-03-19T15:29:18.542845+01:009220b4cf-6966-4b42-8534-dc802039b024
eec39753-9ef3-4f04-b99c-8b42d8db9f58BK-03Muellabfuhr20252024707.462045.22-65.41-1337.76criticalthreshold_exceededdetectedsystem2026-03-192026-03-19T15:29:18.542799+01:002026-03-19T15:29:18.542847+01:0035b664ba-bb75-4318-ae24-07b47a445345
preventive_wo_suggestion
28 rows 14 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 risk_score_id uuid YES ๐Ÿ”— โ†’ unit_risk_score.id
4 title varchar(300) NO
5 description text NO ''::text
6 priority varchar(20) NO 'medium'::character varying
7 category varchar(50) NO 'general'::character varying
8 estimated_cost numeric YES
9 reasoning text NO ''::text
10 status varchar(20) NO 'suggested'::character varying
11 approved_at timestamptz YES
12 work_order_id uuid YES
13 created_at timestamptz NO now()
14 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX preventive_wo_suggestion_unit_idx ON public.preventive_wo_suggestion USING btree (unit_id)
  • CREATE INDEX preventive_wo_suggestion_status_idx ON public.preventive_wo_suggestion USING btree (status)
  • CREATE INDEX preventive_wo_suggestion_priority_idx ON public.preventive_wo_suggestion USING btree (priority)
  • CREATE INDEX preventive_wo_suggestion_category_idx ON public.preventive_wo_suggestion USING btree (category)
  • CREATE UNIQUE INDEX preventive_wo_suggestion_pkey ON public.preventive_wo_suggestion USING btree (id)

Sample Data (3 of 28 rows)

idunit_idrisk_score_idtitledescriptionprioritycategoryestimated_costreasoningstatusapproved_atwork_order_idcreated_atupdated_at
a58c2677-69ba-4fa3-be42-8ac6ad66cc13d393a771-abae-4e9d-a4ba-9ad6394108a66869fb6b-294d-47b5-b939-14963804a73eHVAC Filter Replacement and System InspectionReplace air filters, clean coils, check refrigerant levels, and inspect blower m...highhvac250.0Unit risk score indicates aging HVAC system. Preventive maintenance now avoids e...suggestedNULLNULL2026-03-29T18:35:16.063741+02:002026-03-29T18:35:16.063749+02:00
94c8a8bc-88aa-4599-a768-7c7db62a729f23857dd4-4281-4f1b-ab43-c868ef250af664a73c6f-6524-4130-a0a4-f4190e323612Water Heater Flush and Anode Rod ReplacementFlush sediment from water heater tank, inspect anode rod, test pressure relief v...mediumplumbing150.0Water heater is approaching end-of-life. Flushing extends lifespan 2-3 years.suggestedNULLNULL2026-03-29T18:35:16.074349+02:002026-03-29T18:35:16.074355+02:00
f2f93aa1-5cc6-41c8-9a87-815767c8128ca96d48b9-a18f-4e52-b25d-77193c5f7e8b1e836354-3ab3-4919-acbf-ef81bb67c649Fire Safety Equipment CheckTest smoke detectors, replace batteries, inspect fire extinguisher, and verify c...urgentfire_safety80.0Fire suppression maintenance is overdue. Required by local code โ€” liability risk...suggestedNULLNULL2026-03-29T18:35:16.079451+02:002026-03-29T18:35:16.079461+02:00
legal_overrides_overrideauditlog
26 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 action varchar(50) NO
3 old_value jsonb YES
4 new_value jsonb YES
5 changed_by varchar(200) NO
6 changed_at timestamptz NO
7 notes text NO
8 override_id uuid NO ๐Ÿ”— โ†’ legal_overrides_propertylegaloverride.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX legal_overrides_overrideauditlog_pkey ON public.legal_overrides_overrideauditlog USING btree (id)
  • CREATE INDEX legal_overrides_overrideauditlog_override_id_b259f07e ON public.legal_overrides_overrideauditlog USING btree (override_id)

Sample Data (3 of 26 rows)

idactionold_valuenew_valuechanged_bychanged_atnotesoverride_id
a3fff703-c760-4ac2-9b35-13a6b8ecdf11createdNULL{"status": "pending", "override_type": "richtwert", "override_value": "5.20", "standard_value": "6.1Mag. Anna Huber2026-03-19T15:29:16.043164+01:00Override request submitted for Arbor Pointe Townhomes.1c396229-1e42-47f5-9f94-9c4fb256ed97
9a00e9ed-0f06-4067-9c2d-9077dc234fc2approved{"status": "pending"}{"status": "active"}Mag. Anna Huber2026-03-19T15:29:16.045439+01:00Override approved after legal review and documentation check.1c396229-1e42-47f5-9f94-9c4fb256ed97
1e51187c-f76f-4371-b8dc-9c65b2af6b25modified{"notes": "Initial value", "override_value": "4.90"}{"notes": "Approved after inspection confirmed substandard heating system.", "override_value": "5.20Mag. Anna Huber2026-03-19T15:29:16.046521+01:00Override value adjusted following updated assessment.1c396229-1e42-47f5-9f94-9c4fb256ed97
showing
25 rows 25 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 lead_id uuid YES
3 unit_id uuid YES
4 property_id uuid YES
5 prospect_name varchar(200) NO
6 prospect_email varchar(254) NO ''::character varying
7 prospect_phone varchar(30) NO ''::character varying
8 tour_type varchar(20) NO 'guided'::character varying
9 scheduled_at timestamptz NO
10 status varchar(20) NO 'scheduled'::character varying
11 income_stated numeric YES
12 rent_amount numeric NO 0
13 income_warning bool NO false
14 noshow_risk_score int4 NO 0
15 noshow_risk_level varchar(10) NO 'low'::character varying
16 noshow_risk_factors jsonb NO '[]'::jsonb
17 access_code varchar(10) NO ''::character varying
18 access_code_expires_at timestamptz YES
19 reminder_24h_sent bool NO false
20 reminder_2h_sent bool NO false
21 reminder_30m_sent bool NO false
22 unit_number varchar(50) NO ''::character varying
23 property_name varchar(200) NO ''::character varying
24 followup_sent bool NO false
25 created_at timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX showing_pkey ON public.showing USING btree (id)

Sample Data (3 of 25 rows)

idlead_idunit_idproperty_idprospect_nameprospect_emailprospect_phonetour_typescheduled_atstatusincome_statedrent_amountincome_warningnoshow_risk_scorenoshow_risk_levelnoshow_risk_factorsaccess_codeaccess_code_expires_atreminder_24h_sentreminder_2h_sentreminder_30m_sentunit_numberproperty_namefollowup_sentcreated_at
ca189e2a-f707-4695-9b31-5de095aa9865NULLd4d2118d-a490-4998-8395-2495578b187cfefbfd0e-a541-4460-a692-756c5d450d69Alice Hartmannalice.hartmann54@example.comself_guided2026-04-05T11:33:33.537965+02:00cancelledNULL2585.74False71high["Self-guided tours have higher no-show rates", "No phone number provided \u2014 harder to confirm"]NULLFalseFalseFalse12DRiverside ApartmentsFalse2026-03-29T20:48:33.537965+02:00
4fe7c87d-3852-4ca3-a3ff-226f243b1685NULLfb815302-7f70-4c61-beba-30ffca907505d148820e-1af7-416e-8a8b-38c4965cb7ceBen Kowalskiben.kowalski33@example.com+1-555-884-3120guided2026-03-14T12:18:33.537965+01:00scheduled11492.183491.77False20low[]NULLFalseFalseFalse10CCentral Park FlatsFalse2026-03-29T20:48:33.537965+02:00
2b877651-418f-4684-8456-a1a7adf0d7ddNULLbb474985-6892-4267-99f8-bb64f326e638a0fa7911-8b2f-41e7-945f-2c0fbb7a332eClara Nguyenclara.nguyen83@example.com+1-555-179-6926self_guided2026-03-23T14:18:33.537965+01:00cancelledNULL1538.27False43medium["Self-guided tours have higher no-show rates"]NULLFalseFalseFalse1AGarden GateFalse2026-03-29T20:48:33.537965+02:00
maintenance_staff_refresh_tokens
23 rows 6 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 token varchar(255) NO
3 expires_at timestamptz NO
4 created_at timestamptz NO
5 is_revoked bool NO
6 staff_id int4 NO ๐Ÿ”— โ†’ maintenance_staff.id

Foreign Keys

Indexes

  • CREATE INDEX maintenance_staff_refresh_tokens_token_64abe4f7_like ON public.maintenance_staff_refresh_tokens USING btree (token varchar_pattern_ops)
  • CREATE UNIQUE INDEX maintenance_staff_refresh_tokens_pkey ON public.maintenance_staff_refresh_tokens USING btree (id)
  • CREATE INDEX maintenance_staff_refresh_tokens_staff_id_8b5e869e ON public.maintenance_staff_refresh_tokens USING btree (staff_id)
  • CREATE UNIQUE INDEX maintenance_staff_refresh_tokens_token_key ON public.maintenance_staff_refresh_tokens USING btree (token)

Sample Data (3 of 23 rows)

idtokenexpires_atcreated_atis_revokedstaff_id
1eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGFmZl9pZCI6MSwiZXhwIjoxNzcxNDg4MzY2LCJ...2026-02-19T09:06:06.77034+01:002026-01-20T09:06:06.77093+01:00False1
2eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGFmZl9pZCI6MSwiZXhwIjoxNzcxNDg4NTc5LCJ...2026-02-19T09:09:39.072599+01:002026-01-20T09:09:39.072979+01:00False1
3eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGFmZl9pZCI6MSwiZXhwIjoxNzcxNDg4ODY2LCJ...2026-02-19T09:14:26.590938+01:002026-01-20T09:14:26.591449+01:00False1
marketplace_jobs
20 rows 21 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 property_id uuid NO
4 unit_id uuid YES
5 title varchar(200) NO
6 description text NO
7 category varchar(50) NO
8 urgency varchar(20) NO
9 status varchar(20) NO
10 budget_min numeric NO
11 budget_max numeric NO
12 ai_scope_summary text NO
13 requirements _varchar NO
14 estimated_hours numeric NO
15 photos jsonb NO
16 bid_deadline timestamptz NO
17 awarded_vendor_id uuid YES
18 awarded_bid_id int4 YES
19 posted_at timestamptz NO
20 created_at timestamptz NO
21 updated_at timestamptz NO

Indexes

  • CREATE INDEX marketplace_jobs_urgency_27fb9d4f_like ON public.marketplace_jobs USING btree (urgency varchar_pattern_ops)
  • CREATE INDEX marketplace_jobs_urgency_27fb9d4f ON public.marketplace_jobs USING btree (urgency)
  • CREATE UNIQUE INDEX marketplace_jobs_pkey ON public.marketplace_jobs USING btree (id)
  • CREATE INDEX marketplace_jobs_property_id_11cc73f0 ON public.marketplace_jobs USING btree (property_id)
  • CREATE INDEX marketplace_jobs_category_7ae5cdd5 ON public.marketplace_jobs USING btree (category)
  • CREATE INDEX marketplace_bid_dea_1fd48c_idx ON public.marketplace_jobs USING btree (bid_deadline)
  • CREATE INDEX marketplace_urgency_3f113d_idx ON public.marketplace_jobs USING btree (urgency, posted_at)
  • CREATE INDEX marketplace_status_d441ce_idx ON public.marketplace_jobs USING btree (status, category)
  • CREATE INDEX marketplace_jobs_status_6f2176bf_like ON public.marketplace_jobs USING btree (status varchar_pattern_ops)
  • CREATE UNIQUE INDEX marketplace_jobs_work_order_id_key ON public.marketplace_jobs USING btree (work_order_id)
  • CREATE INDEX marketplace_jobs_status_6f2176bf ON public.marketplace_jobs USING btree (status)
  • CREATE INDEX marketplace_jobs_category_7ae5cdd5_like ON public.marketplace_jobs USING btree (category varchar_pattern_ops)

Sample Data (3 of 20 rows)

idwork_order_idproperty_idunit_idtitledescriptioncategoryurgencystatusbudget_minbudget_maxai_scope_summaryrequirementsestimated_hoursphotosbid_deadlineawarded_vendor_idawarded_bid_idposted_atcreated_atupdated_at
157350e8fa-b05a-4578-90fb-7f498e00c9995d0567c4-d757-46eb-9ee8-98f0a2a5c68e2875b840-e4fc-4554-8b16-4084a1c6ac45HVAC System Not Cooling - EmergencyTenant reports AC unit blowing warm air. Temperature in unit reached 92ยฐF. Compr...hvacurgentawarded2571.375142.75["EPA 608 certification required", "HVAC license required", "Must handle refrigerants properly"]8.0[]2026-04-08T17:07:45.548757+02:00c9b41dbc-4b52-4e0d-9a9d-e9846a5a3dad242026-03-31T17:07:45.549181+02:002026-03-31T17:07:45.549192+02:002026-03-31T17:07:45.549196+02:00
16e60da85e-33fa-4085-8050-2a1120ce3287b8ed6ee7-a7bf-454b-bb94-a7679b25f8e2ba33008c-4501-4ca9-8a3f-63eb94456fefBurst Pipe Under Kitchen SinkActive water leak from corroded copper pipe fitting. Water damage to cabinet bas...plumbingurgentawarded1247.352494.7["Licensed plumber required", "Must carry plumbing liability insurance"]6.0[]2026-04-03T17:07:45.57416+02:006cf42ad2-5a73-4b81-8cf0-ddcfa0d02c25262026-03-31T17:07:45.574414+02:002026-03-31T17:07:45.574418+02:002026-03-31T17:07:45.57442+02:00
176613e7a7-ac83-467d-8e97-d787745caf78821af994-2185-4eb9-b8b2-31b72fb5fd72aa809956-48fe-4e21-acbc-e4a1b72b8d1cBroken Front Door Lock - Security IssueDeadbolt mechanism jammed. Tenant cannot secure unit. Temporary chain lock insta...generalstandardopen144.73289.46["General contractor license preferred", "Must carry liability insurance", "Clean work area upon com3.0[]2026-04-04T17:07:45.590871+02:00NULLNULL2026-03-31T17:07:45.59114+02:002026-03-31T17:07:45.591146+02:002026-03-31T17:07:45.591149+02:00
showing_feedback
19 rows 9 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 showing_id uuid NO ๐Ÿ”— โ†’ showing.id
3 rating int4 NO
4 liked jsonb NO '[]'::jsonb
5 disliked jsonb NO '[]'::jsonb
6 comments text NO ''::text
7 price_perception varchar(10) NO 'fair'::character varying
8 ai_themes jsonb NO '[]'::jsonb
9 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX showing_feedback_pkey ON public.showing_feedback USING btree (id)

Sample Data (3 of 19 rows)

idshowing_idratinglikeddislikedcommentsprice_perceptionai_themescreated_at
35632369-cebd-40f3-a131-69673551b3a9e36c7318-1def-4cf4-ab44-66baabb04a1f1["bathroom fixtures", "in-unit laundry", "rooftop access"][]Perfect for my needs โ€” very interested.fair[{"item": "natural light", "sentiment": "positive"}, {"item": "noise", "sentiment": "negative"}, {"i2026-03-29T20:48:33.537965+02:00
03ab92a9-a55d-4fb5-80af-4b91b85630d1da3e004a-3ce2-49ef-a020-9111f29810b51["natural light", "in-unit laundry"][]I had concerns about the street noise.fair[{"item": "storage", "sentiment": "negative"}, {"item": "space", "sentiment": "positive"}, {"item": 2026-03-29T20:48:33.537965+02:00
73a9786b-c9c9-44e2-b52c-bf97eb1211d4531ddfee-7056-41bc-97a0-7e41c663afce5["in-unit laundry"]["no parking included"]Nice unit but the bathroom needs updating.fair[{"item": "space", "sentiment": "positive"}, {"item": "parking", "sentiment": "negative"}]2026-03-29T20:48:33.537965+02:00
lease_signature_request
18 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 lease_id uuid NO ๐Ÿ”— โ†’ generated_lease.id
3 signer_email varchar(254) NO
4 signer_name varchar(200) NO ''::character varying
5 signer_role varchar(30) NO
6 token uuid NO gen_random_uuid()
7 signed_at timestamptz YES
8 signature_url varchar(500) NO ''::character varying
9 ip_address inet YES
10 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX lease_signature_request_pkey ON public.lease_signature_request USING btree (id)
  • CREATE UNIQUE INDEX lease_signature_request_token_key ON public.lease_signature_request USING btree (token)
  • CREATE INDEX idx_lease_sig_token ON public.lease_signature_request USING btree (token)

Sample Data (3 of 18 rows)

idlease_idsigner_emailsigner_namesigner_roletokensigned_atsignature_urlip_addresscreated_at
33dc2554-6528-46a7-ae5e-a1b5631465cb33f45115-8b91-4cc5-906d-03cb9e6377b0jordan.ellis@example.comJordan Ellistenantdb7be734-a245-487b-bf60-3bb9a1c9b6cd2026-02-03T23:08:39.623604+01:00https://signatures.example.com/f79a8aa3-ad2a-471f-ae0b-f0fb6a00db60.pngNULL2026-03-29T20:08:39.623981+02:00
73c930a2-bfc2-4c08-bb4a-87a90562533233f45115-8b91-4cc5-906d-03cb9e6377b0manager@unitcycle.comProperty Managerlandlorddf2edf45-1826-4273-a54a-51f5f60408812026-02-04T19:08:39.623604+01:00https://signatures.example.com/17aa6548-7b1f-4f74-934e-4d59a9fd1144.pngNULL2026-03-29T20:08:39.625494+02:00
af54995c-3b18-404d-96f9-a6507fcdc5abc2c2adb1-1088-4e13-b8b1-939f54df5655sofia.reyes@example.comSofia Reyestenantd0874a4d-bdc6-40fc-ac26-ff4f446005f72026-02-23T19:08:39.630746+01:00https://signatures.example.com/15af7564-6312-4709-8e85-7825c6dbce75.pngNULL2026-03-29T20:08:39.630989+02:00
exception_types
17 rows 15 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 code varchar(50) NO
3 name varchar(100) NO
4 description text NO
5 severity varchar(20) NO
6 requires_manual_review bool NO
7 auto_resolvable bool NO
8 resolution_sla_hours int4 NO
9 assigned_team varchar(100) NO
10 notification_template text NO
11 occurrence_count int4 NO
12 avg_resolution_time_hours float8 NO
13 is_active bool NO
14 created_at timestamptz NO
15 updated_at timestamptz NO

Indexes

  • CREATE INDEX exception_types_code_41345618_like ON public.exception_types USING btree (code varchar_pattern_ops)
  • CREATE UNIQUE INDEX exception_types_pkey ON public.exception_types USING btree (id)
  • CREATE UNIQUE INDEX exception_types_code_key ON public.exception_types USING btree (code)

Sample Data (3 of 17 rows)

idcodenamedescriptionseverityrequires_manual_reviewauto_resolvableresolution_sla_hoursassigned_teamnotification_templateoccurrence_countavg_resolution_time_hoursis_activecreated_atupdated_at
16account_statementAccount StatementDocument is an account statement or summary, not an invoice. These documents sho...highTrueFalse8accounting2650True2025-11-13T13:28:49.87001+01:002025-11-13T13:28:49.871721+01:00
7low_confidenceLow Confidence ScoreOCR/Document AI confidence score is below thresholdmediumTrueFalse24Data Entry820True2025-10-03T10:40:27.841514+02:002025-10-03T10:42:14.266133+02:00
15remittance_adviceRemittance Advice DetectedDocument is a remittance advice or payment notification, not an invoice. These d...highTrueFalse4accounting2410True2025-11-13T13:28:49.859666+01:002025-11-13T13:28:49.859731+01:00
configurations
13 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 key varchar(100) NO
3 value text NO
4 category varchar(20) NO
5 value_type varchar(10) NO
6 description text YES
7 is_active bool NO
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 updated_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX configurations_pkey ON public.configurations USING btree (id)
  • CREATE INDEX configurati_categor_e5efde_idx ON public.configurations USING btree (category)
  • CREATE UNIQUE INDEX configurations_key_key ON public.configurations USING btree (key)
  • CREATE INDEX configurati_key_51176b_idx ON public.configurations USING btree (key)
  • CREATE INDEX configurati_is_acti_330b07_idx ON public.configurations USING btree (is_active)
  • CREATE INDEX configurations_updated_by_id_e368f54e ON public.configurations USING btree (updated_by_id)
  • CREATE INDEX configurations_key_126904e5_like ON public.configurations USING btree (key varchar_pattern_ops)

Sample Data (3 of 13 rows)

idkeyvaluecategoryvalue_typedescriptionis_activecreated_atupdated_atupdated_by_id
6feature_exception_report_enabledTruecommunicationstringTrue2025-10-08T14:11:34.60894+02:002025-10-14T11:11:04.295879+02:0054
7feature_exception_report_morning_enabledTruecommunicationstringTrue2025-10-08T14:11:34.812255+02:002025-10-14T11:11:04.660673+02:0054
8feature_exception_report_afternoon_enabledFalsecommunicationstringTrue2025-10-08T14:11:35.015299+02:002025-10-14T11:11:05.793993+02:0054
audit_categories
12 rows 6 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 category_type varchar(20) NO
3 tenant_count int4 NO
4 validation_issues_count int4 NO
5 processed_at timestamptz NO
6 audit_id uuid NO ๐Ÿ”— โ†’ monthly_posting_audits.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX audit_categories_pkey ON public.audit_categories USING btree (id)
  • CREATE INDEX audit_categories_audit_id_8190bea0 ON public.audit_categories USING btree (audit_id)
  • CREATE UNIQUE INDEX audit_categories_audit_id_category_type_51fe6a29_uniq ON public.audit_categories USING btree (audit_id, category_type)

Sample Data (3 of 12 rows)

idcategory_typetenant_countvalidation_issues_countprocessed_ataudit_id
1move_in002025-11-20T11:01:43.615047+01:006459ad79-3454-4c8b-9bfa-bbdb6e8172a1
2move_out002025-11-20T11:01:43.638622+01:006459ad79-3454-4c8b-9bfa-bbdb6e8172a1
3renewal002025-11-20T11:01:43.650498+01:006459ad79-3454-4c8b-9bfa-bbdb6e8172a1
law_monitor_lawchangealert
12 rows 16 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 law_type varchar(20) NO
3 title varchar(500) NO
4 summary text NO
5 severity varchar(20) NO
6 status varchar(20) NO
7 effective_date date NO
8 published_date date NO
9 bgbl_reference varchar(100) NO
10 ris_url varchar(500) NO
11 required_actions jsonb NO
12 assigned_to varchar(200) NO
13 acknowledged_at timestamptz YES
14 resolved_at timestamptz YES
15 created_at timestamptz NO
16 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX law_monitor_lawchangealert_pkey ON public.law_monitor_lawchangealert USING btree (id)

Sample Data (3 of 12 rows)

idlaw_typetitlesummaryseveritystatuseffective_datepublished_datebgbl_referenceris_urlrequired_actionsassigned_toacknowledged_atresolved_atcreated_atupdated_at
7716639c-5cee-4c49-9792-02a0a2a77ea9mrg5. MietRร„G 2026 - MietrechtsรคnderungsgesetzUmfassende Reform des Mietrechtsgesetzes mit Auswirkungen auf Befristungsregelun...criticalnew2026-07-012026-03-15BGBl. I Nr. 23/2026https://www.ris.bka.gv.at/eli/bgbl/I/2026/23["Alle bestehenden Mietvertr\u00e4ge auf neue Obergrenzen pr\u00fcfen", "Betriebskostenabrechnung auNULLNULL2026-03-19T15:29:16.80253+01:002026-03-19T15:29:16.802549+01:00
9806074a-6f08-4a74-a481-41e0ded41e11wegWEG-Novelle 2026 - EigentรผmerversammlungenNeue Regelungen fรผr Eigentรผmerversammlungen ermรถglichen hybride und vollstรคndig ...highacknowledged2026-09-012026-02-28BGBl. I Nr. 18/2026https://www.ris.bka.gv.at/eli/bgbl/I/2026/18["Hybride Versammlungsinfrastruktur aufbauen", "Neue Beschlussfassungsquoren implementieren"]Dr. Mรผller2026-03-14T15:29:16.814422+01:00NULL2026-03-19T15:29:16.814698+01:002026-03-19T15:29:16.814735+01:00
0b8ac035-74e4-43f0-a126-6aeb33f8f31frichtwertgRichtwertanpassung Wien 2026Jรคhrliche Anpassung der Richtwerte fรผr Wien gemรครŸ Richtwertgesetz. Der neue Rich...highin_review2026-04-012026-02-15BGBl. II Nr. 45/2026https://www.ris.bka.gv.at/eli/bgbl/II/2026/45["Alle Richtwertmieten in Wien aktualisieren", "Mietzinsanpassungen kalkulieren und durchf\u00fchrenMag. Fischer2026-03-09T15:29:16.824701+01:00NULL2026-03-19T15:29:16.825173+01:002026-03-19T15:29:16.825179+01:00
legal_overrides_propertylegaloverride
12 rows 15 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 override_type varchar(20) NO
3 description varchar(500) NO
4 standard_value numeric NO
5 override_value numeric NO
6 unit varchar(20) NO
7 effective_date date NO
8 expiry_date date YES
9 legal_basis varchar(255) NO
10 approved_by varchar(200) NO
11 status varchar(20) NO
12 notes text NO
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX legal_overrides_propertylegaloverride_property_id_766ce600 ON public.legal_overrides_propertylegaloverride USING btree (property_id)
  • CREATE UNIQUE INDEX legal_overrides_propertylegaloverride_pkey ON public.legal_overrides_propertylegaloverride USING btree (id)

Sample Data (3 of 12 rows)

idoverride_typedescriptionstandard_valueoverride_valueuniteffective_dateexpiry_datelegal_basisapproved_bystatusnotescreated_atupdated_atproperty_id
1c396229-1e42-47f5-9f94-9c4fb256ed97richtwertRichtwert reduction due to building age and condition (pre-1945 Altbau)6.155.2EUR/mยฒ2025-03-192027-03-19ยง16 Abs 2 MRG โ€” Richtwertminderung bei SubstandardausstattungMag. Anna HuberactiveApproved after inspection confirmed substandard heating system.2026-03-19T15:29:16.019939+01:002026-03-19T15:29:16.019951+01:009220b4cf-6966-4b42-8534-dc802039b024
5fe3fe1a-c027-4a7e-ac02-875f7a7930e7richtwertRichtwert increase for premium renovated penthouse units6.158.9EUR/mยฒ2025-09-202027-03-19ยง16 Abs 3 MRG โ€” Zuschlag fรผr besondere AusstattungDr. Thomas WeberactivePremium renovation including roof terrace, elevator, and modern kitchen.2026-03-19T15:29:16.023985+01:002026-03-19T15:29:16.023996+01:0035b664ba-bb75-4318-ae24-07b47a445345
0ba02eea-603e-41bd-90d3-5f16c3df0072richtwertRichtwert adjustment for noise pollution near highway6.155.5EUR/mยฒ2025-12-19NULLยง16 Abs 2 MRG โ€” Lรคrmbelastung als MinderungsgrundMag. Klaus BergerpendingEnvironmental assessment pending. Noise measurements completed.2026-03-19T15:29:16.026039+01:002026-03-19T15:29:16.026047+01:00ce83695e-0d41-4aae-8a87-ae4a2eab470e
syndication_listing
12 rows 21 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid YES
3 property_id uuid YES
4 title varchar(300) NO
5 description text NO ''::text
6 rent_asking numeric NO
7 photos jsonb NO '[]'::jsonb
8 platforms jsonb NO '[]'::jsonb
9 seo_score int4 NO 0
10 status varchar(20) NO 'draft'::character varying
11 is_stale bool NO false
12 days_listed int4 NO 0
13 ai_optimized_title varchar(300) NO ''::character varying
14 ai_optimized_description text NO ''::text
15 unit_number varchar(50) NO ''::character varying
16 property_name varchar(200) NO ''::character varying
17 bedrooms int4 NO 1
18 bathrooms int4 NO 1
19 sqft int4 NO 0
20 created_at timestamptz NO now()
21 updated_at timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX syndication_listing_pkey ON public.syndication_listing USING btree (id)

Sample Data (3 of 12 rows)

idunit_idproperty_idtitledescriptionrent_askingphotosplatformsseo_scorestatusis_staledays_listedai_optimized_titleai_optimized_descriptionunit_numberproperty_namebedroomsbathroomssqftcreated_atupdated_at
ed9d0fba-ba25-491b-a80c-73ad6636ce71NULLNULL2BR/2BA at Maple Ridge Apartments โ€” Unit 204ASpacious 2-bedroom, 2-bathroom unit spanning 1050 sq ft in a well-maintained bui...1875.0["/media/syndication/204a_bathroom.jpg", "/media/syndication/204a_bedroom.jpg"][{"url": "https://www.realtor.com/rentals/details/ed9d0fba-ba25-491b-a80c-73ad6636ce71", "name": "re82activeFalse8Stunning 2BR/2BA โ€” Modern Finishes, Prime LocationDiscover effortless comfort in this 2-bed, 2-bath home built for discerning rent...204AMaple Ridge Apartments2210502026-03-29T20:59:06.829638+02:002026-03-29T20:59:06.829653+02:00
905a10d3-5c98-4561-93a0-84221f6bf721NULLNULL1BR/1BA at The Meridian โ€” Unit 501Bright and airy 1-bedroom, 1-bathroom apartment with 720 sq ft of thoughtfully d...1425.0["/media/syndication/501_bedroom.jpg", "/media/syndication/501_living_room.jpg", "/media/syndication[{"url": "https://www.apartments.com/listing/905a10d3-5c98-4561-93a0-84221f6bf721", "name": "apartme75activeFalse12Spacious 1-Bedroom Retreat โ€” Walk-In Closet, In-Unit LaundryDiscover effortless comfort in this 1-bed, 1-bath home built for discerning rent...501The Meridian117202026-03-29T20:59:06.831483+02:002026-03-29T20:59:06.831493+02:00
1965125f-9225-4b74-bb80-7259555dc12dNULLNULL3BR/2BA at Oakwood Commons โ€” Unit 3BBright and airy 3-bedroom, 2-bathroom apartment with 1380 sq ft of thoughtfully ...2350.0["/media/syndication/3b_dining_room.jpg", "/media/syndication/3b_kitchen.jpg"][{"url": "https://www.zillow.com/rental/1965125f-9225-4b74-bb80-7259555dc12d", "name": "zillow", "st91activeFalse5Sun-Filled 3BR/2BA โ€” Steps to Dining & TransitWelcome home to this beautifully maintained 3-bedroom, 2-bathroom residence. The...3BOakwood Commons3213802026-03-29T20:59:06.832709+02:002026-03-29T20:59:06.832716+02:00
turnover_case
12 rows 24 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 tenant_id uuid NO
3 unit_id uuid NO
4 property_id uuid NO
5 lease_id uuid NO
6 tenant_name varchar(200) YES ''::character varying
7 property_name varchar(200) YES ''::character varying
8 unit_number varchar(50) YES ''::character varying
9 stage varchar(20) YES 'notice'::character varying
10 notice_date date YES
11 move_out_date date YES
12 inspection_date date YES
13 make_ready_complete_date date YES
14 listed_date date YES
15 leased_date date YES
16 deposit_held numeric YES 0
17 total_deductions numeric YES 0
18 deposit_refund numeric YES 0
19 make_ready_cost numeric YES 0
20 inspection_work_order_id uuid YES
21 assigned_to varchar(100) YES ''::character varying
22 notes text YES ''::text
23 created_at timestamptz YES now()
24 updated_at timestamptz YES now()

Indexes

  • CREATE INDEX idx_turnover_case_stage ON public.turnover_case USING btree (stage)
  • CREATE UNIQUE INDEX turnover_case_pkey ON public.turnover_case USING btree (id)
  • CREATE INDEX idx_turnover_case_tenant ON public.turnover_case USING btree (tenant_id)
  • CREATE INDEX idx_turnover_case_unit ON public.turnover_case USING btree (unit_id)
  • CREATE INDEX idx_turnover_case_property ON public.turnover_case USING btree (property_id)
  • CREATE INDEX idx_turnover_case_created ON public.turnover_case USING btree (created_at DESC)

Check Constraints

  • turnover_case_stage_check: ((stage)::text = ANY ((ARRAY['notice'::character varying, 'inspect'::character varying, 'make_ready'::character varying, 'listed'::character varying, 'leased'::character varying])::text[]))

Sample Data (3 of 12 rows)

idtenant_idunit_idproperty_idlease_idtenant_nameproperty_nameunit_numberstagenotice_datemove_out_dateinspection_datemake_ready_complete_datelisted_dateleased_datedeposit_heldtotal_deductionsdeposit_refundmake_ready_costinspection_work_order_idassigned_tonotescreated_atupdated_at
700d446d-efc4-4be3-8435-edb12f238783e3e248ee-c700-40c4-ad0c-bce34241a1ebefd94b13-072d-4251-a20f-4ad83f15ac45a03e48a1-5e56-4c8b-b817-cbe072bb6056cceae3bd-19e2-4b1d-9252-1520e039f76fGiovanni FuentesAshford Farms Apartments1605Aleased2025-12-292026-01-282026-01-262026-02-162026-02-192026-02-261513.0387.01126.0398.0NULLProperty Manager2026-03-29T18:05:14.513479+02:002026-03-29T18:05:14.518911+02:00
6074b963-8464-492d-9425-888c9eb331f4d0140aeb-f7eb-4ca4-9c7e-23707396546ed853444d-c373-478e-a1d7-2793e576f2c6ecf17e6e-04b6-48ef-a23e-1ab1b8e8869075af2c5d-da27-4b87-a46d-055930091091Latasha WeatherspoonHeritage Commons Apartments1024inspect2026-03-012026-03-312026-03-29NULLNULLNULL1440.0575.0865.0627.0NULLProperty Manager2026-03-29T18:05:14.310355+02:002026-03-29T18:05:14.317743+02:00
6aace4b5-df08-4a78-acf6-68f4bd6f8196f41345e0-5192-4c97-afcf-cb1631f10b4eaeb35a61-316f-4b44-94e1-5fb8a87af7c2ef4f1816-561d-4f47-a5ef-efc80771f2d2747ce437-b8d1-4903-86c2-10050d84383cTenant 6015GWillowbrook Square Phase 16015Gmake_ready2026-02-122026-03-142026-03-122026-03-24NULLNULL2012.0343.01669.0666.0NULLProperty Manager2026-03-29T18:05:14.322783+02:002026-03-29T18:05:14.329975+02:00
lease_abstraction
10 rows 19 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid YES ๐Ÿ”— โ†’ properties.id
4 pdf_url varchar(500) NO ''::character varying
5 extracted_tenant_name varchar(200) NO ''::character varying
6 extracted_start_date date YES
7 extracted_end_date date YES
8 extracted_monthly_rent numeric YES
9 extracted_deposit numeric YES
10 extracted_pet_policy varchar(100) NO ''::character varying
11 extracted_parking varchar(100) NO ''::character varying
12 extracted_clauses jsonb NO '[]'::jsonb
13 non_standard_clauses jsonb NO '[]'::jsonb
14 status varchar(20) NO 'pending'::character varying
15 confirmed_at timestamptz YES
16 applied_at timestamptz YES
17 created_at timestamptz NO now()
18 updated_at timestamptz NO now()
19 source_lease_id uuid YES ๐Ÿ”— โ†’ generated_lease.id

Foreign Keys

Indexes

  • CREATE INDEX idx_lease_abstraction_status ON public.lease_abstraction USING btree (status)
  • CREATE INDEX idx_lease_abstraction_unit_id ON public.lease_abstraction USING btree (unit_id)
  • CREATE INDEX idx_lease_abstraction_source_lease ON public.lease_abstraction USING btree (source_lease_id)
  • CREATE INDEX idx_lease_abstraction_created_at ON public.lease_abstraction USING btree (created_at)
  • CREATE INDEX idx_lease_abstraction_property_id ON public.lease_abstraction USING btree (property_id)
  • CREATE UNIQUE INDEX lease_abstraction_pkey ON public.lease_abstraction USING btree (id)

Sample Data (3 of 10 rows)

idunit_idproperty_idpdf_urlextracted_tenant_nameextracted_start_dateextracted_end_dateextracted_monthly_rentextracted_depositextracted_pet_policyextracted_parkingextracted_clausesnon_standard_clausesstatusconfirmed_atapplied_atcreated_atupdated_atsource_lease_id
40dd79a5-d0a1-4567-b97b-6e637dd1c6f8f988168e-99c3-4270-a92f-f7d06cc33a934853949d-b83a-43a8-877c-57089b0d61bf/media/leases/lease_abstraction_40dd79a5-d0a1-4567-b97b-6e637dd1c6f8.pdfBrandon Fitzgerald2028-08-292029-08-292906.065812.11Cats only, $250 pet deposit required1 parking space, $75/month additional space available[{"text": "Tenant agrees to pay the monthly rent of 2739.24 on or before the 1st day of each calenda[{"text": "If Tenant terminates the lease before the end of the lease term, Tenant shall pay an earlextractedNULLNULL2026-04-02T16:55:55.932078+02:002026-04-02T16:55:55.94947+02:0013b2dd81-b07a-4f7a-b15e-90af090e925a
f5823296-94e9-4a91-abd1-5d22d0d87216b2628924-3151-4f31-a629-bf399f1182b6821af994-2185-4eb9-b8b2-31b72fb5fd72/media/leases/lease_abstraction_f5823296-94e9-4a91-abd1-5d22d0d87216.pdfMaya Patel2026-05-122027-05-121334.962669.92No pets allowed1 assigned parking space included[{"text": "Tenant agrees to pay the monthly rent of 1334.96 on or before the 1st day of each calenda[{"text": "If Tenant terminates the lease before the end of the lease term, Tenant shall pay an earlapplied2026-04-02T16:55:55.952179+02:002026-04-02T16:55:55.952187+02:002026-04-02T16:55:55.952287+02:002026-04-02T16:55:55.967289+02:0059983e9d-a4fd-4afe-974b-ebed17cbf9b3
ca1f7641-3e68-4405-b320-878529b0b45cf988168e-99c3-4270-a92f-f7d06cc33a934853949d-b83a-43a8-877c-57089b0d61bf/media/leases/lease_abstraction_ca1f7641-3e68-4405-b320-878529b0b45c.pdfBrandon Fitzgerald2030-08-292031-08-293083.046166.06Cats only, $250 pet deposit required1 covered parking space included[{"text": "Tenant agrees to pay the monthly rent of 2739.24 on or before the 1st day of each calenda[{"text": "If Tenant terminates the lease before the end of the lease term, Tenant shall pay an earlconfirmed2026-04-02T16:55:55.969892+02:00NULL2026-04-02T16:55:55.969992+02:002026-04-02T16:55:55.985785+02:0057251eba-1ee2-4b80-b800-c3080161c550
moveout_photos_moveoutinspection
10 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 unit_number varchar(50) NO
3 tenant_name varchar(255) NO
4 inspection_date date NO
5 status varchar(20) NO
6 deposit_held numeric NO
7 total_deductions numeric NO
8 refund_amount numeric NO
9 letter_generated bool NO
10 letter_generated_at timestamptz YES
11 notes text NO
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 property_id uuid NO ๐Ÿ”— โ†’ properties.id
15 tenant_id uuid YES ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX moveout_pho_inspect_b1374a_idx ON public.moveout_photos_moveoutinspection USING btree (inspection_date)
  • CREATE INDEX moveout_pho_status_6511d6_idx ON public.moveout_photos_moveoutinspection USING btree (status)
  • CREATE UNIQUE INDEX moveout_photos_moveoutinspection_pkey ON public.moveout_photos_moveoutinspection USING btree (id)
  • CREATE INDEX moveout_photos_moveoutinspection_tenant_id_39db6771 ON public.moveout_photos_moveoutinspection USING btree (tenant_id)
  • CREATE INDEX moveout_photos_moveoutinspection_property_id_2c799e4d ON public.moveout_photos_moveoutinspection USING btree (property_id)

Sample Data (3 of 10 rows)

idunit_numbertenant_nameinspection_datestatusdeposit_heldtotal_deductionsrefund_amountletter_generatedletter_generated_atnotescreated_atupdated_atproperty_idtenant_id
4ea7a7eb-62a0-4412-8ad0-9e0a1e275c143BMarcus Webb2026-03-24ai_analyzed2400.01150.01250.0FalseNULLSeeded demo inspection for Marcus Webb.2026-03-29T19:00:40.22193+02:002026-03-29T19:00:40.221943+02:00e6c9b610-9d90-4837-8e28-9580f126a8d15d1aae1f-c7f5-4e24-b128-7c72b6cf2cb3
84e938e7-6b81-428e-99ec-2690bcc7ffec1APriya Sharma2026-03-17reviewed1800.0660.01140.0FalseNULLSeeded demo inspection for Priya Sharma.2026-03-29T19:00:40.235651+02:002026-03-29T19:00:40.235657+02:008b8ea261-3e4c-46e2-bfd1-407f3e571414088456e9-6b4a-4104-9320-6f021031b5f5
2d0664aa-1f2c-40d1-ad05-fa0a096152975CDerek Fontaine2026-03-26ai_analyzed3200.01445.01755.0FalseNULLSeeded demo inspection for Derek Fontaine.2026-03-29T19:00:40.242842+02:002026-03-29T19:00:40.242852+02:009220b4cf-6966-4b42-8534-dc802039b024d851f230-cea1-49f2-bb7d-bdef039a451d
rbac_role
10 rows 9 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(50) NO
3 display_name varchar(100) NO
4 description text NO
5 permissions jsonb NO
6 is_active bool NO
7 created_at timestamptz NO
8 updated_at timestamptz NO
9 category varchar(50) NO

Indexes

  • CREATE UNIQUE INDEX rbac_role_pkey ON public.rbac_role USING btree (id)
  • CREATE UNIQUE INDEX rbac_role_name_key ON public.rbac_role USING btree (name)
  • CREATE INDEX rbac_role_name_986cbc46_like ON public.rbac_role USING btree (name varchar_pattern_ops)

Sample Data (3 of 10 rows)

idnamedisplay_namedescriptionpermissionsis_activecreated_atupdated_atcategory
e3f321fb-79bf-44dd-9384-133b49a08e2dadminSystem AdministratorFull system access with all administrative privileges{}True2025-09-21T17:30:09.179623+02:002025-09-21T17:30:09.180623+02:00administrative
9e38a094-02e7-48d8-9111-b1b61d3144b9managerDepartment ManagerDepartmental management with approval privileges{}True2025-09-21T17:30:09.181622+02:002025-09-21T17:30:09.182623+02:00administrative
3dcb54d3-4d02-440a-9e26-b2d76c0262baaccountantAccountantFinancial operations and invoice processing{}True2025-09-21T17:30:09.183623+02:002025-09-21T17:30:09.183623+02:00administrative
staging_project
10 rows 9 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 style varchar(30) NO 'modern'::character varying
5 status varchar(20) NO 'draft'::character varying
6 listing_headline text NO ''::text
7 listing_description text NO ''::text
8 created_at timestamptz NO now()
9 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX staging_project_pkey ON public.staging_project USING btree (id)
  • CREATE INDEX staging_project_status_idx ON public.staging_project USING btree (status)
  • CREATE INDEX idx_staging_project_unit ON public.staging_project USING btree (unit_id)
  • CREATE INDEX idx_staging_project_status ON public.staging_project USING btree (status)
  • CREATE INDEX staging_project_property_idx ON public.staging_project USING btree (property_id)
  • CREATE INDEX staging_project_unit_idx ON public.staging_project USING btree (unit_id)
  • CREATE INDEX staging_project_style_idx ON public.staging_project USING btree (style)

Sample Data (3 of 10 rows)

idunit_idproperty_idstylestatuslisting_headlinelisting_descriptioncreated_atupdated_at
982465b7-eaa2-40be-8b7c-4f1bb165d3c6f2bb99b6-0a8a-4c47-94f2-d782076fec72ce83695e-0d41-4aae-8a87-ae4a2eab470eluxuryprocessing2026-03-29T20:08:30.175589+02:002026-03-29T20:08:30.175607+02:00
22b6026c-0cba-43ca-a627-3a0a85b1fafc63247778-5169-4fe7-baaa-435d45f9d2edfdd9c4cd-5368-444a-9d4e-bfd8f63f2a56moderndraft2026-03-29T20:08:30.186508+02:002026-03-29T20:08:30.186524+02:00
b23913ac-2b12-4e74-944c-88c6d478f87aabfbbf0d-07de-45e2-b632-f798dc2a6a614fead15b-2883-4ec9-81dc-fd1e40265c75scandinaviancompletedScandinavian Simplicity Meets Everyday WarmthLight, warm, and beautifully understated โ€” this Scandinavian-inspired unit bring...2026-03-29T20:08:30.192711+02:002026-03-29T20:08:30.192722+02:00
portfolio_chat_chatsession
9 rows 6 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 title varchar(255) NO
3 user_name varchar(255) NO
4 created_at timestamptz NO
5 updated_at timestamptz NO
6 is_active bool NO

Indexes

  • CREATE INDEX portfolio_c_is_acti_0ea268_idx ON public.portfolio_chat_chatsession USING btree (is_active)
  • CREATE INDEX portfolio_c_updated_c78f84_idx ON public.portfolio_chat_chatsession USING btree (updated_at DESC)
  • CREATE UNIQUE INDEX portfolio_chat_chatsession_pkey ON public.portfolio_chat_chatsession USING btree (id)

Sample Data (3 of 9 rows)

idtitleuser_namecreated_atupdated_atis_active
84c605f4-e936-4706-bf06-f6421bec8825Tenant Balance ReviewProperty Manager2026-03-29T19:02:19.624857+02:002026-03-29T19:02:19.624891+02:00True
249a7ad1-d484-4360-bc64-6553aab6d42dVacancy AnalysisProperty Manager2026-03-29T19:02:19.637705+02:002026-03-29T19:02:19.637713+02:00True
b3fd9ace-f8b9-4906-a621-36dd1ef31346Monthly Revenue ReportProperty Manager2026-03-29T19:02:19.64536+02:002026-03-29T19:02:19.645367+02:00True
onboarding_checklist
8 rows 16 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 tenant_name varchar(200) NO
5 tenant_email varchar(254) NO ''::character varying
6 unit_number varchar(50) NO ''::character varying
7 lease_start_date date YES
8 status varchar(20) NO 'active'::character varying
9 completion_pct int4 NO 0
10 has_pet bool NO false
11 has_parking bool NO false
12 has_storage bool NO false
13 stalled_at timestamptz YES
14 completed_at timestamptz YES
15 created_at timestamptz NO now()
16 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX onboarding_checklist_property_idx ON public.onboarding_checklist USING btree (property_id)
  • CREATE UNIQUE INDEX onboarding_checklist_pkey ON public.onboarding_checklist USING btree (id)
  • CREATE INDEX onboarding_checklist_status_idx ON public.onboarding_checklist USING btree (status)
  • CREATE INDEX onboarding_checklist_unit_idx ON public.onboarding_checklist USING btree (unit_id)
  • CREATE INDEX onboarding_checklist_lease_start_idx ON public.onboarding_checklist USING btree (lease_start_date)
  • CREATE INDEX idx_onboarding_checklist_status ON public.onboarding_checklist USING btree (status)

Sample Data (3 of 8 rows)

idunit_idproperty_idtenant_nametenant_emailunit_numberlease_start_datestatuscompletion_pcthas_pethas_parkinghas_storagestalled_atcompleted_atcreated_atupdated_at
685748b0-a962-44e1-b4f3-44bfb393e2bfadb00c54-9173-47c0-b7fd-375cfd412da1ce83695e-0d41-4aae-8a87-ae4a2eab470eAaliya Johnsonaaliya.johnson@example.com1036B2026-05-21active46FalseFalseTrueNULLNULL2026-03-29T20:08:41.071185+02:002026-03-29T20:08:41.071198+02:00
083f34a4-0073-4cf4-a7cc-ac715192c81fbeb5c477-b113-47d4-990b-3ae16cbc87e0fdd9c4cd-5368-444a-9d4e-bfd8f63f2a56Ben Carterben.carter@example.com0802026-04-26completed100FalseFalseFalseNULL2026-03-19T19:08:41.089554+01:002026-03-29T20:08:41.09+02:002026-03-29T20:08:41.090003+02:00
c3ae18d1-9d7a-4999-b30e-893c9ca3fa6550890016-ee44-434d-843e-84344479a17e2656a22f-14e6-47bc-b75f-d9fa9c65394dCarmen Diazcarmen.diaz@example.com37G2026-04-17active57TrueFalseFalseNULLNULL2026-03-29T20:08:41.104039+02:002026-03-29T20:08:41.10405+02:00
repeat_visit_alert
8 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 unit_id uuid YES
3 unit_number varchar(50) NO
4 property_name varchar(200) NO ''::character varying
5 vendor_name varchar(200) NO
6 category varchar(100) NO
7 first_visit_date date NO
8 repeat_visit_date date NO
9 days_between int4 NO 0
10 status varchar(20) NO 'open'::character varying
11 created_at timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX repeat_visit_alert_pkey ON public.repeat_visit_alert USING btree (id)

Sample Data (3 of 8 rows)

idunit_idunit_numberproperty_namevendor_namecategoryfirst_visit_daterepeat_visit_datedays_betweenstatuscreated_at
d445f00b-d589-4bff-9089-ca5420cc21caNULL3BRiverside ApartmentsMetro Pipe & Drainplumbing2026-02-122026-03-1733open2026-03-29T20:59:10.047823+02:00
8bd2d8a4-474a-44aa-b94a-98e1e72eb571NULL12AOakwood HeightsBudget Wiring Inc.electrical2026-01-282026-03-0940open2026-03-29T20:59:10.048671+02:00
cd522403-3adb-40a9-a4b5-cbc4b04e69a8NULL7CMaple Grove ComplexPrecision Climate Controlhvac2026-02-272026-03-2122open2026-03-29T20:59:10.049412+02:00
expense_categories
4 rows 7 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 description text NO
4 sort_order int4 NO
5 is_active bool NO
6 created_at timestamptz NO
7 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX expense_categories_name_key ON public.expense_categories USING btree (name)
  • CREATE INDEX expense_categories_name_94ec9b63_like ON public.expense_categories USING btree (name varchar_pattern_ops)
  • CREATE UNIQUE INDEX expense_categories_pkey ON public.expense_categories USING btree (id)

Check Constraints

  • expense_categories_sort_order_check: (sort_order >= 0)

Sample Data (3 of 4 rows)

idnamedescriptionsort_orderis_activecreated_atupdated_at
1ONGOING OPERATIONSRegular operational expenses for property management1True2025-09-21T17:31:54.872374+02:002025-09-21T17:31:54.873375+02:00
2MAJOR REPAIRS & RESERVESNon-recurring major repairs and capital reserves2True2025-09-21T17:31:54.876395+02:002025-09-21T17:31:54.876395+02:00
3REPLACEMENT EXPENSEReplacement of appliances, fixtures, and systems3True2025-09-21T17:31:54.8784+02:002025-09-21T17:31:54.8784+02:00
monthly_posting_audits
3 rows 24 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 audit_date date NO
3 move_in_period_start date NO
4 move_in_period_end date NO
5 move_out_period_start date NO
6 move_out_period_end date NO
7 renewal_period_start date NO
8 renewal_period_end date NO
9 mtm_move_in_start date NO
10 mtm_lease_expiration_end date NO
11 status varchar(20) NO
12 yardi_sync_status varchar(20) NO
13 yardi_sync_started_at timestamptz YES
14 yardi_sync_completed_at timestamptz YES
15 yardi_sync_error text YES
16 yardi_sync_task_id varchar(100) YES
17 created_at timestamptz NO
18 completed_at timestamptz YES
19 config_snapshot jsonb NO
20 excel_export_path varchar(500) YES
21 pdf_export_path varchar(500) YES
22 completed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
23 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
24 property_ref_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX monthly_posting_audits_created_by_id_1e579f5f ON public.monthly_posting_audits USING btree (created_by_id)
  • CREATE INDEX monthly_posting_audits_completed_by_id_97339739 ON public.monthly_posting_audits USING btree (completed_by_id)
  • CREATE INDEX monthly_posting_audits_property_ref_id_ee21f16f ON public.monthly_posting_audits USING btree (property_ref_id)
  • CREATE INDEX monthly_pos_audit_d_ebf8ec_idx ON public.monthly_posting_audits USING btree (audit_date)
  • CREATE UNIQUE INDEX monthly_posting_audits_pkey ON public.monthly_posting_audits USING btree (id)
  • CREATE INDEX monthly_pos_propert_1a74d4_idx ON public.monthly_posting_audits USING btree (property_ref_id, created_at DESC)
  • CREATE INDEX monthly_pos_status_cf408c_idx ON public.monthly_posting_audits USING btree (status)
  • CREATE INDEX monthly_pos_yardi_s_7562f2_idx ON public.monthly_posting_audits USING btree (yardi_sync_status)

Sample Data (3 of 3 rows)

idaudit_datemove_in_period_startmove_in_period_endmove_out_period_startmove_out_period_endrenewal_period_startrenewal_period_endmtm_move_in_startmtm_lease_expiration_endstatusyardi_sync_statusyardi_sync_started_atyardi_sync_completed_atyardi_sync_erroryardi_sync_task_idcreated_atcompleted_atconfig_snapshotexcel_export_pathpdf_export_pathcompleted_by_idcreated_by_idproperty_ref_id
6459ad79-3454-4c8b-9bfa-bbdb6e8172a12025-10-312025-10-012025-10-312025-10-012025-10-312025-10-012025-10-312025-05-042025-10-31in_progresscompleted2025-11-20T11:01:43.605598+01:002025-11-20T11:01:43.694541+01:00NULL634182f7-2ea7-42b3-a907-9be532b3c6412025-11-20T11:01:43.499544+01:00NULL{"monthly_posting_nsf_charge_amount": 50.0, "monthly_posting_posting_period_days": 45, "monthly_postNULLNULLNULL19220b4cf-6966-4b42-8534-dc802039b024
35d0a0d0-e3f1-4cee-a8c0-ac293fa69ea02025-09-302025-08-312025-09-302025-08-312025-09-302025-08-312025-09-302025-04-032025-09-30in_progresscompleted2025-11-27T13:55:22.269874+01:002025-11-27T13:55:22.418466+01:00NULLda6fbf6c-6717-4e9c-8774-a333a26b44bd2025-11-27T13:55:15.171004+01:00NULL{"monthly_posting_nsf_charge_amount": 50.0, "monthly_posting_posting_period_days": 45, "monthly_postNULLNULLNULL135b664ba-bb75-4318-ae24-07b47a445345
fbbc7ad8-c146-4dc4-93bf-09b68c93af042025-09-302025-08-312025-09-302025-08-312025-09-302025-08-312025-09-302025-04-032025-09-30in_progresscompleted2025-12-01T09:49:24.602867+01:002025-12-01T09:49:24.770891+01:00NULL5f1a6430-4f64-4d65-bce9-41edc969b7c62025-12-01T09:49:08.845752+01:00NULL{"monthly_posting_nsf_charge_amount": 50.0, "monthly_posting_posting_period_days": 45, "monthly_postNULLNULLNULL1ce83695e-0d41-4aae-8a87-ae4a2eab470e
maintenance_staff
2 rows 13 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 user_id int4 YES
3 employee_id varchar(50) NO
4 pin_hash varchar(255) NO
5 first_name varchar(100) NO
6 last_name varchar(100) NO
7 email varchar(254) YES
8 phone varchar(20) NO
9 specializations _varchar NO
10 avatar_url varchar(200) YES
11 is_active bool NO
12 created_at timestamptz NO
13 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX maintenance_staff_employee_id_key ON public.maintenance_staff USING btree (employee_id)
  • CREATE INDEX maintenance_staff_employee_id_78dc09dc_like ON public.maintenance_staff USING btree (employee_id varchar_pattern_ops)
  • CREATE UNIQUE INDEX maintenance_staff_pkey ON public.maintenance_staff USING btree (id)

Sample Data (2 of 2 rows)

iduser_idemployee_idpin_hashfirst_namelast_nameemailphonespecializationsavatar_urlis_activecreated_atupdated_at
1NULLTECH001pbkdf2_sha256$1200000$FqqW7QM4Zhboak57Y2VK5O$uxpT0LptHlUjmEqNtrxnQovrFV2/ldhiLW4...JohnMartinezjohn.martinez@propertyintel.com555-0101["plumbing", "hvac", "electrical"]NULLTrue2026-01-20T09:03:38.13809+01:002026-01-20T09:03:38.13811+01:00
2NULLTECH002pbkdf2_sha256$1200000$zPfac3lEmzsxRBth9zjK3e$8qM2LCEAesiC8JhYh8Y9B/O8XD1YjfqgqL1...MariaGarciamaria.garcia@propertyintel.com555-0102["appliance", "general"]NULLTrue2026-01-20T09:03:38.460338+01:002026-01-20T09:03:38.460349+01:00
scheduling_event
2 rows 8 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 event_type varchar(30) NO
4 event_data jsonb YES '{}'::jsonb
5 created_by_type varchar(20) YES 'system'::character varying
6 created_by_id uuid YES
7 created_by_name varchar(200) YES ''::character varying
8 created_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX scheduling_event_pkey ON public.scheduling_event USING btree (id)
  • CREATE INDEX idx_scheduling_event_created_at ON public.scheduling_event USING btree (created_at DESC)
  • CREATE INDEX idx_scheduling_event_work_order ON public.scheduling_event USING btree (work_order_id)

Sample Data (2 of 2 rows)

idwork_order_idevent_typeevent_datacreated_by_typecreated_by_idcreated_by_namecreated_at
da534ab8-11ce-4b8c-91ad-e6962b78953ec590bdbe-0a5c-4543-83b8-82231a61802bavailability_submitted{"time_slots": ["morning", "afternoon"], "window_count": 2, "permission_to_enter": true}tenantNULLTenant2026-01-20T19:02:09.892273+01:00
df503d46-91cd-4309-8082-8a274153b791c590bdbe-0a5c-4543-83b8-82231a61802btenant_confirmed{"date": "2026-01-22", "time_slot": "morning", "vendor_name": ""}tenantNULLTenant2026-01-20T19:02:16.25352+01:00
user_preferences
2 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 user_key varchar(100) NO
3 theme_preset_id varchar(50) NO
4 theme_tokens jsonb NO
5 created_at timestamptz NO
6 updated_at timestamptz NO
7 portal_user_id uuid YES ๐Ÿ”— โ†’ portal_users.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX user_preferences_pkey ON public.user_preferences USING btree (id)
  • CREATE INDEX user_preferences_user_key_39053a12_like ON public.user_preferences USING btree (user_key varchar_pattern_ops)
  • CREATE UNIQUE INDEX user_preferences_portal_user_id_key ON public.user_preferences USING btree (portal_user_id)
  • CREATE UNIQUE INDEX user_preferences_user_key_key ON public.user_preferences USING btree (user_key)

Sample Data (2 of 2 rows)

iduser_keytheme_preset_idtheme_tokenscreated_atupdated_atportal_user_id
cc7c799f-cfb9-4b1c-a107-184005ed2fa4test-user-1unitcycle-dark[{"hex": "#1A2332", "cssVar": "primary"}, {"hex": "#FDB913", "cssVar": "accent"}]2026-04-03T15:49:03.571046+02:002026-04-03T15:49:03.571068+02:00NULL
14473576-37ff-4412-930d-4a318de36873mock-1[{"hex": "#1A2332", "cssVar": "primary"}, {"hex": "#253547", "cssVar": "primary-light"}, {"hex": "#F2026-04-03T15:46:19.177891+02:002026-04-04T12:06:17.636595+02:00NULL
audit_settings
1 rows 37 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 singleton_id int4 NO
3 monthly_posting_posting_period_days int4 NO
4 monthly_posting_variance_threshold_amount numeric NO
5 monthly_posting_variance_threshold_percentage numeric NO
6 monthly_posting_required_move_in_charges jsonb NO
7 monthly_posting_nsf_charge_amount numeric NO
8 tenant_management_mtm_review_trigger_days int4 NO
9 tenant_management_income_verification_percentage numeric NO
10 tenant_management_pet_fee numeric NO
11 tenant_management_pet_rent_monthly numeric NO
12 tenant_management_minimum_liability_coverage numeric NO
13 lease_validation_min_duration_months int4 NO
14 lease_validation_max_duration_months int4 NO
15 lease_validation_security_deposit_formula varchar(50) NO
16 lease_validation_late_fee_amount numeric NO
17 lease_validation_grace_period_days int4 NO
18 lease_validation_prevent_backdated_leases bool NO
19 variance_analysis_dollar_threshold numeric NO
20 variance_analysis_percentage_threshold numeric NO
21 variance_analysis_manager_approval_threshold numeric NO
22 variance_analysis_resolution_timeframe_days int4 NO
23 variance_analysis_report_recipients jsonb NO
24 document_processing_ocr_confidence_threshold numeric NO
25 document_processing_categories jsonb NO
26 document_processing_expiration_alert_days int4 NO
27 document_processing_required_documents jsonb NO
28 asset_management_bad_debt_threshold_percentage numeric NO
29 asset_management_minimum_chargeback_percentage numeric NO
30 asset_management_max_invoice_age_days int4 NO
31 notifications_alert_primary_recipients jsonb NO
32 notifications_alert_cc_recipients jsonb NO
33 notifications_alert_types jsonb NO
34 notifications_delivery_methods jsonb NO
35 notifications_frequency varchar(20) NO
36 updated_at timestamptz NO
37 updated_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX audit_settings_updated_by_id_82594210 ON public.audit_settings USING btree (updated_by_id)
  • CREATE UNIQUE INDEX audit_settings_singleton_id_key ON public.audit_settings USING btree (singleton_id)
  • CREATE UNIQUE INDEX audit_settings_pkey ON public.audit_settings USING btree (id)

Sample Data (1 of 1 rows)

idsingleton_idmonthly_posting_posting_period_daysmonthly_posting_variance_threshold_amountmonthly_posting_variance_threshold_percentagemonthly_posting_required_move_in_chargesmonthly_posting_nsf_charge_amounttenant_management_mtm_review_trigger_daystenant_management_income_verification_percentagetenant_management_pet_feetenant_management_pet_rent_monthlytenant_management_minimum_liability_coveragelease_validation_min_duration_monthslease_validation_max_duration_monthslease_validation_security_deposit_formulalease_validation_late_fee_amountlease_validation_grace_period_dayslease_validation_prevent_backdated_leasesvariance_analysis_dollar_thresholdvariance_analysis_percentage_thresholdvariance_analysis_manager_approval_thresholdvariance_analysis_resolution_timeframe_daysvariance_analysis_report_recipientsdocument_processing_ocr_confidence_thresholddocument_processing_categoriesdocument_processing_expiration_alert_daysdocument_processing_required_documentsasset_management_bad_debt_threshold_percentageasset_management_minimum_chargeback_percentageasset_management_max_invoice_age_daysnotifications_alert_primary_recipientsnotifications_alert_cc_recipientsnotifications_alert_typesnotifications_delivery_methodsnotifications_frequencyupdated_atupdated_by_id
114550.010.0[]50.030200.00.00.0300000.0624one_month_rent50.05True500.010.01000.07[]85.0[]30[]5.070.090[][][][]real_time2025-10-23T10:52:34.882491+02:00NULL
confirmed_schedule
1 rows 15 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 date date NO
4 time_slot varchar(20) NO
5 time_start time NO
6 time_end time NO
7 confirmed_at timestamptz YES now()
8 confirmed_by varchar(20) NO
9 vendor_id uuid YES
10 vendor_name varchar(200) YES ''::character varying
11 tenant_notified_at timestamptz YES
12 reminder_sent_at timestamptz YES
13 notes text YES ''::text
14 created_at timestamptz YES now()
15 updated_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX confirmed_schedule_pkey ON public.confirmed_schedule USING btree (id)
  • CREATE UNIQUE INDEX confirmed_schedule_work_order_id_key ON public.confirmed_schedule USING btree (work_order_id)

Sample Data (1 of 1 rows)

idwork_order_iddatetime_slottime_starttime_endconfirmed_atconfirmed_byvendor_idvendor_nametenant_notified_atreminder_sent_atnotescreated_atupdated_at
2a147b57-6139-4b5c-85dc-79dc36917bfec590bdbe-0a5c-4543-83b8-82231a61802b2026-01-22morning08:00:0012:00:002026-01-20T19:02:16.250058+01:00tenantNULL2026-01-20T19:02:16.24641+01:00NULL2026-01-20T19:02:16.250083+01:002026-01-20T19:02:16.250085+01:00
core_globalsettings
1 rows 10 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 singleton_id int4 NO
3 currency_code varchar(3) NO
4 currency_symbol varchar(5) NO
5 currency_decimal_places int4 NO
6 currency_thousands_separator varchar(1) NO
7 currency_decimal_separator varchar(1) NO
8 currency_symbol_position varchar(10) NO
9 created_at timestamptz NO
10 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX core_globalsettings_pkey ON public.core_globalsettings USING btree (id)
  • CREATE UNIQUE INDEX core_globalsettings_singleton_id_key ON public.core_globalsettings USING btree (singleton_id)

Sample Data (1 of 1 rows)

idsingleton_idcurrency_codecurrency_symbolcurrency_decimal_placescurrency_thousands_separatorcurrency_decimal_separatorcurrency_symbol_positioncreated_atupdated_at
11USD$2,.before2026-01-20T17:31:35.353316+01:002026-01-20T17:31:35.353334+01:00
rbac_team
1 rows 5 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 team_type varchar(20) NO
4 created_at timestamptz NO
5 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX rbac_team_pkey ON public.rbac_team USING btree (id)

Sample Data (1 of 1 rows)

idnameteam_typecreated_atupdated_at
1Invoice Processingoperational2025-10-01T12:08:44.134139+02:002025-10-01T12:08:44.13416+02:00
rbac_user_settings
1 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 theme varchar(10) NO
3 language varchar(5) NO
4 timezone varchar(50) NO
5 email_notifications bool NO
6 desktop_notifications bool NO
7 weekly_digest bool NO
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 user_profile_id int8 NO ๐Ÿ”— โ†’ rbac_user_profile.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX rbac_user_settings_pkey ON public.rbac_user_settings USING btree (id)
  • CREATE UNIQUE INDEX rbac_user_settings_user_profile_id_key ON public.rbac_user_settings USING btree (user_profile_id)

Sample Data (1 of 1 rows)

idthemelanguagetimezoneemail_notificationsdesktop_notificationsweekly_digestcreated_atupdated_atuser_profile_id
1lightenAmerica/Los_AngelesTrueTrueFalse2025-12-17T11:27:32.260296+01:002025-12-17T11:27:32.280123+01:0032
variance_reports
1 rows 17 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 target_month date NO
3 include_utility_charges bool NO
4 include_deposit_charges bool NO
5 include_fee_charges bool NO
6 total_units_analyzed int4 NO
7 total_variances_detected int4 NO
8 high_priority_count int4 NO
9 medium_priority_count int4 NO
10 low_priority_count int4 NO
11 status varchar(20) NO
12 generation_started_at timestamptz NO
13 generation_completed_at timestamptz YES
14 generation_error text YES
15 generation_task_id varchar(100) YES
16 report_file_path varchar(500) YES
17 audit_id uuid NO ๐Ÿ”— โ†’ monthly_posting_audits.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX variance_reports_pkey ON public.variance_reports USING btree (id)
  • CREATE INDEX variance_re_audit_i_11d6fd_idx ON public.variance_reports USING btree (audit_id)
  • CREATE INDEX variance_re_status_ab70fc_idx ON public.variance_reports USING btree (status)
  • CREATE INDEX variance_re_target__8abbd7_idx ON public.variance_reports USING btree (target_month)
  • CREATE INDEX variance_reports_audit_id_9b954808 ON public.variance_reports USING btree (audit_id)

Sample Data (1 of 1 rows)

idtarget_monthinclude_utility_chargesinclude_deposit_chargesinclude_fee_chargestotal_units_analyzedtotal_variances_detectedhigh_priority_countmedium_priority_countlow_priority_countstatusgeneration_started_atgeneration_completed_atgeneration_errorgeneration_task_idreport_file_pathaudit_id
1099eb31-67a4-4130-8232-af96928da3592025-11-30TrueTrueTrue00000completed2025-11-27T13:51:32.225902+01:002025-11-27T13:53:29.025188+01:00NULL0473be2c-b626-4e3d-9314-4d9bfe40ee60NULL6459ad79-3454-4c8b-9bfa-bbdb6e8172a1
agent_configurations
0 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 agent_type varchar(50) NO
3 display_name varchar(255) NO
4 description text NO
5 available_fields jsonb NO
6 supported_scopes jsonb NO
7 default_llm_model varchar(100) NO
8 llm_system_prompt text NO
9 is_enabled bool NO
10 created_at timestamptz NO
11 updated_at timestamptz NO

Indexes

  • CREATE INDEX agent_configurations_agent_type_32c31ba8_like ON public.agent_configurations USING btree (agent_type varchar_pattern_ops)
  • CREATE UNIQUE INDEX agent_configurations_agent_type_key ON public.agent_configurations USING btree (agent_type)
  • CREATE UNIQUE INDEX agent_configurations_pkey ON public.agent_configurations USING btree (id)

Sample Data (0 of 0 rows)

No data

agent_perf_aggregate
0 rows 9 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 period_start timestamptz NO
3 granularity varchar(1) NO
4 agent varchar(128) NO
5 completion_rate_pct float8 NO
6 avg_response_ms float8 NO
7 accuracy_pct float8 NO
8 automation_rate_pct float8 NO
9 volume int4 NO

Indexes

  • CREATE INDEX agent_perf__granula_eeb2ba_idx ON public.agent_perf_aggregate USING btree (granularity, period_start)
  • CREATE INDEX agent_perf_aggregate_agent_40ff115c ON public.agent_perf_aggregate USING btree (agent)
  • CREATE INDEX agent_perf_aggregate_agent_40ff115c_like ON public.agent_perf_aggregate USING btree (agent varchar_pattern_ops)
  • CREATE INDEX agent_perf_aggregate_period_start_06237fbc ON public.agent_perf_aggregate USING btree (period_start)
  • CREATE UNIQUE INDEX agent_perf_aggregate_period_start_granularity_03154a1c_uniq ON public.agent_perf_aggregate USING btree (period_start, granularity, agent)
  • CREATE UNIQUE INDEX agent_perf_aggregate_pkey ON public.agent_perf_aggregate USING btree (id)
  • CREATE INDEX agent_perf__agent_913648_idx ON public.agent_perf_aggregate USING btree (agent, period_start)

Check Constraints

  • apa_volume_ge0: (volume >= 0)
  • agent_perf_aggregate_volume_check: (volume >= 0)
  • apa_automation_0_100: ((automation_rate_pct >= (0.0)::double precision) AND (automation_rate_pct <= (100.0)::double precision))
  • apa_avg_ms_ge0: (avg_response_ms >= (0.0)::double precision)
  • apa_accuracy_0_100: ((accuracy_pct >= (0.0)::double precision) AND (accuracy_pct <= (100.0)::double precision))
  • apa_completion_0_100: ((completion_rate_pct >= (0.0)::double precision) AND (completion_rate_pct <= (100.0)::double precision))

Sample Data (0 of 0 rows)

No data

agent_rule_evaluation_logs
0 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 agent_type varchar(50) NO
3 context_data jsonb NO
4 conditions_matched bool NO
5 actions_executed jsonb NO
6 execution_time_ms int4 YES
7 evaluated_at timestamptz NO
8 rule_id int8 NO ๐Ÿ”— โ†’ agent_rules.id

Foreign Keys

Indexes

  • CREATE INDEX agent_rule_evaluation_logs_evaluated_at_48b6407e ON public.agent_rule_evaluation_logs USING btree (evaluated_at)
  • CREATE INDEX agent_rule_evaluation_logs_agent_type_49d4ea74 ON public.agent_rule_evaluation_logs USING btree (agent_type)
  • CREATE UNIQUE INDEX agent_rule_evaluation_logs_pkey ON public.agent_rule_evaluation_logs USING btree (id)
  • CREATE INDEX agent_rule_evaluation_logs_agent_type_49d4ea74_like ON public.agent_rule_evaluation_logs USING btree (agent_type varchar_pattern_ops)
  • CREATE INDEX agent_rule_evaluation_logs_rule_id_56cace69 ON public.agent_rule_evaluation_logs USING btree (rule_id)

Sample Data (0 of 0 rows)

No data

agent_rules
0 rows 19 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(255) NO
3 description text NO
4 agent_type varchar(50) NO
5 scope_type varchar(30) NO
6 conditions jsonb NO
7 actions jsonb NO
8 else_actions jsonb NO
9 priority int4 NO
10 is_active bool NO
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 execution_count int4 NO
14 match_count int4 NO
15 last_executed_at timestamptz YES
16 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
17 property_ref_id uuid YES ๐Ÿ”— โ†’ properties.id
18 updated_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
19 vendor_id uuid YES ๐Ÿ”— โ†’ vendors_vendor.id

Foreign Keys

Indexes

  • CREATE INDEX agent_rules_is_active_c29a2260 ON public.agent_rules USING btree (is_active)
  • CREATE UNIQUE INDEX agent_rules_pkey ON public.agent_rules USING btree (id)
  • CREATE INDEX agent_rules_agent_t_897135_idx ON public.agent_rules USING btree (agent_type, vendor_id, property_ref_id, is_active)
  • CREATE INDEX agent_rules_agent_t_c73ec2_idx ON public.agent_rules USING btree (agent_type, is_active)
  • CREATE INDEX agent_rules_agent_type_00adfadd ON public.agent_rules USING btree (agent_type)
  • CREATE INDEX agent_rules_agent_type_00adfadd_like ON public.agent_rules USING btree (agent_type varchar_pattern_ops)
  • CREATE INDEX agent_rules_created_by_id_0a87b248 ON public.agent_rules USING btree (created_by_id)
  • CREATE INDEX agent_rules_vendor_id_8f97a7ba ON public.agent_rules USING btree (vendor_id)
  • CREATE INDEX agent_rules_priority_5fecca28 ON public.agent_rules USING btree (priority)
  • CREATE INDEX agent_rules_property_ref_id_0616b4ef ON public.agent_rules USING btree (property_ref_id)
  • CREATE INDEX agent_rules_scope_t_281e3f_idx ON public.agent_rules USING btree (scope_type, is_active)
  • CREATE INDEX agent_rules_scope_type_3fea7193 ON public.agent_rules USING btree (scope_type)
  • CREATE INDEX agent_rules_scope_type_3fea7193_like ON public.agent_rules USING btree (scope_type varchar_pattern_ops)
  • CREATE INDEX agent_rules_updated_by_id_8ffc9009 ON public.agent_rules USING btree (updated_by_id)

Sample Data (0 of 0 rows)

No data

audit_logs
0 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 event_type varchar(20) NO
3 model_name varchar(100) YES
4 object_id varchar(100) YES
5 description text NO
6 ip_address inet YES
7 user_agent text YES
8 metadata jsonb NO
9 created_at timestamptz NO
10 user_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX audit_logs_pkey ON public.audit_logs USING btree (id)
  • CREATE INDEX audit_logs_user_id_73c422_idx ON public.audit_logs USING btree (user_id)
  • CREATE INDEX audit_logs_model_n_da6855_idx ON public.audit_logs USING btree (model_name)
  • CREATE INDEX audit_logs_event_t_3207df_idx ON public.audit_logs USING btree (event_type)
  • CREATE INDEX audit_logs_created_262184_idx ON public.audit_logs USING btree (created_at)
  • CREATE INDEX audit_logs_user_id_752b0e2b ON public.audit_logs USING btree (user_id)

Sample Data (0 of 0 rows)

No data

audit_notes
0 rows 9 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 category varchar(20) YES
3 note_text text NO
4 created_at timestamptz NO
5 updated_at timestamptz NO
6 created_by_id int4 NO ๐Ÿ”— โ†’ auth_user.id
7 tenant_record_id uuid YES ๐Ÿ”— โ†’ audit_tenant_records.id
8 audit_id uuid NO ๐Ÿ”— โ†’ monthly_posting_audits.id
9 variance_record_id uuid YES ๐Ÿ”— โ†’ variance_records.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX audit_notes_pkey ON public.audit_notes USING btree (id)
  • CREATE INDEX audit_notes_audit_i_dcba09_idx ON public.audit_notes USING btree (audit_id)
  • CREATE INDEX audit_notes_audit_id_fe8eb9b6 ON public.audit_notes USING btree (audit_id)
  • CREATE INDEX audit_notes_categor_d05876_idx ON public.audit_notes USING btree (category)
  • CREATE INDEX audit_notes_created_746041_idx ON public.audit_notes USING btree (created_by_id)
  • CREATE INDEX audit_notes_created_by_id_6ee1b558 ON public.audit_notes USING btree (created_by_id)
  • CREATE INDEX audit_notes_tenant_record_id_fed8b9e9 ON public.audit_notes USING btree (tenant_record_id)
  • CREATE INDEX audit_notes_variance_record_id_7ef04bc0 ON public.audit_notes USING btree (variance_record_id)

Sample Data (0 of 0 rows)

No data

compliance_snapshots
0 rows 11 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 snapshot_date date NO
3 category varchar(50) YES
4 total_leases int4 NO
5 total_items int4 NO
6 completed_items int4 NO
7 pending_items int4 NO
8 failed_checks int4 NO
9 compliance_rate numeric NO
10 created_at timestamptz NO
11 property_id uuid YES ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX compliance__snapsho_db40da_idx ON public.compliance_snapshots USING btree (snapshot_date, category)
  • CREATE UNIQUE INDEX compliance_snapshots_pkey ON public.compliance_snapshots USING btree (id)
  • CREATE UNIQUE INDEX compliance_snapshots_snapshot_date_property_i_364955fe_uniq ON public.compliance_snapshots USING btree (snapshot_date, property_id, category)
  • CREATE INDEX compliance__propert_009244_idx ON public.compliance_snapshots USING btree (property_id, category)
  • CREATE INDEX compliance__snapsho_828c7f_idx ON public.compliance_snapshots USING btree (snapshot_date, property_id)
  • CREATE INDEX compliance_snapshots_property_id_8274e88f ON public.compliance_snapshots USING btree (property_id)

Sample Data (0 of 0 rows)

No data

cost_tracking_record
0 rows 10 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 ts timestamptz NO
3 service varchar(64) NO
4 model varchar(64) YES
5 requests int4 NO
6 tokens_prompt int4 NO
7 tokens_completion int4 NO
8 cost_usd numeric NO
9 currency varchar(8) NO
10 metadata jsonb NO

Indexes

  • CREATE INDEX cost_tracki_service_356865_idx ON public.cost_tracking_record USING btree (service)
  • CREATE INDEX cost_tracki_service_f4ce72_idx ON public.cost_tracking_record USING btree (service, model, ts)
  • CREATE INDEX cost_tracking_record_ts_4bc922a9 ON public.cost_tracking_record USING btree (ts)
  • CREATE UNIQUE INDEX cost_tracking_record_pkey ON public.cost_tracking_record USING btree (id)

Check Constraints

  • cost_tracking_record_tokens_completion_check: (tokens_completion >= 0)
  • cost_tracking_record_requests_check: (requests >= 0)
  • cost_tracking_record_tokens_prompt_check: (tokens_prompt >= 0)
  • ctr_cost_usd_ge0: (cost_usd >= 0.0000)
  • ctr_requests_ge1: (requests >= 1)
  • ctr_tokens_completion_ge0: (tokens_completion >= 0)
  • ctr_tokens_prompt_ge0: (tokens_prompt >= 0)

Sample Data (0 of 0 rows)

No data

email_messages
0 rows 21 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 message_id uuid NO
3 to_emails jsonb NO
4 cc_emails jsonb NO
5 bcc_emails jsonb NO
6 subject varchar(255) NO
7 html_content text NO
8 text_content text NO
9 from_email varchar(254) NO
10 from_name varchar(100) NO
11 reply_to varchar(254) NO
12 status varchar(20) NO
13 priority int4 NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 sent_at timestamptz YES
17 scheduled_for timestamptz YES
18 expires_at timestamptz YES
19 error_message text NO
20 metadata jsonb NO
21 user_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX email_messages_message_id_key ON public.email_messages USING btree (message_id)
  • CREATE INDEX email_messages_user_id_5dc44b62 ON public.email_messages USING btree (user_id)
  • CREATE INDEX email_messa_message_38c96a_idx ON public.email_messages USING btree (message_id)
  • CREATE INDEX email_messa_status_ab0de2_idx ON public.email_messages USING btree (status)
  • CREATE INDEX email_messa_schedul_1c1ea5_idx ON public.email_messages USING btree (scheduled_for)
  • CREATE INDEX email_messa_created_6387ec_idx ON public.email_messages USING btree (created_at)
  • CREATE UNIQUE INDEX email_messages_pkey ON public.email_messages USING btree (id)

Sample Data (0 of 0 rows)

No data

exception_rules
0 rows 16 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 description text NO
4 rule_type varchar(30) NO
5 conditions jsonb NO
6 field_name varchar(100) NO
7 threshold_value numeric YES
8 is_active bool NO
9 priority int4 NO
10 stop_on_match bool NO
11 match_count int4 NO
12 last_matched_at timestamptz YES
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
16 exception_type_id int8 NO ๐Ÿ”— โ†’ exception_types.id

Foreign Keys

Indexes

  • CREATE INDEX exception_rules_name_b0ad94ba_like ON public.exception_rules USING btree (name varchar_pattern_ops)
  • CREATE UNIQUE INDEX exception_rules_pkey ON public.exception_rules USING btree (id)
  • CREATE INDEX exception_rules_created_by_id_1cacda76 ON public.exception_rules USING btree (created_by_id)
  • CREATE INDEX exception_rules_exception_type_id_77c4885c ON public.exception_rules USING btree (exception_type_id)
  • CREATE UNIQUE INDEX exception_rules_name_key ON public.exception_rules USING btree (name)

Sample Data (0 of 0 rows)

No data

expense_classification_rules
0 rows 19 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 description text NO
4 vendor_name_contains varchar(200) YES
5 description_contains varchar(200) YES
6 description_regex varchar(500) YES
7 amount_min numeric YES
8 amount_max numeric YES
9 confidence_score float8 NO
10 requires_manual_review bool NO
11 is_active bool NO
12 priority int4 NO
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
16 suggested_account_id int8 NO ๐Ÿ”— โ†’ chart_of_accounts.id
17 keywords_all jsonb YES
18 keywords_any jsonb YES
19 vendor_keywords_any jsonb YES

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX expense_classification_rules_pkey ON public.expense_classification_rules USING btree (id)
  • CREATE INDEX expense_classification_rules_suggested_account_id_d42b9b25 ON public.expense_classification_rules USING btree (suggested_account_id)
  • CREATE INDEX expense_classification_rules_created_by_id_f669c9cd ON public.expense_classification_rules USING btree (created_by_id)
  • CREATE INDEX expense_cla_suggest_70d607_idx ON public.expense_classification_rules USING btree (suggested_account_id)
  • CREATE INDEX expense_cla_is_acti_f8a425_idx ON public.expense_classification_rules USING btree (is_active, priority)

Check Constraints

  • expense_classification_rules_priority_check: (priority >= 0)

Sample Data (0 of 0 rows)

No data

financial_summary
0 rows 7 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 period_start timestamptz NO
3 period_end timestamptz NO
4 total_processed_value numeric NO
5 budget_value numeric YES
6 created_at timestamptz NO
7 updated_at timestamptz NO

Indexes

  • CREATE INDEX financial_s_period__b5fade_idx ON public.financial_summary USING btree (period_start, period_end)
  • CREATE INDEX financial_s_period__ab6cb6_idx ON public.financial_summary USING btree (period_start)
  • CREATE INDEX financial_s_period__58579f_idx ON public.financial_summary USING btree (period_end)
  • CREATE UNIQUE INDEX financial_summary_pkey ON public.financial_summary USING btree (id)

Sample Data (0 of 0 rows)

No data

insurance_providers
0 rows 10 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 contact_email varchar(254) YES
4 contact_phone varchar(20) YES
5 website varchar(200) YES
6 rating numeric YES
7 is_active bool NO
8 notes text NO
9 created_at timestamptz NO
10 updated_at timestamptz NO

Indexes

  • CREATE INDEX insurance_p_is_acti_6ed3fc_idx ON public.insurance_providers USING btree (is_active)
  • CREATE UNIQUE INDEX insurance_providers_pkey ON public.insurance_providers USING btree (id)
  • CREATE UNIQUE INDEX insurance_providers_name_key ON public.insurance_providers USING btree (name)
  • CREATE INDEX insurance_providers_name_6495477b_like ON public.insurance_providers USING btree (name varchar_pattern_ops)
  • CREATE INDEX insurance_providers_is_active_e2034ac4 ON public.insurance_providers USING btree (is_active)
  • CREATE INDEX insurance_p_name_dda073_idx ON public.insurance_providers USING btree (name)

Sample Data (0 of 0 rows)

No data

lease_discrepancies
0 rows 15 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 charge_type varchar(100) NO
3 lease_value numeric YES
4 yardi_value numeric YES
5 discrepancy_type varchar(50) NO
6 status varchar(20) NO
7 flagged_date timestamptz NO
8 resolved_date timestamptz YES
9 resolution_notes text YES
10 created_at timestamptz NO
11 updated_at timestamptz NO
12 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
13 resolved_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
14 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
15 scheduled_charge_id uuid YES ๐Ÿ”— โ†’ scheduled_charges.id

Foreign Keys

Indexes

  • CREATE INDEX lease_discrepancies_tenant_id_ffa15ab9 ON public.lease_discrepancies USING btree (tenant_id)
  • CREATE INDEX lease_discr_status_fd4593_idx ON public.lease_discrepancies USING btree (status)
  • CREATE INDEX lease_discr_lease_i_349af2_idx ON public.lease_discrepancies USING btree (lease_id)
  • CREATE INDEX lease_discr_discrep_c565dd_idx ON public.lease_discrepancies USING btree (discrepancy_type)
  • CREATE UNIQUE INDEX lease_discrepancies_pkey ON public.lease_discrepancies USING btree (id)
  • CREATE INDEX lease_discrepancies_lease_id_e8b01fb2 ON public.lease_discrepancies USING btree (lease_id)
  • CREATE INDEX lease_discrepancies_resolved_by_id_8b904032 ON public.lease_discrepancies USING btree (resolved_by_id)
  • CREATE INDEX lease_discrepancies_scheduled_charge_id_6e7eb5ff ON public.lease_discrepancies USING btree (scheduled_charge_id)
  • CREATE INDEX lease_discr_tenant__f85ff0_idx ON public.lease_discrepancies USING btree (tenant_id)

Sample Data (0 of 0 rows)

No data

lease_inspections
0 rows 14 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 inspection_type varchar(20) NO
3 completed bool NO
4 completed_date date YES
5 inspector_name varchar(100) YES
6 chargeback_posted bool NO
7 notes text YES
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
11 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
12 move_out_date date YES
13 notice_date date YES
14 process_status varchar(50) NO

Foreign Keys

Indexes

  • CREATE INDEX lease_inspe_inspect_24dfa6_idx ON public.lease_inspections USING btree (inspection_type)
  • CREATE INDEX lease_inspe_lease_i_e31bce_idx ON public.lease_inspections USING btree (lease_id)
  • CREATE INDEX lease_inspe_process_84aca8_idx ON public.lease_inspections USING btree (process_status)
  • CREATE INDEX lease_inspe_tenant__35561b_idx ON public.lease_inspections USING btree (tenant_id)
  • CREATE INDEX lease_inspections_lease_id_78d96fe6 ON public.lease_inspections USING btree (lease_id)
  • CREATE UNIQUE INDEX lease_inspections_pkey ON public.lease_inspections USING btree (id)
  • CREATE INDEX lease_inspections_tenant_id_6693e37c ON public.lease_inspections USING btree (tenant_id)

Sample Data (0 of 0 rows)

No data

lease_validation_items
0 rows 14 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 item_type varchar(50) NO
3 description varchar(255) NO
4 status varchar(20) NO
5 checked_date timestamptz YES
6 notes text YES
7 sort_order int4 NO
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 checked_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
11 validation_id uuid NO ๐Ÿ”— โ†’ lease_validations.id
12 due_date date YES
13 priority varchar(20) NO
14 reminder_sent timestamptz YES

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX lease_validation_items_pkey ON public.lease_validation_items USING btree (id)
  • CREATE INDEX lease_valid_item_ty_9f5876_idx ON public.lease_validation_items USING btree (item_type)
  • CREATE INDEX lease_valid_status_c69eb6_idx ON public.lease_validation_items USING btree (status)
  • CREATE INDEX lease_valid_validat_b13b40_idx ON public.lease_validation_items USING btree (validation_id)
  • CREATE INDEX lease_validation_items_checked_by_id_44f8ae00 ON public.lease_validation_items USING btree (checked_by_id)
  • CREATE INDEX lease_validation_items_validation_id_d6fb39ee ON public.lease_validation_items USING btree (validation_id)

Sample Data (0 of 0 rows)

No data

lease_validations
0 rows 9 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 overall_status varchar(20) NO
3 total_items int4 NO
4 completed_items int4 NO
5 last_reviewed timestamptz YES
6 created_at timestamptz NO
7 updated_at timestamptz NO
8 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
9 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX lease_validations_pkey ON public.lease_validations USING btree (id)
  • CREATE INDEX lease_validations_tenant_id_8f96ebc5 ON public.lease_validations USING btree (tenant_id)
  • CREATE INDEX lease_validations_lease_id_1b1268a6 ON public.lease_validations USING btree (lease_id)
  • CREATE INDEX lease_valid_tenant__1f5e85_idx ON public.lease_validations USING btree (tenant_id)
  • CREATE INDEX lease_valid_overall_b70bab_idx ON public.lease_validations USING btree (overall_status)
  • CREATE INDEX lease_valid_lease_i_c18d7f_idx ON public.lease_validations USING btree (lease_id)

Sample Data (0 of 0 rows)

No data

magic_link_tokens
0 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 token varchar(255) NO
3 purpose varchar(50) NO
4 is_used bool NO
5 expires_at timestamptz NO
6 used_at timestamptz YES
7 created_at timestamptz NO
8 portal_user_id uuid NO ๐Ÿ”— โ†’ portal_users.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX magic_link_tokens_token_key ON public.magic_link_tokens USING btree (token)
  • CREATE UNIQUE INDEX magic_link_tokens_pkey ON public.magic_link_tokens USING btree (id)
  • CREATE INDEX magic_link__token_22723f_idx ON public.magic_link_tokens USING btree (token, is_used, expires_at)
  • CREATE INDEX magic_link_tokens_portal_user_id_bb41660a ON public.magic_link_tokens USING btree (portal_user_id)
  • CREATE INDEX magic_link_tokens_token_77ea4275_like ON public.magic_link_tokens USING btree (token varchar_pattern_ops)

Sample Data (0 of 0 rows)

No data

mtm_charge_comparisons
0 rows 12 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 charge_type varchar(100) NO
3 current_amount numeric NO
4 six_months_ago_amount numeric NO
5 variance_percentage numeric YES
6 flagged bool NO
7 comparison_date date NO
8 notes text YES
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
12 mtm_transition_id uuid NO ๐Ÿ”— โ†’ mtm_transitions.id

Foreign Keys

Indexes

  • CREATE INDEX mtm_charge__mtm_tra_494ccb_idx ON public.mtm_charge_comparisons USING btree (mtm_transition_id)
  • CREATE INDEX mtm_charge_comparisons_tenant_id_5c27755d ON public.mtm_charge_comparisons USING btree (tenant_id)
  • CREATE INDEX mtm_charge_comparisons_mtm_transition_id_1d9c4de7 ON public.mtm_charge_comparisons USING btree (mtm_transition_id)
  • CREATE INDEX mtm_charge__tenant__3414c7_idx ON public.mtm_charge_comparisons USING btree (tenant_id)
  • CREATE INDEX mtm_charge__flagged_c6f407_idx ON public.mtm_charge_comparisons USING btree (flagged)
  • CREATE UNIQUE INDEX mtm_charge_comparisons_pkey ON public.mtm_charge_comparisons USING btree (id)

Sample Data (0 of 0 rows)

No data

mtm_transitions
0 rows 19 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 original_lease_end_date date NO
3 mtm_start_date date NO
4 renewal_letter_sent bool NO
5 renewal_letter_date date YES
6 renewal_letter_content text YES
7 renewal_decision varchar(20) YES
8 renewal_decision_date date YES
9 six_month_comparison_done bool NO
10 six_month_comparison_date date YES
11 status varchar(20) NO
12 notes text YES
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
16 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id
17 lease_duration_months int4 YES
18 monthly_rent_amount numeric YES
19 renewal_status varchar(50) NO

Foreign Keys

Indexes

  • CREATE INDEX mtm_transit_renewal_cb8acc_idx ON public.mtm_transitions USING btree (renewal_decision)
  • CREATE INDEX mtm_transit_status_da6f41_idx ON public.mtm_transitions USING btree (status)
  • CREATE INDEX mtm_transit_tenant__9fcb7b_idx ON public.mtm_transitions USING btree (tenant_id)
  • CREATE INDEX mtm_transitions_lease_id_c7c01aea ON public.mtm_transitions USING btree (lease_id)
  • CREATE INDEX mtm_transitions_tenant_id_dfca8335 ON public.mtm_transitions USING btree (tenant_id)
  • CREATE UNIQUE INDEX mtm_transitions_pkey ON public.mtm_transitions USING btree (id)
  • CREATE INDEX mtm_transit_lease_i_9a56c0_idx ON public.mtm_transitions USING btree (lease_id)
  • CREATE INDEX mtm_transit_renewal_81fc8c_idx ON public.mtm_transitions USING btree (renewal_status)

Sample Data (0 of 0 rows)

No data

rbac_activity_log
0 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 action varchar(50) NO
3 resource_type varchar(50) NO
4 resource_id varchar(100) NO
5 description text NO
6 ip_address inet YES
7 user_agent text NO
8 success bool NO
9 timestamp timestamptz NO
10 user_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX rbac_activi_timesta_0cf6bd_idx ON public.rbac_activity_log USING btree ("timestamp" DESC)
  • CREATE UNIQUE INDEX rbac_activity_log_pkey ON public.rbac_activity_log USING btree (id)
  • CREATE INDEX rbac_activity_log_user_id_656b1821 ON public.rbac_activity_log USING btree (user_id)
  • CREATE INDEX rbac_activi_user_id_0e3dbd_idx ON public.rbac_activity_log USING btree (user_id, "timestamp" DESC)

Sample Data (0 of 0 rows)

No data

rbac_user_permission
0 rows 8 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 granted bool NO
3 granted_at timestamptz NO
4 expires_at timestamptz YES
5 reason text NO
6 granted_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
7 permission_id uuid NO ๐Ÿ”— โ†’ rbac_permission.id
8 user_profile_id int8 NO ๐Ÿ”— โ†’ rbac_user_profile.id

Foreign Keys

Indexes

  • CREATE INDEX rbac_user_permission_permission_id_8704f92d ON public.rbac_user_permission USING btree (permission_id)
  • CREATE INDEX rbac_user_permission_granted_by_id_05ba6971 ON public.rbac_user_permission USING btree (granted_by_id)
  • CREATE INDEX rbac_user_permission_user_profile_id_590925aa ON public.rbac_user_permission USING btree (user_profile_id)
  • CREATE UNIQUE INDEX rbac_user_permission_user_profile_id_permissi_77d2ce27_uniq ON public.rbac_user_permission USING btree (user_profile_id, permission_id)
  • CREATE UNIQUE INDEX rbac_user_permission_pkey ON public.rbac_user_permission USING btree (id)

Sample Data (0 of 0 rows)

No data

scheduled_charges
0 rows 12 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 charge_code varchar(50) NO
3 charge_description varchar(255) NO
4 scheduled_amount numeric NO
5 frequency varchar(20) NO
6 start_date date YES
7 end_date date YES
8 last_synced timestamptz NO
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 lease_id uuid NO ๐Ÿ”— โ†’ tenants.id
12 tenant_id uuid NO ๐Ÿ”— โ†’ tenants.id

Foreign Keys

Indexes

  • CREATE INDEX scheduled_charges_lease_id_a96bb519 ON public.scheduled_charges USING btree (lease_id)
  • CREATE INDEX scheduled_charges_tenant_id_f980c591 ON public.scheduled_charges USING btree (tenant_id)
  • CREATE INDEX scheduled_c_tenant__d5487c_idx ON public.scheduled_charges USING btree (tenant_id)
  • CREATE INDEX scheduled_c_lease_i_648379_idx ON public.scheduled_charges USING btree (lease_id)
  • CREATE INDEX scheduled_c_charge__7061db_idx ON public.scheduled_charges USING btree (charge_code)
  • CREATE UNIQUE INDEX scheduled_charges_pkey ON public.scheduled_charges USING btree (id)

Sample Data (0 of 0 rows)

No data

system_health
0 rows 15 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 timestamp timestamptz NO
3 average_response_time float8 NO
4 requests_per_minute int4 NO
5 active_workers int4 NO
6 error_rate float8 NO
7 total_errors int4 NO
8 cpu_usage float8 YES
9 memory_usage float8 YES
10 disk_usage float8 YES
11 queue_size int4 NO
12 queue_processing_time float8 YES
13 gmail_api_status varchar(20) NO
14 yardi_api_status varchar(20) NO
15 ocr_service_status varchar(20) NO

Indexes

  • CREATE UNIQUE INDEX system_health_pkey ON public.system_health USING btree (id)
  • CREATE INDEX system_heal_average_f6ff04_idx ON public.system_health USING btree (average_response_time)
  • CREATE INDEX system_heal_error_r_16f583_idx ON public.system_health USING btree (error_rate)
  • CREATE INDEX system_heal_timesta_925ff9_idx ON public.system_health USING btree ("timestamp")

Sample Data (0 of 0 rows)

No data

system_notifications
0 rows 15 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 title varchar(200) NO
3 message text NO
4 notification_type varchar(20) NO
5 priority varchar(20) NO
6 is_broadcast bool NO
7 is_read bool NO
8 read_at timestamptz YES
9 email_sent bool NO
10 email_sent_at timestamptz YES
11 metadata jsonb NO
12 created_at timestamptz NO
13 expires_at timestamptz YES
14 read_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
15 user_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX system_noti_is_read_663079_idx ON public.system_notifications USING btree (is_read)
  • CREATE UNIQUE INDEX system_notifications_pkey ON public.system_notifications USING btree (id)
  • CREATE INDEX system_noti_created_951b8e_idx ON public.system_notifications USING btree (created_at)
  • CREATE INDEX system_noti_notific_4933ed_idx ON public.system_notifications USING btree (notification_type)
  • CREATE INDEX system_noti_priorit_bd307b_idx ON public.system_notifications USING btree (priority)
  • CREATE INDEX system_noti_user_id_aaadb5_idx ON public.system_notifications USING btree (user_id)
  • CREATE INDEX system_notifications_read_by_id_7793d737 ON public.system_notifications USING btree (read_by_id)
  • CREATE INDEX system_notifications_user_id_67360797 ON public.system_notifications USING btree (user_id)

Sample Data (0 of 0 rows)

No data

user_chat_settings
0 rows 18 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 email_notifications bool NO
3 push_notifications bool NO
4 mention_notifications bool NO
5 direct_message_notifications bool NO
6 show_online_status bool NO
7 allow_direct_messages bool NO
8 auto_mark_read bool NO
9 show_typing_indicators bool NO
10 read_receipts bool NO
11 last_seen_visibility bool NO
12 theme varchar(20) NO
13 message_preview bool NO
14 compact_mode bool NO
15 custom_settings jsonb NO
16 created_at timestamptz NO
17 updated_at timestamptz NO
18 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX user_chat_settings_user_id_key ON public.user_chat_settings USING btree (user_id)
  • CREATE UNIQUE INDEX user_chat_settings_pkey ON public.user_chat_settings USING btree (id)

Sample Data (0 of 0 rows)

No data

variance_records
0 rows 20 cols 5 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 charge_code varchar(50) NO
3 charge_description varchar(200) NO
4 previous_month_amount numeric NO
5 current_month_amount numeric NO
6 variance_amount numeric NO
7 variance_percentage numeric NO
8 unit_type varchar(50) YES
9 is_valid_for_unit_type bool NO
10 priority varchar(20) NO
11 requires_investigation bool NO
12 investigation_status varchar(20) NO
13 investigation_notes text YES
14 investigated_at timestamptz YES
15 resolved_at timestamptz YES
16 investigated_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
17 related_tenant_record_id uuid YES ๐Ÿ”— โ†’ audit_tenant_records.id
18 tenant_id uuid YES ๐Ÿ”— โ†’ tenants.id
19 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
20 variance_report_id uuid NO ๐Ÿ”— โ†’ variance_reports.id

Foreign Keys

Indexes

  • CREATE INDEX variance_records_variance_report_id_48dabaeb ON public.variance_records USING btree (variance_report_id)
  • CREATE UNIQUE INDEX variance_records_pkey ON public.variance_records USING btree (id)
  • CREATE INDEX variance_records_tenant_id_5a5663f3 ON public.variance_records USING btree (tenant_id)
  • CREATE INDEX variance_records_related_tenant_record_id_324c3265 ON public.variance_records USING btree (related_tenant_record_id)
  • CREATE INDEX variance_records_investigated_by_id_e95d2e33 ON public.variance_records USING btree (investigated_by_id)
  • CREATE INDEX variance_re_varianc_169407_idx ON public.variance_records USING btree (variance_report_id)
  • CREATE INDEX variance_re_unit_id_4e2cf9_idx ON public.variance_records USING btree (unit_id)
  • CREATE INDEX variance_re_require_8c0b89_idx ON public.variance_records USING btree (requires_investigation)
  • CREATE INDEX variance_re_priorit_470906_idx ON public.variance_records USING btree (priority)
  • CREATE INDEX variance_re_investi_b8894f_idx ON public.variance_records USING btree (investigation_status)
  • CREATE INDEX variance_records_unit_id_f642b4f9 ON public.variance_records USING btree (unit_id)

Sample Data (0 of 0 rows)

No data

๐Ÿ“Š Analytics & Processing 6 tables ยท 104,716 rows
processing_logs
104,716 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 stage varchar(50) NO
3 level varchar(10) NO
4 message text NO
5 processing_time float8 YES
6 metadata jsonb NO
7 created_at timestamptz NO
8 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX processing_logs_pkey ON public.processing_logs USING btree (id)
  • CREATE INDEX processing_logs_invoice_id_d68c92a3 ON public.processing_logs USING btree (invoice_id)
  • CREATE INDEX processing__stage_b16293_idx ON public.processing_logs USING btree (stage)
  • CREATE INDEX processing__level_91ff53_idx ON public.processing_logs USING btree (level)
  • CREATE INDEX processing__invoice_78678c_idx ON public.processing_logs USING btree (invoice_id)
  • CREATE INDEX processing__created_9b87c6_idx ON public.processing_logs USING btree (created_at)

Sample Data (3 of 104,716 rows)

idstagelevelmessageprocessing_timemetadatacreated_atinvoice_id
897820email_processedinfoEmail processed and invoice created for PDF: Inv_1242346_from_J_Turner_Research_...NULL{"subject": "Invoice 1242346 from J Turner Research LP", "email_id": "AAMkADg1OTAxZjkzLTk0N2UtNDg4Zi2025-12-09T19:09:21.061708+01:0011325
897821attachment_savedinfoAttachment saved: Inv_1242346_from_J_Turner_Research_LP_8057383_54496.pdfNULL{"size": 705653, "file_path": "invoices/originals/2025/12/20251209_180921_Inv_1242346_from_J_Turner_2025-12-09T19:09:21.25747+01:0011325
897822queued_for_document_aiinfoQueued for Document AI processingNULL{"pdf_file": "Inv_1242346_from_J_Turner_Research_LP_8057383_54496.pdf"}2025-12-09T19:09:21.262406+01:0011325
analytics_event
0 rows 8 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 event_time timestamptz NO
3 source varchar(64) NO
4 agent varchar(128) YES
5 event_type varchar(128) NO
6 duration_ms int4 YES
7 success bool YES
8 metadata jsonb NO

Indexes

  • CREATE INDEX analytics_event_event_type_c4cbe8d6 ON public.analytics_event USING btree (event_type)
  • CREATE UNIQUE INDEX analytics_event_pkey ON public.analytics_event USING btree (id)
  • CREATE INDEX ae_metadata_gin ON public.analytics_event USING gin (metadata)
  • CREATE INDEX ae_ts_evt_idx ON public.analytics_event USING btree (event_time, event_type)
  • CREATE INDEX analytics_e_source_262624_idx ON public.analytics_event USING btree (source, agent)
  • CREATE INDEX analytics_event_event_time_cc0bc9fa ON public.analytics_event USING btree (event_time)
  • CREATE INDEX analytics_event_event_type_c4cbe8d6_like ON public.analytics_event USING btree (event_type varchar_pattern_ops)

Check Constraints

  • analytics_event_duration_ms_check: (duration_ms >= 0)
  • ae_agent_if_source_agent: ((NOT ((source)::text = 'agent'::text)) OR ((agent IS NOT NULL) AND (NOT (((agent)::text = ''::text) AND (agent IS NOT NULL)))))

Sample Data (0 of 0 rows)

No data

analytics_objective
0 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 slug varchar(50) NO
4 metric_key varchar(128) NO
5 target_value float8 NO
6 higher_is_better bool NO
7 description text NO
8 parent_id int8 YES ๐Ÿ”— โ†’ analytics_objective.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX analytics_objective_pkey ON public.analytics_objective USING btree (id)
  • CREATE INDEX analytics_objective_slug_b9d6486f_like ON public.analytics_objective USING btree (slug varchar_pattern_ops)
  • CREATE INDEX analytics_objective_parent_id_2769640b ON public.analytics_objective USING btree (parent_id)
  • CREATE UNIQUE INDEX analytics_objective_slug_key ON public.analytics_objective USING btree (slug)

Check Constraints

  • obj_target_ge0: (target_value >= (0.0)::double precision)

Sample Data (0 of 0 rows)

No data

analytics_objectiveprogress
0 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 period_start timestamptz NO
3 granularity varchar(1) NO
4 current_value float8 NO
5 target_value float8 NO
6 completion_pct float8 NO
7 objective_id int8 NO ๐Ÿ”— โ†’ analytics_objective.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX analytics_objectiveprogress_pkey ON public.analytics_objectiveprogress USING btree (id)
  • CREATE UNIQUE INDEX analytics_objectiveprogr_objective_id_period_star_c40598a8_uniq ON public.analytics_objectiveprogress USING btree (objective_id, period_start, granularity)
  • CREATE INDEX analytics_objectiveprogress_period_start_024867b4 ON public.analytics_objectiveprogress USING btree (period_start)
  • CREATE INDEX analytics_objectiveprogress_objective_id_0171a01d ON public.analytics_objectiveprogress USING btree (objective_id)
  • CREATE INDEX analytics_o_objecti_3af706_idx ON public.analytics_objectiveprogress USING btree (objective_id, period_start)
  • CREATE INDEX analytics_o_granula_f65564_idx ON public.analytics_objectiveprogress USING btree (granularity, period_start)

Check Constraints

  • op_target_ge0: (target_value >= (0.0)::double precision)
  • op_completion_0_100: ((completion_pct >= (0.0)::double precision) AND (completion_pct <= (100.0)::double precision))
  • op_current_ge0: (current_value >= (0.0)::double precision)

Sample Data (0 of 0 rows)

No data

processing_metrics
0 rows 19 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 date date NO
3 created_at timestamptz NO
4 updated_at timestamptz NO
5 total_invoices_received int4 NO
6 total_invoices_processed int4 NO
7 total_invoices_completed int4 NO
8 total_invoices_failed int4 NO
9 average_processing_time float8 YES
10 total_processing_time float8 NO
11 average_confidence_score float8 YES
12 successful_vendor_matches int4 NO
13 failed_vendor_matches int4 NO
14 ocr_errors int4 NO
15 vendor_matching_errors int4 NO
16 yardi_upload_errors int4 NO
17 other_errors int4 NO
18 total_amount_processed numeric NO
19 average_amount_per_invoice numeric YES

Indexes

  • CREATE UNIQUE INDEX processing_metrics_date_key ON public.processing_metrics USING btree (date)
  • CREATE INDEX processing__total_i_2a4cb7_idx ON public.processing_metrics USING btree (total_invoices_processed)
  • CREATE INDEX processing__date_752281_idx ON public.processing_metrics USING btree (date)
  • CREATE INDEX processing__average_cc6178_idx ON public.processing_metrics USING btree (average_processing_time)
  • CREATE UNIQUE INDEX processing_metrics_pkey ON public.processing_metrics USING btree (id)

Sample Data (0 of 0 rows)

No data

processing_objectives
0 rows 13 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 description text YES
4 target_value float8 NO
5 current_value float8 NO
6 unit varchar(50) NO
7 start_date date NO
8 end_date date NO
9 status varchar(20) NO
10 progress_percentage float8 NO
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX processing_objectives_created_by_id_61b4e17f ON public.processing_objectives USING btree (created_by_id)
  • CREATE INDEX processing__status_217f5a_idx ON public.processing_objectives USING btree (status)
  • CREATE INDEX processing__start_d_79dda5_idx ON public.processing_objectives USING btree (start_date, end_date)
  • CREATE INDEX processing__progres_1b39ff_idx ON public.processing_objectives USING btree (progress_percentage)
  • CREATE UNIQUE INDEX processing_objectives_pkey ON public.processing_objectives USING btree (id)

Sample Data (0 of 0 rows)

No data

๐Ÿ“‹ Leasing & Screening 6 tables ยท 238 rows
move_in_photo
126 rows 11 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 inspection_id uuid NO ๐Ÿ”— โ†’ move_in_inspection.id
3 room_id uuid YES ๐Ÿ”— โ†’ move_in_room.id
4 photo_url varchar(500) NO
5 gps_lat numeric YES
6 gps_lng numeric YES
7 captured_at timestamptz YES
8 ai_quality_score numeric YES
9 is_acceptable bool NO true
10 ai_items_found jsonb NO '[]'::jsonb
11 created_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX idx_move_in_photo_room_id ON public.move_in_photo USING btree (room_id)
  • CREATE INDEX idx_move_in_photo_inspection_id ON public.move_in_photo USING btree (inspection_id)
  • CREATE INDEX idx_move_in_photo_room ON public.move_in_photo USING btree (room_id)
  • CREATE UNIQUE INDEX move_in_photo_pkey ON public.move_in_photo USING btree (id)

Sample Data (3 of 126 rows)

idinspection_idroom_idphoto_urlgps_latgps_lngcaptured_atai_quality_scoreis_acceptableai_items_foundcreated_at
f8f03244-5e76-4440-9395-3b432343076ea35a2fe6-bd00-4be5-9358-8f6c4a20ccb438a065a4-ef1f-48f0-80a3-4b6fbdd61450/media/inspections/a35a2fe6-bd00-4be5-9358-8f6c4a20ccb4/living_room_1.jpg43.843548-113.0171252026-04-02T10:04:31.230433+02:000.58True[{"item": "Cracked tile", "severity": "major", "description": "Hairline crack in bathroom floor tile2026-04-03T10:04:31.238352+02:00
0159952c-deec-4ed7-83d7-14d8dfb70488a35a2fe6-bd00-4be5-9358-8f6c4a20ccb438a065a4-ef1f-48f0-80a3-4b6fbdd61450/media/inspections/a35a2fe6-bd00-4be5-9358-8f6c4a20ccb4/living_room_2.jpg30.039587-120.0266422026-04-02T08:04:31.230433+02:000.86True[{"item": "Cracked tile", "severity": "major", "description": "Hairline crack in bathroom floor tile2026-04-03T10:04:31.241471+02:00
809e70a7-7756-4068-b22c-abd27e154bdaa35a2fe6-bd00-4be5-9358-8f6c4a20ccb4cbaa3e25-69a1-421c-b956-75c78e5c4e64/media/inspections/a35a2fe6-bd00-4be5-9358-8f6c4a20ccb4/kitchen_1.jpg34.088175-79.0006562026-04-01T20:04:31.230433+02:000.79True[{"item": "Wall scuff", "severity": "minor", "description": "Light scuff on drywall \u2014 normal mo2026-04-03T10:04:31.244259+02:00
move_in_room
47 rows 9 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 inspection_id uuid NO ๐Ÿ”— โ†’ move_in_inspection.id
3 room_type varchar(50) NO
4 room_name varchar(100) NO
5 overall_condition varchar(20) NO 'good'::character varying
6 notes text NO ''::text
7 is_complete bool NO false
8 created_at timestamptz NO now()
9 checklist_items jsonb YES '[]'::jsonb

Foreign Keys

Indexes

  • CREATE INDEX idx_move_in_room_inspection_id ON public.move_in_room USING btree (inspection_id)
  • CREATE INDEX idx_move_in_room_inspection ON public.move_in_room USING btree (inspection_id)
  • CREATE UNIQUE INDEX move_in_room_pkey ON public.move_in_room USING btree (id)

Sample Data (3 of 47 rows)

idinspection_idroom_typeroom_nameoverall_conditionnotesis_completecreated_atchecklist_items
38a065a4-ef1f-48f0-80a3-4b6fbdd61450a35a2fe6-bd00-4be5-9358-8f6c4a20ccb4living_roomLiving RoomfairPre-existing condition noted at move-in.True2026-04-03T10:04:31.236014+02:00[{"name": "Walls", "notes": "", "condition": "excellent"}, {"name": "Ceiling", "notes": "", "conditi
cbaa3e25-69a1-421c-b956-75c78e5c4e64a35a2fe6-bd00-4be5-9358-8f6c4a20ccb4kitchenKitchenfairPre-existing condition noted at move-in.True2026-04-03T10:04:31.243096+02:00[{"name": "Walls", "notes": "", "condition": "good"}, {"name": "Ceiling", "notes": "", "condition":
31d3924b-b4f2-4504-9eb1-14a1f9dfd05ca35a2fe6-bd00-4be5-9358-8f6c4a20ccb4bedroomBedroom 1goodTrue2026-04-03T10:04:31.247086+02:00[{"name": "Walls", "notes": "", "condition": "excellent"}, {"name": "Ceiling", "notes": "", "conditi
generated_lease
25 rows 19 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 tenant_name varchar(200) NO
5 tenant_email varchar(254) NO
6 monthly_rent numeric NO
7 deposit numeric NO
8 lease_start date NO
9 lease_end date NO
10 jurisdiction varchar(100) NO 'California'::character varying
11 status varchar(20) NO 'draft'::character varying
12 overall_risk_score int4 NO 0
13 clauses jsonb NO '[]'::jsonb
14 addenda jsonb NO '[]'::jsonb
15 pdf_url varchar(500) NO ''::character varying
16 renewal_of_id uuid YES ๐Ÿ”— โ†’ generated_lease.id
17 rent_escalation_pct numeric YES
18 created_at timestamptz NO now()
19 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX generated_lease_lease_end_idx ON public.generated_lease USING btree (lease_end)
  • CREATE INDEX generated_lease_lease_start_idx ON public.generated_lease USING btree (lease_start)
  • CREATE INDEX generated_lease_property_idx ON public.generated_lease USING btree (property_id)
  • CREATE INDEX generated_lease_unit_idx ON public.generated_lease USING btree (unit_id)
  • CREATE UNIQUE INDEX generated_lease_pkey ON public.generated_lease USING btree (id)
  • CREATE INDEX generated_lease_status_idx ON public.generated_lease USING btree (status)
  • CREATE INDEX idx_generated_lease_status ON public.generated_lease USING btree (status)

Sample Data (3 of 25 rows)

idunit_idproperty_idtenant_nametenant_emailmonthly_rentdepositlease_startlease_endjurisdictionstatusoverall_risk_scoreclausesaddendapdf_urlrenewal_of_idrent_escalation_pctcreated_atupdated_at
890c9c9e-b440-483d-82ae-be150a8c3ca579a37f2a-08e0-4b64-9f67-76ea250dcd27ecf17e6e-04b6-48ef-a23e-1ab1b8e88690Marcus Webbmarcus.webb@example.com2040.594081.182026-09-202027-09-20Texasdraft55[{"id": "1", "text": "Tenant agrees to pay the monthly rent of 2040.59 on or before the 1st day of e[{"type": "storage", "title": "Storage Addendum", "content": "Tenant is assigned storage unit(s) at NULLNULL2026-03-29T20:08:39.617538+02:002026-03-29T20:08:39.617552+02:00
bb2a20c3-3fd5-4473-b7b7-d4a2af444dde6c59467b-f52f-4665-80b7-0da79c6c2ac5821af994-2185-4eb9-b8b2-31b72fb5fd72Priya Sharmapriya.sharma@example.com1726.53453.02026-08-192027-08-19Illinoisdraft55[{"id": "1", "text": "Tenant agrees to pay the monthly rent of 1726.5 on or before the 1st day of ea[{"type": "parking", "title": "Parking Addendum", "content": "Tenant is assigned parking space(s) asNULLNULL2026-03-29T20:08:39.620436+02:002026-03-29T20:08:39.620445+02:00
33f45115-8b91-4cc5-906d-03cb9e6377b0347488f0-21b3-4c1d-810c-10c708501354821af994-2185-4eb9-b8b2-31b72fb5fd72Jordan Ellisjordan.ellis@example.com3761.727523.442026-07-282027-07-28New Yorksigned55[{"id": "1", "text": "Tenant agrees to pay the monthly rent of 3761.72 on or before the 1st day of e[]NULLNULL2026-03-29T20:08:39.622227+02:002026-03-29T20:08:39.622236+02:00
screening_application
23 rows 30 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 first_name varchar(100) NO
5 last_name varchar(100) NO
6 email varchar(254) NO
7 phone varchar(20) NO ''::character varying
8 monthly_income numeric NO
9 employment_status varchar(30) NO 'full_time'::character varying
10 employment_start_date date YES
11 employer_name varchar(200) NO ''::character varying
12 eviction_history bool NO false
13 credit_score_band varchar(20) NO 'good'::character varying
14 rental_history_years int4 NO 0
15 current_landlord_reference bool NO true
16 ai_score int4 YES
17 ai_recommendation varchar(30) NO ''::character varying
18 income_score int4 YES
19 employment_score int4 YES
20 rental_history_score int4 YES
21 credit_score_value int4 YES
22 risk_factors jsonb NO '[]'::jsonb
23 status varchar(20) NO 'pending'::character varying
24 reviewed_by varchar(100) NO ''::character varying
25 reviewed_at timestamptz YES
26 created_at timestamptz NO now()
27 updated_at timestamptz NO now()
28 background_check_status varchar(20) NO 'not_started'::character varying
29 background_check_results jsonb NO '{}'::jsonb
30 background_check_completed_at timestamptz YES

Foreign Keys

Indexes

  • CREATE INDEX screening_app_property_idx ON public.screening_application USING btree (property_id)
  • CREATE INDEX idx_screening_app_unit ON public.screening_application USING btree (unit_id)
  • CREATE INDEX idx_screening_app_status ON public.screening_application USING btree (status)
  • CREATE INDEX screening_app_created_idx ON public.screening_application USING btree (created_at)
  • CREATE INDEX screening_app_unit_idx ON public.screening_application USING btree (unit_id)
  • CREATE INDEX screening_app_recommendation_idx ON public.screening_application USING btree (ai_recommendation)
  • CREATE INDEX screening_app_status_idx ON public.screening_application USING btree (status)
  • CREATE UNIQUE INDEX screening_application_pkey ON public.screening_application USING btree (id)

Sample Data (3 of 23 rows)

idunit_idproperty_idfirst_namelast_nameemailphonemonthly_incomeemployment_statusemployment_start_dateemployer_nameeviction_historycredit_score_bandrental_history_yearscurrent_landlord_referenceai_scoreai_recommendationincome_scoreemployment_scorerental_history_scorecredit_score_valuerisk_factorsstatusreviewed_byreviewed_atcreated_atupdated_atbackground_check_statusbackground_check_resultsbackground_check_completed_at
d00942f1-e2d8-4d3d-ab7a-e234bc42bde405a5751a-e62b-41ec-bafa-8f676118a4188b8ea261-3e4c-46e2-bfd1-407f3e571414JohnDoejohn@dsa.cm12313125000.0part_time2026-04-13jhgkjhgjkhgFalseexcellent3FalseNULLNULLNULLNULLNULL[]pendingNULL2026-04-03T18:03:10.975881+02:002026-04-03T18:03:10.975897+02:00not_started{}NULL
4d234697-f146-4025-9589-010fbb7bae9fe8c552a6-2e33-4736-beaf-51ff0d3fa495a03e48a1-5e56-4c8b-b817-cbe072bb6056TestUsertest@test.com55512345000.0part_time2026-04-13TestFalseexcellent3FalseNULLNULLNULLNULLNULL[]pendingNULL2026-04-03T18:05:46.558237+02:002026-04-03T18:05:46.55825+02:00not_started{}NULL
26f2024b-bc3c-4220-bfb2-225b881af930e8c552a6-2e33-4736-beaf-51ff0d3fa495a03e48a1-5e56-4c8b-b817-cbe072bb6056RafaelVieirarafaeL@deploystaff.com2313213125000.0full_time2026-04-15DeployStaffFalsegood3False72conditional_approve30101220[{"detail": "Employment tenure is -0.0 years \u2014 less than the 1-year preferred minimum.", "factoapprovedSystem Admin2026-04-03T18:15:51.782463+02:002026-04-03T18:07:08.957016+02:002026-04-03T18:15:51.782476+02:00completed{"checks": [{"check": "Credit Report", "status": "clear", "details": [{"label": "Credit Score", "val2026-04-03T18:15:27.087501+02:00
move_in_inspection
9 rows 17 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 unit_id uuid NO ๐Ÿ”— โ†’ units_unit.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id
4 inspector_name varchar(200) NO
5 tenant_name varchar(200) NO ''::character varying
6 status varchar(20) NO 'in_progress'::character varying
7 rooms_required jsonb NO '[]'::jsonb
8 rooms_completed jsonb NO '[]'::jsonb
9 completeness_pct int4 NO 0
10 overall_condition_score numeric YES
11 tenant_signature_url varchar(500) NO ''::character varying
12 tenant_signed_at timestamptz YES
13 manager_signature_url varchar(500) NO ''::character varying
14 manager_signed_at timestamptz YES
15 report_pdf_url varchar(500) NO ''::character varying
16 created_at timestamptz NO now()
17 updated_at timestamptz NO now()

Foreign Keys

Indexes

  • CREATE INDEX idx_move_in_inspection_unit_id ON public.move_in_inspection USING btree (unit_id)
  • CREATE INDEX idx_move_in_inspection_status ON public.move_in_inspection USING btree (status)
  • CREATE INDEX idx_move_in_inspection_created_at ON public.move_in_inspection USING btree (created_at)
  • CREATE INDEX idx_move_in_inspection_property_id ON public.move_in_inspection USING btree (property_id)
  • CREATE UNIQUE INDEX move_in_inspection_pkey ON public.move_in_inspection USING btree (id)

Sample Data (3 of 9 rows)

idunit_idproperty_idinspector_nametenant_namestatusrooms_requiredrooms_completedcompleteness_pctoverall_condition_scoretenant_signature_urltenant_signed_atmanager_signature_urlmanager_signed_atreport_pdf_urlcreated_atupdated_at
a35a2fe6-bd00-4be5-9358-8f6c4a20ccb44caac19f-c4c4-40f3-8b5d-83769b4e20e0380bb4f2-3e10-4966-89b4-0f39c25d6765Carlos RiveraJerome Walterscompleted["Living Room", "Kitchen", "Bedroom 1", "Bathroom", "Balcony", "Closet", "Hallway"]["Living Room", "Kitchen", "Bedroom 1", "Bathroom", "Balcony", "Closet", "Hallway"]1004.4/media/signatures/tenant_1.png2026-03-31T10:04:31.230433+02:00/media/signatures/manager_1.png2026-03-31T10:04:31.230433+02:00/media/inspection-reports/report_inspection_1.pdf2026-04-03T10:04:31.2312+02:002026-04-03T10:04:31.231206+02:00
4bc55811-ae68-496b-a3f3-e4b437bd20b0dfe6b273-ca08-49b8-8336-43103c9624f631b9e771-55fb-4ddc-bcab-3d5b8f341c20Dana MossAnita Singhcompleted["Living Room", "Kitchen", "Bedroom 1", "Bathroom", "Hallway"]["Living Room", "Kitchen", "Bedroom 1", "Bathroom", "Hallway"]1003.0/media/signatures/tenant_2.png2026-03-26T09:04:31.230433+01:00/media/signatures/manager_2.png2026-03-31T10:04:31.230433+02:00/media/inspection-reports/report_inspection_2.pdf2026-04-03T10:04:31.26666+02:002026-04-03T10:04:31.266663+02:00
565025ce-8a35-44a8-826d-14eba5ed44e3a402e327-9429-4100-ba86-63329b4fe91b43389a68-9a5f-4262-819f-7d7a71066ba2Patrick OseiLucas Moreauin_progress["Living Room", "Kitchen", "Bedroom 1", "Bedroom 2", "Bathroom", "Dining Room"]["Living Room", "Kitchen", "Bedroom 1", "Bedroom 2", "Bathroom"]83NULLNULLNULL2026-04-03T10:04:31.286065+02:002026-04-03T10:04:31.286073+02:00
move_in_inspector
8 rows 8 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 name varchar(200) NO
3 email varchar(254) YES ''::character varying
4 phone varchar(20) YES ''::character varying
5 role varchar(100) YES 'Inspector'::character varying
6 is_active bool YES true
7 properties_assigned jsonb YES '[]'::jsonb
8 created_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX move_in_inspector_pkey ON public.move_in_inspector USING btree (id)

Sample Data (3 of 8 rows)

idnameemailphoneroleis_activeproperties_assignedcreated_at
3ab60503-9f1f-403c-a12a-4ad6c41e9cd2Carlos Riveracarlos.rivera@unitcycle.com(317) 555-0142Senior InspectorTrue[]2026-04-03T13:13:59.152172+02:00
1bf0808d-bd84-46c7-bfcd-4c4f124a4a9eDana Mossdana.moss@unitcycle.com(317) 555-0198InspectorTrue[]2026-04-03T13:13:59.152172+02:00
2366eaf5-5e03-4e8b-87cd-ebba381a4983Patrick Oseipatrick.osei@unitcycle.com(317) 555-0167InspectorTrue[]2026-04-03T13:13:59.152172+02:00
๐Ÿ“ก IoT Sensors 4 tables ยท 16,336 rows
iot_sensor_readings
16,224 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 value numeric NO
3 timestamp timestamptz NO
4 is_anomaly bool NO
5 anomaly_reason varchar(200) NO
6 created_at timestamptz NO
7 sensor_id uuid NO ๐Ÿ”— โ†’ iot_sensors.id

Foreign Keys

Indexes

  • CREATE INDEX iot_sensor__sensor__62658b_idx ON public.iot_sensor_readings USING btree (sensor_id, "timestamp")
  • CREATE INDEX iot_sensor__is_anom_72ab4f_idx ON public.iot_sensor_readings USING btree (is_anomaly, "timestamp")
  • CREATE UNIQUE INDEX iot_sensor_readings_pkey ON public.iot_sensor_readings USING btree (id)
  • CREATE INDEX iot_sensor_readings_timestamp_a43a459d ON public.iot_sensor_readings USING btree ("timestamp")
  • CREATE INDEX iot_sensor_readings_sensor_id_71bdb469 ON public.iot_sensor_readings USING btree (sensor_id)

Sample Data (3 of 16,224 rows)

idvaluetimestampis_anomalyanomaly_reasoncreated_atsensor_id
141.482026-03-02T08:41:27.106867+01:00False2026-04-01T09:54:27.304621+02:008e63bc46-df4e-42bb-9366-3481d8cc09f8
242.722026-03-02T04:44:27.106867+01:00False2026-04-01T09:54:27.304642+02:008e63bc46-df4e-42bb-9366-3481d8cc09f8
337.732026-03-02T00:43:27.106867+01:00False2026-04-01T09:54:27.304652+02:008e63bc46-df4e-42bb-9366-3481d8cc09f8
iot_sensors
90 rows 23 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 sensor_type varchar(20) NO
4 manufacturer varchar(200) NO
5 model_number varchar(100) NO
6 serial_number varchar(100) NO
7 location_detail varchar(300) NO
8 threshold_min numeric YES
9 threshold_max numeric YES
10 threshold_unit varchar(20) NO
11 alert_priority varchar(20) NO
12 auto_create_wo bool NO
13 connection_status varchar(20) NO
14 last_reading_value numeric YES
15 last_reading_at timestamptz YES
16 battery_level int4 YES
17 is_active bool NO
18 installed_at date YES
19 created_at timestamptz NO
20 updated_at timestamptz NO
21 equipment_id uuid YES ๐Ÿ”— โ†’ predictive_maintenance_equipment.id
22 property_id uuid NO ๐Ÿ”— โ†’ properties.id
23 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id

Foreign Keys

Indexes

  • CREATE INDEX iot_sensors_equipment_id_8615279c ON public.iot_sensors USING btree (equipment_id)
  • CREATE UNIQUE INDEX iot_sensors_pkey ON public.iot_sensors USING btree (id)
  • CREATE INDEX iot_sensors_unit_id_ad18b5ab ON public.iot_sensors USING btree (unit_id)
  • CREATE INDEX iot_sensors_property_id_b83b4a1c ON public.iot_sensors USING btree (property_id)

Sample Data (3 of 90 rows)

idnamesensor_typemanufacturermodel_numberserial_numberlocation_detailthreshold_minthreshold_maxthreshold_unitalert_priorityauto_create_woconnection_statuslast_reading_valuelast_reading_atbattery_levelis_activeinstalled_atcreated_atupdated_atequipment_idproperty_idunit_id
8e63bc46-df4e-42bb-9366-3481d8cc09f8Siemens Temperature Sensor #1temperatureSiemensQAA2012SN-0B863FD6Flur 3. OG - Westridge Gardens15.085.0ยฐCmediumTrueonline41.132026-04-01T09:48:27.106867+02:0087True2025-03-012026-04-01T09:54:27.134786+02:002026-04-01T09:54:27.134797+02:0080d0cc32-10c2-4780-8a4a-d0783f17066635b664ba-bb75-4318-ae24-07b47a445345NULL
56506860-71aa-45ad-bc6b-ea23da67cfe7Siemens Temperature Sensor #2temperatureSiemensQAA2012SN-7FE6BFC1Erdgeschoss - Willowbrook Square Phase 115.085.0ยฐCmediumTrueonline37.472026-04-01T08:56:27.106867+02:0030True2025-05-142026-04-01T09:54:27.134831+02:002026-04-01T09:54:27.134836+02:001170223b-2f1f-4a01-9bfc-2c41bfc9a256ef4f1816-561d-4f47-a5ef-efc80771f2d2NULL
b7dc4442-716e-46b9-a13b-b3e541c02ca6Siemens Temperature Sensor #3temperatureSiemensQAA2012SN-8ADF4E99Tiefgarage - Willowbrook Square Phase 115.085.0ยฐCmediumTrueonline38.632026-04-01T09:43:27.106867+02:0049True2025-06-242026-04-01T09:54:27.13486+02:002026-04-01T09:54:27.134862+02:001170223b-2f1f-4a01-9bfc-2c41bfc9a256ef4f1816-561d-4f47-a5ef-efc80771f2d2NULL
iot_wo_source
21 rows 17 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 sensor_id uuid NO
4 sensor_name varchar(200) NO
5 sensor_type varchar(20) NO
6 sensor_type_display varchar(50) NO
7 property_name varchar(200) NO
8 location_detail varchar(300) NO
9 equipment_name varchar(200) NO
10 reading_value numeric NO
11 threshold_min numeric YES
12 threshold_max numeric YES
13 threshold_unit varchar(20) NO
14 alert_description text NO
15 alert_priority varchar(20) NO
16 triggered_at timestamptz NO
17 created_at timestamptz NO

Indexes

  • CREATE INDEX iot_wo_source_sensor_id_65b55445 ON public.iot_wo_source USING btree (sensor_id)
  • CREATE UNIQUE INDEX iot_wo_source_work_order_id_key ON public.iot_wo_source USING btree (work_order_id)
  • CREATE UNIQUE INDEX iot_wo_source_pkey ON public.iot_wo_source USING btree (id)

Sample Data (3 of 21 rows)

idwork_order_idsensor_idsensor_namesensor_typesensor_type_displayproperty_namelocation_detailequipment_namereading_valuethreshold_minthreshold_maxthreshold_unitalert_descriptionalert_prioritytriggered_atcreated_at
1bcd235bb-9b09-4baa-a10b-e67ca220e0c767a021d4-c3e7-4524-9e26-4c9efe5bfe63Airthings Air Quality Sensor #40air_qualityAir QualitySummit Ridge ApartmentsAufzugsschacht - Summit Ridge ApartmentsMaico WS 320627.270.0500.0AQIAir Quality reading of 627.27 AQI exceeds maximum threshold of 500.00 AQIlow2026-04-01T11:49:52.688935+02:002026-04-01T11:49:52.699084+02:00
2e66e169b-c376-4f54-a3e7-c53bef20960467a021d4-c3e7-4524-9e26-4c9efe5bfe63Airthings Air Quality Sensor #40air_qualityAir QualitySummit Ridge ApartmentsAufzugsschacht - Summit Ridge ApartmentsMaico WS 320553.750.0500.0AQIAir Quality reading of 553.75 AQI exceeds maximum threshold of 500.00 AQIlow2026-04-01T11:49:52.818325+02:002026-04-01T11:49:52.828528+02:00
3406eb46a-8fc9-4a9e-b563-9ec4b57ce60e67a021d4-c3e7-4524-9e26-4c9efe5bfe63Airthings Air Quality Sensor #40air_qualityAir QualitySummit Ridge ApartmentsAufzugsschacht - Summit Ridge ApartmentsMaico WS 320629.230.0500.0AQIAir Quality reading of 629.23 AQI exceeds maximum threshold of 500.00 AQIlow2026-04-01T11:52:04.840136+02:002026-04-01T11:52:04.852261+02:00
iot_integration_config
1 rows 12 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 provider_name varchar(30) NO
3 display_name varchar(200) NO
4 endpoint_url varchar(200) NO
5 api_key varchar(500) NO
6 polling_interval_seconds int4 NO
7 is_enabled bool NO
8 last_sync_at timestamptz YES
9 last_sync_status varchar(50) NO
10 config_json jsonb NO
11 created_at timestamptz NO
12 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX iot_integration_config_pkey ON public.iot_integration_config USING btree (id)

Sample Data (1 of 1 rows)

idprovider_namedisplay_nameendpoint_urlapi_keypolling_interval_secondsis_enabledlast_sync_atlast_sync_statusconfig_jsoncreated_atupdated_at
1mockUnitCycle Demo IoT Hubhttps://iot-demo.unitcycle.de/api/v1demo-api-key-iot-2024-unitcycle300True2026-04-01T09:54:27.095996+02:00success{"qos": 1, "retain": true, "topics": ["sensors/#", "alerts/#"], "protocol": "MQTT"}2026-04-01T09:54:27.098515+02:002026-04-01T09:54:27.098523+02:00
๐Ÿ“ฆ Assets 9 tables ยท 49,139 rows
assets_lifecycle
23,853 rows 13 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 event_type varchar(30) NO
3 event_date timestamptz NO
4 description text NO
5 previous_status varchar(20) NO
6 new_status varchar(20) NO
7 cost numeric YES
8 value_impact numeric YES
9 document_reference varchar(200) NO
10 notes text NO
11 created_at timestamptz NO
12 asset_id uuid NO ๐Ÿ”— โ†’ assets_asset.id
13 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX assets_lifecycle_created_by_id_a83245c5 ON public.assets_lifecycle USING btree (created_by_id)
  • CREATE UNIQUE INDEX assets_lifecycle_pkey ON public.assets_lifecycle USING btree (id)
  • CREATE INDEX assets_lifecycle_asset_id_a6ac8afa ON public.assets_lifecycle USING btree (asset_id)

Sample Data (3 of 23,853 rows)

idevent_typeevent_datedescriptionprevious_statusnew_statuscostvalue_impactdocument_referencenotescreated_atasset_idcreated_by_id
dd4a9a4b-7499-41b1-b5c6-9d964889c1f9deployment2023-01-04T01:00:00+01:00Asset deployed to Corporate HeadquartersnewactiveNULLNULL2025-09-21T17:31:26.678747+02:00b8e6a726-eaca-45a3-a34e-f16fd4b196bc1
de7a676e-37ec-4970-a674-b2a871a448ecprocurement2023-08-21T02:00:00+02:00Asset procured: Executive Floor Generator - Corporate Headquartersnew40185.0NULL2025-09-21T17:31:26.658282+02:00917e8cbd-4156-4e77-bb56-9f7d05f511111
34acfdca-4036-4f45-835a-2311dfab7809repair2023-12-13T01:00:00+01:00Repair performed on Executive Floor Generator - Corporate Headquarters122.0NULL2025-09-21T17:31:26.658282+02:00917e8cbd-4156-4e77-bb56-9f7d05f511111
assets_asset
22,743 rows 41 cols 7 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 asset_tag varchar(100) NO
4 description text NO
5 manufacturer varchar(200) NO
6 model_number varchar(100) NO
7 serial_number varchar(100) NO
8 purchase_date date YES
9 purchase_price numeric YES
10 acquisition_cost numeric YES
11 current_value numeric YES
12 salvage_value numeric YES
13 depreciation_method varchar(30) NO
14 useful_life_years int4 YES
15 insurance_value numeric YES
16 insurance_policy_number varchar(100) NO
17 status varchar(20) NO
18 condition varchar(20) NO
19 warranty_start_date date YES
20 warranty_end_date date YES
21 warranty_provider varchar(200) NO
22 warranty_terms text NO
23 last_maintenance_date date YES
24 next_maintenance_date date YES
25 maintenance_frequency_days int4 YES
26 compliance_certificate_number varchar(100) NO
27 compliance_expiry_date date YES
28 safety_inspection_date date YES
29 disposal_date date YES
30 disposal_method varchar(100) NO
31 disposal_value numeric YES
32 disposal_notes text NO
33 created_at timestamptz NO
34 updated_at timestamptz NO
35 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
36 legacy_property_id uuid YES ๐Ÿ”— โ†’ properties.id
37 parent_asset_id uuid YES ๐Ÿ”— โ†’ assets_asset.id
38 service_provider_id uuid YES ๐Ÿ”— โ†’ vendors_vendor.id
39 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id
40 category_id uuid YES ๐Ÿ”— โ†’ assets_category.id
41 organization_level_id uuid YES ๐Ÿ”— โ†’ assets_organization_level.id

Foreign Keys

Indexes

  • CREATE INDEX assets_asset_parent_asset_id_e474864e ON public.assets_asset USING btree (parent_asset_id)
  • CREATE INDEX assets_asset_service_provider_id_34a1f5c3 ON public.assets_asset USING btree (service_provider_id)
  • CREATE INDEX assets_asset_unit_id_aaaeaf09 ON public.assets_asset USING btree (unit_id)
  • CREATE INDEX assets_asset_category_id_b30c6baf ON public.assets_asset USING btree (category_id)
  • CREATE INDEX assets_asset_asset_tag_38583dec_like ON public.assets_asset USING btree (asset_tag varchar_pattern_ops)
  • CREATE INDEX assets_asset_created_by_id_4d70f031 ON public.assets_asset USING btree (created_by_id)
  • CREATE INDEX assets_asset_legacy_property_id_f4025565 ON public.assets_asset USING btree (legacy_property_id)
  • CREATE INDEX assets_asset_organization_level_id_8ad9cf9d ON public.assets_asset USING btree (organization_level_id)
  • CREATE UNIQUE INDEX assets_asset_asset_tag_key ON public.assets_asset USING btree (asset_tag)
  • CREATE UNIQUE INDEX assets_asset_pkey ON public.assets_asset USING btree (id)

Sample Data (3 of 22,743 rows)

idnameasset_tagdescriptionmanufacturermodel_numberserial_numberpurchase_datepurchase_priceacquisition_costcurrent_valuesalvage_valuedepreciation_methoduseful_life_yearsinsurance_valueinsurance_policy_numberstatusconditionwarranty_start_datewarranty_end_datewarranty_providerwarranty_termslast_maintenance_datenext_maintenance_datemaintenance_frequency_dayscompliance_certificate_numbercompliance_expiry_datesafety_inspection_datedisposal_datedisposal_methoddisposal_valuedisposal_notescreated_atupdated_atcreated_by_idlegacy_property_idparent_asset_idservice_provider_idunit_idcategory_idorganization_level_id
aca3f6e8-8c74-46ac-a7e3-03eb0f650135Maintenance Van - Corporate HeadquartersAST-000031Maintenance Van located at Corporate HeadquartersFordMODEL-3856SN1802292023-02-0465175.075610.9552835.9611078.61straight_line563647.39POL-666158activefair2023-02-042026-01-19ManufacturerNULL2025-12-08NULLNULLNULLNULLNULL2025-09-21T17:31:25.092427+02:002025-09-21T17:31:25.092427+02:001NULLNULLNULLNULL6e207974-0b52-49ad-935b-beb4ea8d94563ee2a64d-29e2-474c-857b-e9eab1ced2a7
a4820a65-a1e4-4623-87c6-91cd2c6467dcCorporate Fleet Vehicle - Corporate HeadquartersAST-000032Corporate Fleet Vehicle located at Corporate HeadquartersFordMODEL-8864SN5179942021-10-2431022.037022.4611973.443563.56declining_balance437174.72POL-643737activegood2021-10-242023-10-14Extended Warranty Co2022-10-082026-06-17365NULLNULLNULLNULL2025-09-21T17:31:25.092427+02:002025-09-21T17:31:25.092427+02:001NULLNULLNULLNULLe8229639-a110-41d9-8374-e855d71765193ee2a64d-29e2-474c-857b-e9eab1ced2a7
2d0f2900-ef99-418a-82e7-6014665bf46eExecutive Workstations - Corporate HeadquartersAST-000033Executive Workstations located at Corporate HeadquartersFordMODEL-6205SN3212342024-04-03598.0659.12374.3672.5straight_line13577.46POL-812780maintenanceexcellent2024-04-032025-03-29Extended Warranty CoNULL2026-04-21365NULLNULLNULLNULL2025-09-21T17:31:25.093429+02:002025-09-21T17:31:25.093429+02:001NULLNULLNULLNULLf27b28e6-2fba-48ac-90b4-a9ac49fe6c773ee2a64d-29e2-474c-857b-e9eab1ced2a7
assets_maintenance
1,468 rows 23 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 maintenance_type varchar(50) NO
3 title varchar(200) NO
4 description text NO
5 priority varchar(20) NO
6 scheduled_date timestamptz NO
7 completed_date timestamptz YES
8 actual_duration_hours numeric YES
9 assigned_technician varchar(200) NO
10 status varchar(20) NO
11 labor_cost numeric YES
12 parts_cost numeric YES
13 total_cost numeric YES
14 findings text NO
15 recommendations text NO
16 follow_up_required bool NO
17 next_maintenance_date date YES
18 work_order_number varchar(100) NO
19 created_at timestamptz NO
20 updated_at timestamptz NO
21 asset_id uuid NO ๐Ÿ”— โ†’ assets_asset.id
22 assigned_vendor_id uuid YES ๐Ÿ”— โ†’ vendors_vendor.id
23 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX assets_maintenance_created_by_id_3bf9a733 ON public.assets_maintenance USING btree (created_by_id)
  • CREATE UNIQUE INDEX assets_maintenance_pkey ON public.assets_maintenance USING btree (id)
  • CREATE INDEX assets_maintenance_asset_id_c201b606 ON public.assets_maintenance USING btree (asset_id)
  • CREATE INDEX assets_maintenance_assigned_vendor_id_f8f81e47 ON public.assets_maintenance USING btree (assigned_vendor_id)

Sample Data (3 of 1,468 rows)

idmaintenance_typetitledescriptionpriorityscheduled_datecompleted_dateactual_duration_hoursassigned_technicianstatuslabor_costparts_costtotal_costfindingsrecommendationsfollow_up_requirednext_maintenance_datework_order_numbercreated_atupdated_atasset_idassigned_vendor_idcreated_by_id
4af8f46e-e936-4671-8dd0-5ffb46e458abcorrectiveAnnual Tenant Furniture MaintenanceScheduled maintenance for Executive Conference Table - Corporate Headquarterslow2025-06-29T02:00:00+02:002025-06-29T02:00:00+02:00NULLcancelledNULLNULLNULLFalseNULL2025-09-21T17:31:25.978942+02:002025-09-21T17:31:25.978942+02:0065d1fe20-c6bf-4e0f-994e-2fd05c025e60NULL1
b0ea8864-33ad-4ae4-a285-7e9dca4898baemergencyAnnual Equipment MaintenanceScheduled maintenance for Executive Floor Generator - Corporate Headquartershigh2025-03-12T01:00:00+01:002025-03-12T01:00:00+01:00NULLcompleted131.0379.0510.0Maintenance completed successfullyNext service in 12 monthsTrueNULL2025-09-21T17:31:25.975942+02:002025-09-21T17:31:25.975942+02:00917e8cbd-4156-4e77-bb56-9f7d05f51111NULL1
c798309f-f59a-4e39-bfc7-0ec623872a98emergencyMonthly Equipment MaintenanceScheduled maintenance for Executive Floor Generator - Corporate Headquartersmedium2025-07-11T02:00:00+02:002025-07-11T02:00:00+02:00NULLcompleted395.0588.0983.0Maintenance completed successfullyNext service in 9 monthsFalseNULL2025-09-21T17:31:25.976943+02:002025-09-21T17:31:25.976943+02:00917e8cbd-4156-4e77-bb56-9f7d05f51111NULL1
assets_location
975 rows 13 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 building_name varchar(200) NO
3 floor varchar(50) NO
4 room varchar(100) NO
5 location_details text NO
6 latitude numeric YES
7 longitude numeric YES
8 last_verified timestamptz YES
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 asset_id uuid NO ๐Ÿ”— โ†’ assets_asset.id
12 verified_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
13 organization_level_id uuid YES ๐Ÿ”— โ†’ assets_organization_level.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX assets_location_asset_id_key ON public.assets_location USING btree (asset_id)
  • CREATE INDEX assets_location_verified_by_id_73db598c ON public.assets_location USING btree (verified_by_id)
  • CREATE INDEX assets_location_organization_level_id_3f6d5a41 ON public.assets_location USING btree (organization_level_id)
  • CREATE UNIQUE INDEX assets_location_pkey ON public.assets_location USING btree (id)

Sample Data (3 of 975 rows)

idbuilding_namefloorroomlocation_detailslatitudelongitudelast_verifiedcreated_atupdated_atasset_idverified_by_idorganization_level_id
8e4053a6-e7b8-4b50-a7c9-d6d45f9dfa35Located in Corporate Headquarters40.69990584-73.994445582025-08-17T17:31:25.611294+02:002025-09-21T17:31:25.611294+02:002025-09-21T17:31:25.611294+02:00b69faeeb-5cfd-4f93-8c78-54d9ae70934fNULL3ee2a64d-29e2-474c-857b-e9eab1ced2a7
210cf707-1496-4f8e-b9e3-685f60941294Located in Corporate Headquarters40.77597994-73.921452692025-07-07T17:31:25.612294+02:002025-09-21T17:31:25.612294+02:002025-09-21T17:31:25.612294+02:00cd2ce21c-cb51-4915-8817-e214220e1defNULL3ee2a64d-29e2-474c-857b-e9eab1ced2a7
a916cbba-c1db-4660-a294-c4cd0c4db831Located in Corporate Headquarters40.80400191-74.059596652025-08-21T17:31:25.612294+02:002025-09-21T17:31:25.612294+02:002025-09-21T17:31:25.612294+02:0061b67049-93e3-42c1-b8a5-c1bfc0aaaa62NULL3ee2a64d-29e2-474c-857b-e9eab1ced2a7
assets_organization_level
71 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 level_type varchar(20) NO
4 description text NO
5 address text NO
6 created_at timestamptz NO
7 updated_at timestamptz NO
8 parent_id uuid YES ๐Ÿ”— โ†’ assets_organization_level.id

Foreign Keys

Indexes

  • CREATE INDEX assets_organization_level_parent_id_1241595d ON public.assets_organization_level USING btree (parent_id)
  • CREATE UNIQUE INDEX assets_organization_level_pkey ON public.assets_organization_level USING btree (id)
  • CREATE UNIQUE INDEX assets_organization_leve_name_level_type_parent_i_1a0400da_uniq ON public.assets_organization_level USING btree (name, level_type, parent_id)

Sample Data (3 of 71 rows)

idnamelevel_typedescriptionaddresscreated_atupdated_atparent_id
3ee2a64d-29e2-474c-857b-e9eab1ced2a7Corporate HeadquartershqMain corporate headquarters123 Corporate Blvd, Business City, BC 123452025-09-21T17:31:24.965399+02:002025-09-21T17:31:24.965399+02:00NULL
dce67713-9360-42a1-bdee-9f3edd86f3b1Real Estate Management CompanycompanyMain operating company456 Management Ave, Business City, BC 123462025-09-21T17:31:24.9664+02:002025-09-21T17:31:24.9664+02:003ee2a64d-29e2-474c-857b-e9eab1ced2a7
2fc01612-3887-42fb-b2a4-480e7cc80156Property: Arbor Pointe TownhomespropertyProperty at , , , , 2025-09-21T17:31:24.9694+02:002025-09-21T17:31:24.9694+02:00dce67713-9360-42a1-bdee-9f3edd86f3b1
assets_category
26 rows 9 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 category_type varchar(50) NO
4 description text NO
5 depreciation_years int4 NO
6 is_active bool NO
7 created_at timestamptz NO
8 updated_at timestamptz NO
9 parent_id uuid YES ๐Ÿ”— โ†’ assets_category.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX assets_category_name_key ON public.assets_category USING btree (name)
  • CREATE UNIQUE INDEX assets_category_pkey ON public.assets_category USING btree (id)
  • CREATE INDEX assets_category_name_c9ccbded_like ON public.assets_category USING btree (name varchar_pattern_ops)
  • CREATE INDEX assets_category_parent_id_54f4d17f ON public.assets_category USING btree (parent_id)

Sample Data (3 of 26 rows)

idnamecategory_typedescriptiondepreciation_yearsis_activecreated_atupdated_atparent_id
de99d509-6b0a-4ea9-8370-99b19ce626cdEquipmentequipmentEquipment and related equipment8True2025-09-21T17:31:24.938885+02:002025-09-21T17:31:24.938885+02:00NULL
a75bb297-4dad-4bbd-96f5-6d343b9dee08HVACequipmentHVAC subcategory6True2025-09-21T17:31:24.939884+02:002025-09-21T17:31:24.939884+02:00de99d509-6b0a-4ea9-8370-99b19ce626cd
4d4b5065-71a7-4397-8e02-c0ead0a8deb6ElevatorsequipmentElevators subcategory5True2025-09-21T17:31:24.941884+02:002025-09-21T17:31:24.941884+02:00de99d509-6b0a-4ea9-8370-99b19ce626cd
assets_transfer
3 rows 16 cols 5 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 transfer_date timestamptz NO
3 reason text NO
4 status varchar(20) NO
5 approval_date timestamptz YES
6 approval_notes text NO
7 completed_date timestamptz YES
8 transfer_cost numeric YES
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 approved_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
12 asset_id uuid NO ๐Ÿ”— โ†’ assets_asset.id
13 requested_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
14 from_level_id uuid YES ๐Ÿ”— โ†’ assets_organization_level.id
15 to_level_id uuid YES ๐Ÿ”— โ†’ assets_organization_level.id
16 reject_reason text NO

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX assets_transfer_pkey ON public.assets_transfer USING btree (id)
  • CREATE INDEX assets_transfer_from_level_id_69937a40 ON public.assets_transfer USING btree (from_level_id)
  • CREATE INDEX assets_transfer_asset_id_82bb8242 ON public.assets_transfer USING btree (asset_id)
  • CREATE INDEX assets_transfer_approved_by_id_52ffdc23 ON public.assets_transfer USING btree (approved_by_id)
  • CREATE INDEX assets_transfer_to_level_id_7fc6f588 ON public.assets_transfer USING btree (to_level_id)
  • CREATE INDEX assets_transfer_requested_by_id_5e07aa9d ON public.assets_transfer USING btree (requested_by_id)

Sample Data (3 of 3 rows)

idtransfer_datereasonstatusapproval_dateapproval_notescompleted_datetransfer_costcreated_atupdated_atapproved_by_idasset_idrequested_by_idfrom_level_idto_level_idreject_reason
36c60d24-f4c0-4af5-bca3-4f1b335d20662026-01-19T15:31:18.43777+01:00{"message": "Assigned from stock to Unit 100. Notes: Test assignment from API", ...completedNULL2026-01-19T15:31:18.437777+01:00NULL2026-01-19T15:31:18.438444+01:002026-01-19T15:31:18.43845+01:00NULLf755963f-0527-45d6-a0d6-d7fd09cc773aNULLNULLNULL
e36f81f2-f137-4208-8f42-0e91f395a79e2026-01-19T15:31:29.979745+01:00{"message": "Returned to stock from Unit 100. Notes: Testing return to stock", "...completedNULL2026-01-19T15:31:29.97975+01:00NULL2026-01-19T15:31:29.980148+01:002026-01-19T15:31:29.980154+01:00NULLf755963f-0527-45d6-a0d6-d7fd09cc773aNULLNULLNULL
a00ba910-b727-41be-981c-ff3ea9c770492026-01-22T11:25:39.098692+01:00{"message": "Assigned from stock to Unit 501-208", "from_unit_id": null, "to_uni...completedNULL2026-01-22T11:25:39.098699+01:00NULL2026-01-22T11:25:39.099411+01:002026-01-22T11:25:39.099418+01:00NULLf755963f-0527-45d6-a0d6-d7fd09cc773aNULLNULLNULL
assets_depreciation
0 rows 12 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 calculation_date date NO
3 period_start date NO
4 period_end date NO
5 initial_value numeric NO
6 depreciation_amount numeric NO
7 accumulated_depreciation numeric NO
8 book_value numeric NO
9 method varchar(30) NO
10 rate numeric YES
11 created_at timestamptz NO
12 asset_id uuid NO ๐Ÿ”— โ†’ assets_asset.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX assets_depreciation_pkey ON public.assets_depreciation USING btree (id)
  • CREATE UNIQUE INDEX assets_depreciation_asset_id_period_start_pe_dd61754d_uniq ON public.assets_depreciation USING btree (asset_id, period_start, period_end)
  • CREATE INDEX assets_depreciation_asset_id_8bd42a02 ON public.assets_depreciation USING btree (asset_id)

Sample Data (0 of 0 rows)

No data

assets_warranty
0 rows 16 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 claim_number varchar(100) NO
3 claim_date date NO
4 issue_description text NO
5 status varchar(20) NO
6 resolution text NO
7 resolution_date date YES
8 estimated_cost numeric YES
9 approved_amount numeric YES
10 deductible numeric YES
11 documentation text NO
12 vendor_reference varchar(100) NO
13 created_at timestamptz NO
14 updated_at timestamptz NO
15 asset_id uuid NO ๐Ÿ”— โ†’ assets_asset.id
16 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX assets_warranty_pkey ON public.assets_warranty USING btree (id)
  • CREATE INDEX assets_warranty_asset_id_714698c1 ON public.assets_warranty USING btree (asset_id)
  • CREATE INDEX assets_warranty_claim_number_c7844168_like ON public.assets_warranty USING btree (claim_number varchar_pattern_ops)
  • CREATE INDEX assets_warranty_created_by_id_cf91f117 ON public.assets_warranty USING btree (created_by_id)
  • CREATE UNIQUE INDEX assets_warranty_claim_number_key ON public.assets_warranty USING btree (claim_number)

Sample Data (0 of 0 rows)

No data

๐Ÿ”„ Renewals 2 tables ยท 2,801 rows
renewal_recommendation
2,801 rows 27 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 lease_id uuid NO
3 tenant_id uuid NO
4 unit_id uuid NO
5 property_id uuid NO
6 tenant_name varchar(200) YES ''::character varying
7 property_name varchar(200) YES ''::character varying
8 unit_number varchar(50) YES ''::character varying
9 churn_score float8 YES 0.0
10 churn_risk_level varchar(20) YES 'medium'::character varying
11 churn_factors jsonb YES '{}'::jsonb
12 current_rent numeric YES 0
13 market_rent numeric YES 0
14 recommended_rent numeric YES 0
15 rent_increase_pct float8 YES 0.0
16 rent_strategy varchar(30) YES 'market_rate'::character varying
17 rent_reasoning text YES ''::text
18 recommended_term_months int4 YES 12
19 recommended_lease_start date YES
20 recommended_lease_end date YES
21 renewal_letter_text text YES ''::text
22 renewal_letter_generated_at timestamptz YES
23 status varchar(20) YES 'pending'::character varying
24 reviewed_by varchar(100) YES ''::character varying
25 reviewed_at timestamptz YES
26 created_at timestamptz YES now()
27 updated_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX renewal_recommendation_pkey ON public.renewal_recommendation USING btree (id)
  • CREATE INDEX idx_renewal_rec_unit_id ON public.renewal_recommendation USING btree (unit_id)
  • CREATE INDEX idx_renewal_rec_tenant_id ON public.renewal_recommendation USING btree (tenant_id)
  • CREATE INDEX idx_renewal_rec_property_id ON public.renewal_recommendation USING btree (property_id)
  • CREATE INDEX idx_renewal_rec_status_risk ON public.renewal_recommendation USING btree (status, churn_risk_level)
  • CREATE INDEX idx_renewal_rec_created ON public.renewal_recommendation USING btree (created_at DESC)
  • CREATE INDEX idx_renewal_rec_lease_id ON public.renewal_recommendation USING btree (lease_id)

Sample Data (3 of 2,801 rows)

idlease_idtenant_idunit_idproperty_idtenant_nameproperty_nameunit_numberchurn_scorechurn_risk_levelchurn_factorscurrent_rentmarket_rentrecommended_rentrent_increase_pctrent_strategyrent_reasoningrecommended_term_monthsrecommended_lease_startrecommended_lease_endrenewal_letter_textrenewal_letter_generated_atstatusreviewed_byreviewed_atcreated_atupdated_at
b514688d-0a7a-43e5-8d2d-7422a4da0d61a9435188-558d-4e51-a622-4f35c07f9395c071c8d7-3917-40d3-8d03-ca7cda5c2a204ed501ea-a829-4f72-b65e-2e17abb3b068a03e48a1-5e56-4c8b-b817-cbe072bb6056Corey SandersAshford Farms Apartments1410A0.546high{"rent_gap": 1.0, "market_trend": 1.0, "tenure_short": 0.642, "late_payments": 0.167, "maintenance_r990.0975.0990.00below_market_retainHigh churn risk (55%). Modest increase capped at 2% to retain tenant while slowl...122026-05-312027-05-28Dear Corey Sanders, We hope you have been enjoying your home at 1410A, Ashford ...2026-03-28T21:23:08.891913+01:00acceptedadmin2026-03-02T16:38:36.301113+01:002026-03-28T21:23:08.891913+01:002026-03-28T21:23:08.891913+01:00
57c5756d-b373-444a-9b22-fee487bcf642397ddae7-03ff-4e89-940f-0b1ffe7d0a7c0ccdeaca-cd66-42dd-9a36-052b6d9feb4a88dd5535-9b19-411a-8cb8-074651912c18a03e48a1-5e56-4c8b-b817-cbe072bb6056Armando MedinaAshford Farms Apartments1410B0.534high{"rent_gap": 1.0, "market_trend": 1.0, "tenure_short": 0.56, "late_payments": 0.167, "maintenance_re1621.01576.01621.00below_market_retainHigh churn risk (53%). Modest increase capped at 2% to retain tenant while slowl...122026-03-312027-03-28Dear Armando Medina, We hope you have been enjoying your home at 1410B, Ashford...2026-03-28T21:23:08.906478+01:00acceptedadmin2026-03-03T16:38:36.301113+01:002026-03-28T21:23:08.906478+01:002026-03-28T21:23:08.906478+01:00
b5f3a260-9a06-4123-878d-a41f6171e5214a33fbb3-5d2a-4b73-88ec-ba25a8f272e151049383-10a3-471c-b148-e6533bb0776540fa5bc6-367a-484e-89fa-f2c200ff6f27a03e48a1-5e56-4c8b-b817-cbe072bb6056Manuel GregorioAshford Farms Apartments1411B0.529high{"rent_gap": 0.979, "market_trend": 1.0, "tenure_short": 0.56, "late_payments": 0.167, "maintenance_972.0975.0972.00below_market_retainHigh churn risk (53%). Modest increase capped at 2% to retain tenant while slowl...122026-03-312027-03-28Dear Manuel Gregorio, We hope you have been enjoying your home at 1411B, Ashfor...2026-03-28T21:23:08.914051+01:00acceptedadmin2026-03-16T16:38:36.301113+01:002026-03-28T21:23:08.914051+01:002026-03-28T21:23:08.914051+01:00
renewal_action_log
0 rows 6 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 recommendation_id uuid NO ๐Ÿ”— โ†’ renewal_recommendation.id
3 action varchar(20) NO
4 details text YES ''::text
5 created_by varchar(100) YES 'system'::character varying
6 created_at timestamptz YES now()

Foreign Keys

Indexes

  • CREATE INDEX idx_renewal_action_created ON public.renewal_action_log USING btree (created_at DESC)
  • CREATE INDEX idx_renewal_action_rec ON public.renewal_action_log USING btree (recommendation_id)
  • CREATE UNIQUE INDEX renewal_action_log_pkey ON public.renewal_action_log USING btree (id)

Sample Data (0 of 0 rows)

No data

๐Ÿ”” Notifications 4 tables ยท 4,801 rows
notification_logs
4,763 rows 26 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 channel varchar(10) NO
3 subject varchar(200) NO
4 body text NO
5 recipient_address varchar(255) NO
6 status varchar(20) NO
7 priority int4 NO
8 sent_at timestamptz YES
9 delivered_at timestamptz YES
10 failed_at timestamptz YES
11 retry_count int4 NO
12 max_retries int4 NO
13 provider varchar(50) NO
14 provider_message_id varchar(255) NO
15 provider_response jsonb NO
16 error_message text NO
17 metadata jsonb NO
18 created_at timestamptz NO
19 updated_at timestamptz NO
20 exception_id int8 YES ๐Ÿ”— โ†’ invoice_exceptions.id
21 invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id
22 recipient_id int4 YES ๐Ÿ”— โ†’ auth_user.id
23 template_id int8 YES ๐Ÿ”— โ†’ notification_templates.id
24 read_at timestamptz YES
25 viewed_at timestamptz YES
26 link varchar(255) NO

Foreign Keys

Indexes

  • CREATE INDEX notification_logs_template_id_f1b83fc8 ON public.notification_logs USING btree (template_id)
  • CREATE INDEX notification_logs_recipient_id_6989a214 ON public.notification_logs USING btree (recipient_id)
  • CREATE INDEX notification_logs_invoice_id_276d19bb ON public.notification_logs USING btree (invoice_id)
  • CREATE INDEX notification_logs_exception_id_a3719c5f ON public.notification_logs USING btree (exception_id)
  • CREATE INDEX notificatio_status_0dacf4_idx ON public.notification_logs USING btree (status, channel)
  • CREATE INDEX notificatio_recipie_931088_idx ON public.notification_logs USING btree (recipient_id, status)
  • CREATE INDEX notificatio_created_45a1e0_idx ON public.notification_logs USING btree (created_at)
  • CREATE UNIQUE INDEX notification_logs_pkey ON public.notification_logs USING btree (id)

Sample Data (3 of 4,763 rows)

idchannelsubjectbodyrecipient_addressstatusprioritysent_atdelivered_atfailed_atretry_countmax_retriesproviderprovider_message_idprovider_responseerror_messagemetadatacreated_atupdated_atexception_idinvoice_idrecipient_idtemplate_idread_atviewed_atlink
9388inappNew Invoice ReceivedInvoice TEMP_20251209_180921_Inv_1242346_from_J_T from Dyanne Grant receivedadmin@zidansai.comsent2NULLNULLNULL03inapp{}{"icon": "mail", "action_url": "/invoices/", "action_text": "View Invoice", "sound_enabled": true, "2025-12-09T19:09:21.283719+01:002025-12-09T19:09:21.283739+01:00NULL1132519NULLNULL
9389inappNew Invoice ReceivedInvoice TEMP_20251209_180921_Inv_1242346_from_J_T from Dyanne Grant receivedadmin@zidansai.comsent2NULLNULLNULL03inapp{}{"icon": "mail", "action_url": "/invoices/", "action_text": "View Invoice", "sound_enabled": true, "2025-12-09T19:09:39.980716+01:002025-12-09T19:09:39.980735+01:00NULL1132519NULLNULL
9390inappNew Invoice ReceivedInvoice TEMP_20251209_180940_Inv_1242345_from_J_T from Dyanne Grant receivedadmin@zidansai.comsent2NULLNULLNULL03inapp{}{"icon": "mail", "action_url": "/invoices/", "action_text": "View Invoice", "sound_enabled": true, "2025-12-09T19:09:40.249443+01:002025-12-09T19:09:40.249463+01:00NULL1132619NULLNULL
notification_templates
25 rows 17 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 template_type varchar(30) NO
4 channel varchar(10) NO
5 email_subject varchar(200) NO
6 email_body_html text NO
7 email_body_text text NO
8 sms_body varchar(160) NO
9 is_active bool NO
10 priority int4 NO
11 created_at timestamptz NO
12 updated_at timestamptz NO
13 inapp_action_text varchar(50) NO
14 inapp_action_url varchar(255) NO
15 inapp_body text NO
16 inapp_icon varchar(50) NO
17 inapp_title varchar(100) NO

Indexes

  • CREATE UNIQUE INDEX notification_templates_name_key ON public.notification_templates USING btree (name)
  • CREATE INDEX notification_templates_name_6dd73848_like ON public.notification_templates USING btree (name varchar_pattern_ops)
  • CREATE UNIQUE INDEX notification_templates_pkey ON public.notification_templates USING btree (id)

Sample Data (3 of 25 rows)

idnametemplate_typechannelemail_subjectemail_body_htmlemail_body_textsms_bodyis_activeprioritycreated_atupdated_atinapp_action_textinapp_action_urlinapp_bodyinapp_iconinapp_title
1Exception Detected - Emailexception_detectedemailInvoice Exception Detected - {{ exception_type }} <html> <body> <h2>Invoice Processing Exception</h2> <p>An exception has... Invoice Processing Exception An exception has been detected in the invoice pro...True22025-09-21T17:32:01.002183+02:002025-09-21T17:32:01.002183+02:00
2Exception Detected - SMSexception_detectedsmsInvoice exception: {{ exception_type }} for {{ vendor_name }} - {{ invoice_numbe...True22025-09-21T17:32:01.005604+02:002025-09-21T17:32:01.005604+02:00
3Exception Assigned - Emailexception_assignedemailInvoice Exception Assigned - {{ exception_type }} <html> <body> <h2>Invoice Exception Assigned to You</h2> <p>An invoice ... Invoice Exception Assigned to You An invoice processing exception has been ass...True22025-09-21T17:32:01.006604+02:002025-09-21T17:32:01.006604+02:00
notification_preferences
13 rows 19 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 email_enabled bool NO
3 email_address varchar(254) NO
4 email_exceptions bool NO
5 email_daily_summary bool NO
6 email_sla_warnings bool NO
7 sms_enabled bool NO
8 phone_number varchar(17) NO
9 sms_critical_only bool NO
10 quiet_hours_start time YES
11 quiet_hours_end time YES
12 timezone varchar(50) NO
13 exception_type_preferences jsonb NO
14 created_at timestamptz NO
15 updated_at timestamptz NO
16 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
17 inapp_desktop_enabled bool NO
18 inapp_enabled bool NO
19 inapp_sound_enabled bool NO

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX notification_preferences_user_id_key ON public.notification_preferences USING btree (user_id)
  • CREATE UNIQUE INDEX notification_preferences_pkey ON public.notification_preferences USING btree (id)

Sample Data (3 of 13 rows)

idemail_enabledemail_addressemail_exceptionsemail_daily_summaryemail_sla_warningssms_enabledphone_numbersms_critical_onlyquiet_hours_startquiet_hours_endtimezoneexception_type_preferencescreated_atupdated_atuser_idinapp_desktop_enabledinapp_enabledinapp_sound_enabled
1TrueTrueFalseTrueFalseTrueNULLNULLUTC{}2025-10-07T16:23:08.012619+02:002025-10-07T16:23:08.012634+02:0035TrueTrueTrue
2TrueTrueFalseTrueFalseTrueNULLNULLUTC{}2025-10-08T10:31:03.041131+02:002025-10-08T10:31:03.041158+02:0043TrueTrueTrue
3TrueTrueFalseTrueFalseTrueNULLNULLUTC{}2025-10-27T16:46:14.285252+01:002025-10-27T16:46:14.285273+01:001TrueTrueTrue
notification_queue
0 rows 5 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 scheduled_for timestamptz NO
3 processing bool NO
4 processed_at timestamptz YES
5 notification_log_id int8 NO ๐Ÿ”— โ†’ notification_logs.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX notification_queue_pkey ON public.notification_queue USING btree (id)
  • CREATE UNIQUE INDEX notification_queue_notification_log_id_key ON public.notification_queue USING btree (notification_log_id)
  • CREATE INDEX notificatio_schedul_02fc6a_idx ON public.notification_queue USING btree (scheduled_for, processing)

Sample Data (0 of 0 rows)

No data

๐Ÿ”ง Django Framework 21 tables ยท 2,706 rows
auth_permission
1,128 rows 4 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 name varchar(255) NO
3 content_type_id int4 NO ๐Ÿ”— โ†’ django_content_type.id
4 codename varchar(100) NO

Foreign Keys

Indexes

  • CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id)
  • CREATE UNIQUE INDEX auth_permission_pkey ON public.auth_permission USING btree (id)
  • CREATE UNIQUE INDEX auth_permission_content_type_id_codename_01ab375a_uniq ON public.auth_permission USING btree (content_type_id, codename)

Sample Data (3 of 1,128 rows)

idnamecontent_type_idcodename
1Can add log entry1add_logentry
2Can change log entry1change_logentry
3Can delete log entry1delete_logentry
django_apscheduler_djangojobexecution
933 rows 8 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 status varchar(50) NO
3 run_time timestamptz NO
4 duration numeric YES
5 finished numeric YES
6 exception varchar(1000) YES
7 traceback text YES
8 job_id varchar(255) NO ๐Ÿ”— โ†’ django_apscheduler_djangojob.id

Foreign Keys

Indexes

  • CREATE INDEX django_apscheduler_djangojobexecution_job_id_daf5090a ON public.django_apscheduler_djangojobexecution USING btree (job_id)
  • CREATE INDEX django_apscheduler_djangojobexecution_run_time_16edd96b ON public.django_apscheduler_djangojobexecution USING btree (run_time)
  • CREATE UNIQUE INDEX unique_job_executions ON public.django_apscheduler_djangojobexecution USING btree (job_id, run_time)
  • CREATE UNIQUE INDEX django_apscheduler_djangojobexecution_pkey ON public.django_apscheduler_djangojobexecution USING btree (id)

Sample Data (3 of 933 rows)

idstatusrun_timedurationfinishedexceptiontracebackjob_id
1Executed2025-09-21T17:37:08.358171+02:005.431758469033.79NULLNULLmonitor_emails
2Executed2025-09-21T17:46:07.030111+02:003.821758469570.85NULLNULLmonitor_emails
3Executed2025-09-21T17:51:07.030111+02:003.771758469870.8NULLNULLmonitor_emails
django_content_type
282 rows 3 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 app_label varchar(100) NO
3 model varchar(100) NO

Indexes

  • CREATE UNIQUE INDEX django_content_type_pkey ON public.django_content_type USING btree (id)
  • CREATE UNIQUE INDEX django_content_type_app_label_model_76bd3d3b_uniq ON public.django_content_type USING btree (app_label, model)

Sample Data (3 of 282 rows)

idapp_labelmodel
1adminlogentry
2authpermission
3authgroup
django_migrations
225 rows 4 cols
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 app varchar(255) NO
3 name varchar(255) NO
4 applied timestamptz NO

Indexes

  • CREATE UNIQUE INDEX django_migrations_pkey ON public.django_migrations USING btree (id)

Sample Data (3 of 225 rows)

idappnameapplied
1contenttypes0001_initial2025-09-21T17:24:19.433082+02:00
2auth0001_initial2025-09-21T17:24:19.499664+02:00
3admin0001_initial2025-09-21T17:24:19.521456+02:00
auth_user
88 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 password varchar(128) NO
3 last_login timestamptz YES
4 is_superuser bool NO
5 username varchar(150) NO
6 first_name varchar(150) NO
7 last_name varchar(150) NO
8 email varchar(254) NO
9 is_staff bool NO
10 is_active bool NO
11 date_joined timestamptz NO

Indexes

  • CREATE UNIQUE INDEX auth_user_pkey ON public.auth_user USING btree (id)
  • CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops)
  • CREATE UNIQUE INDEX auth_user_username_key ON public.auth_user USING btree (username)

Sample Data (3 of 88 rows)

idpasswordlast_loginis_superuserusernamefirst_namelast_nameemailis_staffis_activedate_joined
25pbkdf2_sha256$870000$e1zlXIrS456UAnIKo9ZQYk$0RVI0H2ASoZrCSMmJcimxUtyIR35+X9cUjCa...NULLFalseaccountant1JaneDoeaccountant1@zidansai.comFalseTrue2025-09-21T17:34:03.477445+02:00
26pbkdf2_sha256$870000$FBicGZzTZSVzmMwZY5YMVy$RvopKkuQqw9EiEGFOAmDiE+q4tB/0MrrUHYE...NULLFalseviewer1BobJohnsonviewer1@zidansai.comFalseTrue2025-09-21T17:34:03.774534+02:00
27pbkdf2_sha256$870000$XeSzxj1kcHU5CklEjlEfSV$sb5qaUhhoXArI+VBo2tghWMlnq3fWfKuQ1Ai...NULLFalseproperty_mgr1AliceWilsonproperty_mgr1@zidansai.comFalseTrue2025-09-21T17:34:04.069138+02:00
django_celery_beat_periodictask
26 rows 23 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 task varchar(200) NO
4 args text NO
5 kwargs text NO
6 queue varchar(200) YES
7 exchange varchar(200) YES
8 routing_key varchar(200) YES
9 expires timestamptz YES
10 enabled bool NO
11 last_run_at timestamptz YES
12 total_run_count int4 NO
13 date_changed timestamptz NO
14 description text NO
15 crontab_id int4 YES ๐Ÿ”— โ†’ django_celery_beat_crontabschedule.id
16 interval_id int4 YES ๐Ÿ”— โ†’ django_celery_beat_intervalschedule.id
17 solar_id int4 YES ๐Ÿ”— โ†’ django_celery_beat_solarschedule.id
18 one_off bool NO
19 start_time timestamptz YES
20 priority int4 YES
21 headers text NO
22 clocked_id int4 YES ๐Ÿ”— โ†’ django_celery_beat_clockedschedule.id
23 expire_seconds int4 YES

Indexes

  • CREATE INDEX django_celery_beat_periodictask_interval_id_a8ca27da ON public.django_celery_beat_periodictask USING btree (interval_id)
  • CREATE INDEX django_celery_beat_periodictask_name_265a36b7_like ON public.django_celery_beat_periodictask USING btree (name varchar_pattern_ops)
  • CREATE UNIQUE INDEX django_celery_beat_periodictask_name_key ON public.django_celery_beat_periodictask USING btree (name)
  • CREATE INDEX django_celery_beat_periodictask_solar_id_a87ce72c ON public.django_celery_beat_periodictask USING btree (solar_id)
  • CREATE INDEX django_celery_beat_periodictask_crontab_id_d3cba168 ON public.django_celery_beat_periodictask USING btree (crontab_id)
  • CREATE INDEX django_celery_beat_periodictask_clocked_id_47a69f82 ON public.django_celery_beat_periodictask USING btree (clocked_id)
  • CREATE UNIQUE INDEX django_celery_beat_periodictask_pkey ON public.django_celery_beat_periodictask USING btree (id)

Check Constraints

  • django_celery_beat_periodictask_expire_seconds_check: (expire_seconds >= 0)
  • django_celery_beat_periodictask_expire_seconds_check: (expire_seconds >= 0)
  • django_celery_beat_periodictask_priority_check: (priority >= 0)
  • django_celery_beat_periodictask_priority_check: (priority >= 0)
  • django_celery_beat_periodictask_total_run_count_check: (total_run_count >= 0)
  • django_celery_beat_periodictask_total_run_count_check: (total_run_count >= 0)

Sample Data (3 of 26 rows)

idnametaskargskwargsqueueexchangerouting_keyexpiresenabledlast_run_attotal_run_countdate_changeddescriptioncrontab_idinterval_idsolar_idone_offstart_timepriorityheadersclocked_idexpire_seconds
9match-unmatched-vendorsapps.vendors.tasks.match_unmatched_vendors[]{}NULLNULLNULLNULLTrue2026-01-13T16:19:25.912282+01:001092026-01-13T16:20:31.360247+01:00NULL4NULLFalseNULLNULL{}NULLNULL
23send-daily-invoice-statsapps.invoices.tasks.send_daily_invoice_stats[]{}NULLNULLNULLNULLTrue2026-01-13T09:00:00.001996+01:00292026-01-13T09:00:05.179303+01:0010NULLNULLFalseNULLNULL{}NULLNULL
8sync-yardi-vendorsapps.vendors.tasks.sync_vendors_from_yardi[]{}NULLNULLNULLNULLTrue2026-01-13T08:00:00.047728+01:001092026-01-13T08:02:20.919348+01:009NULLNULLFalseNULLNULL{}NULLNULL
django_celery_beat_crontabschedule
15 rows 7 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 minute varchar(240) NO
3 hour varchar(96) NO
4 day_of_week varchar(64) NO
5 day_of_month varchar(124) NO
6 month_of_year varchar(64) NO
7 timezone varchar(63) NO

Indexes

  • CREATE UNIQUE INDEX django_celery_beat_crontabschedule_pkey ON public.django_celery_beat_crontabschedule USING btree (id)

Sample Data (3 of 15 rows)

idminutehourday_of_weekday_of_monthmonth_of_yeartimezone
304***America/New_York
70*/6***America/New_York
80****America/New_York
django_celery_beat_intervalschedule
7 rows 3 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 every int4 NO
3 period varchar(24) NO

Indexes

  • CREATE UNIQUE INDEX django_celery_beat_intervalschedule_pkey ON public.django_celery_beat_intervalschedule USING btree (id)

Sample Data (3 of 7 rows)

ideveryperiod
1300seconds
3600seconds
5900seconds
django_apscheduler_djangojob
1 rows 3 cols
#ColumnTypeNullableDefaultNotes
1 id varchar(255) NO ๐Ÿ”‘ PK
2 next_run_time timestamptz YES
3 job_state bytea NO

Indexes

  • CREATE UNIQUE INDEX django_apscheduler_djangojob_pkey ON public.django_apscheduler_djangojob USING btree (id)
  • CREATE INDEX django_apscheduler_djangojob_next_run_time_2f022619 ON public.django_apscheduler_djangojob USING btree (next_run_time)

Sample Data (1 of 1 rows)

idnext_run_timejob_state
monitor_emails2025-09-27T11:18:06.704935+02:00\x8005950a020000000000007d94288c0776657273696f6e944b018c026964948c0e6d6f6e69746f...
django_celery_beat_periodictasks
1 rows 2 cols
#ColumnTypeNullableDefaultNotes
1 ident int2 NO ๐Ÿ”‘ PK
2 last_update timestamptz NO

Indexes

  • CREATE UNIQUE INDEX django_celery_beat_periodictasks_pkey ON public.django_celery_beat_periodictasks USING btree (ident)

Sample Data (1 of 1 rows)

identlast_update
12026-01-10T06:51:55.572018+01:00
auth_group
0 rows 2 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 name varchar(150) NO

Indexes

  • CREATE UNIQUE INDEX auth_group_name_key ON public.auth_group USING btree (name)
  • CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops)
  • CREATE UNIQUE INDEX auth_group_pkey ON public.auth_group USING btree (id)

Sample Data (0 of 0 rows)

No data

auth_group_permissions
0 rows 3 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 group_id int4 NO ๐Ÿ”— โ†’ auth_group.id
3 permission_id int4 NO ๐Ÿ”— โ†’ auth_permission.id

Foreign Keys

Indexes

  • CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id)
  • CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id)
  • CREATE UNIQUE INDEX auth_group_permissions_group_id_permission_id_0cd325b0_uniq ON public.auth_group_permissions USING btree (group_id, permission_id)
  • CREATE UNIQUE INDEX auth_group_permissions_pkey ON public.auth_group_permissions USING btree (id)

Sample Data (0 of 0 rows)

No data

auth_user_groups
0 rows 3 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
3 group_id int4 NO ๐Ÿ”— โ†’ auth_group.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX auth_user_groups_pkey ON public.auth_user_groups USING btree (id)
  • CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id)
  • CREATE UNIQUE INDEX auth_user_groups_user_id_group_id_94350c0c_uniq ON public.auth_user_groups USING btree (user_id, group_id)
  • CREATE INDEX auth_user_groups_user_id_6a12ed8b ON public.auth_user_groups USING btree (user_id)

Sample Data (0 of 0 rows)

No data

auth_user_user_permissions
0 rows 3 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id
3 permission_id int4 NO ๐Ÿ”— โ†’ auth_permission.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX auth_user_user_permissions_user_id_permission_id_14a6b632_uniq ON public.auth_user_user_permissions USING btree (user_id, permission_id)
  • CREATE INDEX auth_user_user_permissions_user_id_a95ead1b ON public.auth_user_user_permissions USING btree (user_id)
  • CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id)
  • CREATE UNIQUE INDEX auth_user_user_permissions_pkey ON public.auth_user_user_permissions USING btree (id)

Sample Data (0 of 0 rows)

No data

django_admin_log
0 rows 8 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 action_time timestamptz NO
3 object_id text YES
4 object_repr varchar(200) NO
5 action_flag int2 NO
6 change_message text NO
7 content_type_id int4 YES ๐Ÿ”— โ†’ django_content_type.id
8 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id)
  • CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id)
  • CREATE UNIQUE INDEX django_admin_log_pkey ON public.django_admin_log USING btree (id)

Check Constraints

  • django_admin_log_action_flag_check: (action_flag >= 0)
  • django_admin_log_action_flag_check: (action_flag >= 0)

Sample Data (0 of 0 rows)

No data

django_celery_beat_clockedschedule
0 rows 2 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 clocked_time timestamptz NO

Indexes

  • CREATE UNIQUE INDEX django_celery_beat_clockedschedule_pkey ON public.django_celery_beat_clockedschedule USING btree (id)

Sample Data (0 of 0 rows)

No data

django_celery_beat_solarschedule
0 rows 4 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 event varchar(24) NO
3 latitude numeric NO
4 longitude numeric NO

Indexes

  • CREATE UNIQUE INDEX django_celery_beat_solarschedule_pkey ON public.django_celery_beat_solarschedule USING btree (id)
  • CREATE UNIQUE INDEX django_celery_beat_solar_event_latitude_longitude_ba64999a_uniq ON public.django_celery_beat_solarschedule USING btree (event, latitude, longitude)

Sample Data (0 of 0 rows)

No data

django_celery_results_chordcounter
0 rows 4 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 group_id varchar(255) NO
3 sub_tasks text NO
4 count int4 NO

Indexes

  • CREATE UNIQUE INDEX django_celery_results_chordcounter_group_id_key ON public.django_celery_results_chordcounter USING btree (group_id)
  • CREATE INDEX django_celery_results_chordcounter_group_id_1f70858c_like ON public.django_celery_results_chordcounter USING btree (group_id varchar_pattern_ops)
  • CREATE UNIQUE INDEX django_celery_results_chordcounter_pkey ON public.django_celery_results_chordcounter USING btree (id)

Check Constraints

  • django_celery_results_chordcounter_count_check: (count >= 0)
  • django_celery_results_chordcounter_count_check: (count >= 0)

Sample Data (0 of 0 rows)

No data

django_celery_results_groupresult
0 rows 7 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 group_id varchar(255) NO
3 date_created timestamptz NO
4 date_done timestamptz NO
5 content_type varchar(128) NO
6 content_encoding varchar(64) NO
7 result text YES

Indexes

  • CREATE INDEX django_celery_results_groupresult_group_id_a085f1a9_like ON public.django_celery_results_groupresult USING btree (group_id varchar_pattern_ops)
  • CREATE UNIQUE INDEX django_celery_results_groupresult_group_id_key ON public.django_celery_results_groupresult USING btree (group_id)
  • CREATE UNIQUE INDEX django_celery_results_groupresult_pkey ON public.django_celery_results_groupresult USING btree (id)
  • CREATE INDEX django_cele_date_cr_bd6c1d_idx ON public.django_celery_results_groupresult USING btree (date_created)
  • CREATE INDEX django_cele_date_do_caae0e_idx ON public.django_celery_results_groupresult USING btree (date_done)

Sample Data (0 of 0 rows)

No data

django_celery_results_taskresult
0 rows 16 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 task_id varchar(255) NO
3 status varchar(50) NO
4 content_type varchar(128) NO
5 content_encoding varchar(64) NO
6 result text YES
7 date_done timestamptz NO
8 traceback text YES
9 meta text YES
10 task_args text YES
11 task_kwargs text YES
12 task_name varchar(255) YES
13 worker varchar(100) YES
14 date_created timestamptz NO
15 periodic_task_name varchar(255) YES
16 date_started timestamptz YES

Indexes

  • CREATE INDEX django_cele_date_cr_f04a50_idx ON public.django_celery_results_taskresult USING btree (date_created)
  • CREATE INDEX django_cele_periodi_1993cf_idx ON public.django_celery_results_taskresult USING btree (periodic_task_name)
  • CREATE INDEX django_cele_status_9b6201_idx ON public.django_celery_results_taskresult USING btree (status)
  • CREATE INDEX django_cele_task_na_08aec9_idx ON public.django_celery_results_taskresult USING btree (task_name)
  • CREATE INDEX django_cele_worker_d54dd8_idx ON public.django_celery_results_taskresult USING btree (worker)
  • CREATE INDEX django_celery_results_taskresult_task_id_de0d95bf_like ON public.django_celery_results_taskresult USING btree (task_id varchar_pattern_ops)
  • CREATE INDEX django_cele_date_do_f59aad_idx ON public.django_celery_results_taskresult USING btree (date_done)
  • CREATE UNIQUE INDEX django_celery_results_taskresult_pkey ON public.django_celery_results_taskresult USING btree (id)
  • CREATE UNIQUE INDEX django_celery_results_taskresult_task_id_key ON public.django_celery_results_taskresult USING btree (task_id)

Sample Data (0 of 0 rows)

No data

django_session
0 rows 3 cols
#ColumnTypeNullableDefaultNotes
1 session_key varchar(40) NO ๐Ÿ”‘ PK
2 session_data text NO
3 expire_date timestamptz NO

Indexes

  • CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops)
  • CREATE UNIQUE INDEX django_session_pkey ON public.django_session USING btree (session_key)
  • CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date)

Sample Data (0 of 0 rows)

No data

๐Ÿ”ง Work Orders 6 tables ยท 506 rows
work_order_history
409 rows 11 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 event_type varchar(30) NO
3 previous_value varchar(255) YES
4 new_value varchar(255) YES
5 changed_by_type varchar(20) NO 'system'::character varying
6 changed_by_id uuid YES
7 changed_by_name varchar(200) NO ''::character varying
8 notes text NO ''::text
9 metadata jsonb NO '{}'::jsonb
10 created_at timestamptz NO CURRENT_TIMESTAMP
11 work_order_id uuid NO

Indexes

  • CREATE INDEX work_order_history_created_at_idx ON public.work_order_history USING btree (created_at)
  • CREATE UNIQUE INDEX work_order_history_pkey ON public.work_order_history USING btree (id)
  • CREATE INDEX work_order_history_work_order_id_idx ON public.work_order_history USING btree (work_order_id)
  • CREATE INDEX work_order_history_event_type_idx ON public.work_order_history USING btree (event_type)

Sample Data (3 of 409 rows)

idevent_typeprevious_valuenew_valuechanged_by_typechanged_by_idchanged_by_namenotesmetadatacreated_atwork_order_id
ac6c7272-2f6a-4c66-ae45-e296823642d7createdNULLopentenantNULLPriya SharmaWork order submitted via tenant portal: Garbage Disposal Replacement{}2026-02-15T22:19:38.168288+01:0081141bc2-2221-4e2a-a645-92bfc087a4a8
27a2a7ba-c538-4985-bde9-5f4397bc2fdestatus_changeopenrequest_receivedsystemNULLSystemRequest acknowledged and logged in maintenance system.{}2026-02-16T01:24:38.168288+01:0081141bc2-2221-4e2a-a645-92bfc087a4a8
09a5a0f2-4af4-44d7-9377-7de025e89945status_changerequest_receivedtriagedstaffNULLBrian MurphyTriaged by Brian Murphy. Priority set to medium.{}2026-02-16T20:15:38.168288+01:0081141bc2-2221-4e2a-a645-92bfc087a4a8
work_order_lifecycle
96 rows 24 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 lifecycle_status varchar(20) NO
4 assigned_vendor_id uuid YES
5 assigned_via varchar(20) NO
6 assigned_at timestamptz YES
7 scheduled_date date YES
8 scheduled_time_slot varchar(50) NO
9 schedule_confirmed_at timestamptz YES
10 work_started_at timestamptz YES
11 work_completed_at timestamptz YES
12 vendor_completion_notes text NO
13 tenant_signed_off bool NO
14 tenant_signed_off_at timestamptz YES
15 vendor_rating int4 YES
16 vendor_rating_comment text NO
17 vendor_rated_at timestamptz YES
18 vendor_invoice_id int4 YES
19 invoice_uploaded_at timestamptz YES
20 cancelled_by varchar(20) NO
21 cancellation_reason text NO
22 cancelled_at timestamptz YES
23 created_at timestamptz NO
24 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX work_order_lifecycle_pkey ON public.work_order_lifecycle USING btree (id)
  • CREATE UNIQUE INDEX work_order_lifecycle_work_order_id_key ON public.work_order_lifecycle USING btree (work_order_id)
  • CREATE INDEX work_order__lifecyc_74adb6_idx ON public.work_order_lifecycle USING btree (lifecycle_status)
  • CREATE INDEX work_order__assigne_3b3843_idx ON public.work_order_lifecycle USING btree (assigned_vendor_id)

Sample Data (3 of 96 rows)

idwork_order_idlifecycle_statusassigned_vendor_idassigned_viaassigned_atscheduled_datescheduled_time_slotschedule_confirmed_atwork_started_atwork_completed_atvendor_completion_notestenant_signed_offtenant_signed_off_atvendor_ratingvendor_rating_commentvendor_rated_atvendor_invoice_idinvoice_uploaded_atcancelled_bycancellation_reasoncancelled_atcreated_atupdated_at
1aea1bcd6-2720-437f-a366-f113b045a5adin_progressNULLNULLNULLNULLNULLNULLFalseNULLNULLNULLNULLNULLNULL2026-04-01T15:58:49.147763+02:002026-04-01T15:58:49.147787+02:00
3e88214ff-9993-4d58-bfe8-cdd9b5040ed6newNULLNULLNULLNULLNULLNULLFalseNULLNULLNULLNULLNULLNULL2026-04-01T15:58:49.155156+02:002026-04-01T15:58:49.155171+02:00
4c72d485c-1cf4-4f82-915d-93c63e2ce1aanewNULLNULLNULLNULLNULLNULLFalseNULLNULLNULLNULLNULLNULL2026-04-01T15:58:49.158673+02:002026-04-01T15:58:49.158687+02:00
wo_source
1 rows 9 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 source_channel varchar(30) NO
4 triggered_by_name varchar(200) NO
5 triggered_by_type varchar(50) NO
6 equipment_name varchar(200) NO
7 asset_name varchar(200) NO
8 source_metadata jsonb NO
9 created_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX wo_source_work_order_id_key ON public.wo_source USING btree (work_order_id)
  • CREATE UNIQUE INDEX wo_source_pkey ON public.wo_source USING btree (id)

Sample Data (1 of 1 rows)

idwork_order_idsource_channeltriggered_by_nametriggered_by_typeequipment_nameasset_namesource_metadatacreated_at
88cb19c4a4-25e9-4294-a475-8b08fecb23ffiot_sensorAirthings Air Quality Sensor #45sensorHelios KWL EC 370W{"sensor_id": "fe8c51c8-e2d4-405a-b954-ed2cf1630d92", "sensor_type": "air_quality", "breach_value": 2026-04-02T14:09:54.296939+02:00
work_order_assignments
0 rows 11 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 assigned_at timestamptz NO
4 scheduled_date date NO
5 scheduled_time_start time YES
6 scheduled_time_end time YES
7 status varchar(20) NO
8 notes text NO
9 created_at timestamptz NO
10 updated_at timestamptz NO
11 staff_id int4 NO ๐Ÿ”— โ†’ maintenance_staff.id

Foreign Keys

Indexes

  • CREATE INDEX work_order_assignments_work_order_id_4e4a625d ON public.work_order_assignments USING btree (work_order_id)
  • CREATE INDEX work_order_assignments_status_8aedd2f0 ON public.work_order_assignments USING btree (status)
  • CREATE INDEX work_order_assignments_status_8aedd2f0_like ON public.work_order_assignments USING btree (status varchar_pattern_ops)
  • CREATE INDEX work_order_assignments_staff_id_a0615137 ON public.work_order_assignments USING btree (staff_id)
  • CREATE UNIQUE INDEX work_order_assignments_pkey ON public.work_order_assignments USING btree (id)
  • CREATE INDEX work_order__staff_i_b2e1af_idx ON public.work_order_assignments USING btree (staff_id, scheduled_date)
  • CREATE INDEX work_order__status_ff16ef_idx ON public.work_order_assignments USING btree (status, scheduled_date)
  • CREATE INDEX work_order_assignments_scheduled_date_89ae8ed7 ON public.work_order_assignments USING btree (scheduled_date)

Sample Data (0 of 0 rows)

No data

work_order_completions
0 rows 14 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 completed_at timestamptz NO
4 notes text NO
5 checklist_completed jsonb NO
6 materials_used jsonb NO
7 total_labor_minutes int4 NO
8 before_photos _varchar NO
9 after_photos _varchar NO
10 tenant_signature_url varchar(200) YES
11 tenant_not_home bool NO
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 completed_by_id int4 NO ๐Ÿ”— โ†’ maintenance_staff.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX work_order_completions_work_order_id_key ON public.work_order_completions USING btree (work_order_id)
  • CREATE INDEX work_order_completions_completed_by_id_61cefc28 ON public.work_order_completions USING btree (completed_by_id)
  • CREATE UNIQUE INDEX work_order_completions_pkey ON public.work_order_completions USING btree (id)

Sample Data (0 of 0 rows)

No data

work_order_time_logs
0 rows 10 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 status varchar(20) NO
4 started_at timestamptz NO
5 ended_at timestamptz YES
6 latitude numeric YES
7 longitude numeric YES
8 created_at timestamptz NO
9 assignment_id int4 NO ๐Ÿ”— โ†’ work_order_assignments.id
10 staff_id int4 NO ๐Ÿ”— โ†’ maintenance_staff.id

Foreign Keys

Indexes

  • CREATE INDEX work_order_time_logs_work_order_id_57377725 ON public.work_order_time_logs USING btree (work_order_id)
  • CREATE UNIQUE INDEX work_order_time_logs_pkey ON public.work_order_time_logs USING btree (id)
  • CREATE INDEX work_order_time_logs_staff_id_1954fde4 ON public.work_order_time_logs USING btree (staff_id)
  • CREATE INDEX work_order_time_logs_assignment_id_a8fb2e90 ON public.work_order_time_logs USING btree (assignment_id)

Sample Data (0 of 0 rows)

No data

๐Ÿ”จ Vendors & Maintenance 15 tables ยท 4,125 rows
vendors_vendor_properties
3,257 rows 3 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 vendor_id uuid NO ๐Ÿ”— โ†’ vendors_vendor.id
3 property_id uuid NO ๐Ÿ”— โ†’ properties.id

Foreign Keys

Indexes

  • CREATE INDEX vendors_vendor_properties_vendor_id_e256c77f ON public.vendors_vendor_properties USING btree (vendor_id)
  • CREATE UNIQUE INDEX vendors_vendor_properties_vendor_id_property_id_0e368b57_uniq ON public.vendors_vendor_properties USING btree (vendor_id, property_id)
  • CREATE INDEX vendors_vendor_properties_property_id_b2e4258b ON public.vendors_vendor_properties USING btree (property_id)
  • CREATE UNIQUE INDEX vendors_vendor_properties_pkey ON public.vendors_vendor_properties USING btree (id)

Sample Data (3 of 3,257 rows)

idvendor_idproperty_id
44779bb12-4076-4a3e-8768-724c7f7166469462e1d5-2c71-42c4-86a0-e4537119d3fb
54779bb12-4076-4a3e-8768-724c7f71664643389a68-9a5f-4262-819f-7d7a71066ba2
64779bb12-4076-4a3e-8768-724c7f716646ecf17e6e-04b6-48ef-a23e-1ab1b8e88690
vendors_vendor
689 rows 72 cols 3 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(200) NO
3 vendor_type varchar(50) NO
4 email varchar(254) NO
5 phone varchar(20) NO
6 fax varchar(20) NO
7 mobile varchar(20) NO
8 website varchar(200) NO
9 address text NO
10 address_line_1 varchar(255) NO
11 address_line_2 varchar(255) NO
12 city varchar(100) NO
13 state varchar(50) NO
14 zip_code varchar(20) NO
15 country varchar(100) NO
16 tax_id varchar(50) NO
17 license_number varchar(100) NO
18 dba_name varchar(200) NO
19 yardi_vendor_id varchar(100) NO
20 yardi_payee_id varchar(100) NO
21 yardi_remittance_vendor_id varchar(100) NO
22 yardi_property_ids jsonb NO
23 yardi_sync_enabled bool NO
24 yardi_last_sync timestamptz YES
25 payment_method varchar(20) NO
26 payment_terms varchar(50) NO
27 bank_account_number varchar(50) NO
28 bank_routing_number varchar(50) NO
29 bank_name varchar(100) NO
30 is_1099_vendor bool NO
31 exempt_from_1099 bool NO
32 w9_on_file bool NO
33 w9_date date YES
34 insurance_carrier varchar(200) NO
35 insurance_policy_number varchar(100) NO
36 insurance_expiry_date date YES
37 liability_coverage_amount numeric YES
38 status varchar(20) NO
39 is_active bool NO
40 is_approved bool NO
41 overall_rating numeric YES
42 service_areas jsonb NO
43 emergency_service bool NO
44 minimum_order_amount numeric YES
45 vendor_match_confidence numeric YES
46 vendor_match_verified bool NO
47 vendor_match_verified_at timestamptz YES
48 alternative_names jsonb NO
49 internal_notes text NO
50 created_at timestamptz NO
51 updated_at timestamptz NO
52 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
53 vendor_match_verified_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
54 category_id uuid YES ๐Ÿ”— โ†’ vendors_category.id
55 matching_keywords text NO
56 discount_days int4 YES
57 discount_days_after_invoice bool NO
58 discount_percent numeric YES
59 sales_tax_percent numeric YES
60 usual_account_id varchar(50) NO
61 usual_account_code varchar(50) NO
62 is_subcontractor bool NO
63 is_employee bool NO
64 is_preferred_supplier bool NO
65 retention_percentage numeric YES
66 is_hold_payments bool NO
67 is_consolidate_payments bool NO
68 is_po_required bool NO
69 keyword_last_updated timestamptz YES
70 keyword_generation_method varchar(50) NO
71 keyword_count int4 NO
72 matching_priority varchar(20) NO

Foreign Keys

Indexes

  • CREATE INDEX vendors_vendor_yardi_vendor_id_b56df0a9_like ON public.vendors_vendor USING btree (yardi_vendor_id varchar_pattern_ops)
  • CREATE UNIQUE INDEX vendors_vendor_pkey ON public.vendors_vendor USING btree (id)
  • CREATE INDEX vendors_vendor_category_id_adc4abde ON public.vendors_vendor USING btree (category_id)
  • CREATE INDEX vendors_vendor_created_by_id_7be907f3 ON public.vendors_vendor USING btree (created_by_id)
  • CREATE INDEX vendors_vendor_tax_id_394b5569_like ON public.vendors_vendor USING btree (tax_id varchar_pattern_ops)
  • CREATE INDEX vendors_vendor_tax_id_394b5569 ON public.vendors_vendor USING btree (tax_id)
  • CREATE INDEX vendors_vendor_matching_priority_9b274a22_like ON public.vendors_vendor USING btree (matching_priority varchar_pattern_ops)
  • CREATE INDEX vendors_vendor_vendor_match_verified_by_id_f1203609 ON public.vendors_vendor USING btree (vendor_match_verified_by_id)
  • CREATE INDEX vendors_vendor_yardi_vendor_id_b56df0a9 ON public.vendors_vendor USING btree (yardi_vendor_id)
  • CREATE INDEX vendors_vendor_matching_priority_9b274a22 ON public.vendors_vendor USING btree (matching_priority)

Sample Data (3 of 689 rows)

idnamevendor_typeemailphonefaxmobilewebsiteaddressaddress_line_1address_line_2citystatezip_codecountrytax_idlicense_numberdba_nameyardi_vendor_idyardi_payee_idyardi_remittance_vendor_idyardi_property_idsyardi_sync_enabledyardi_last_syncpayment_methodpayment_termsbank_account_numberbank_routing_numberbank_nameis_1099_vendorexempt_from_1099w9_on_filew9_dateinsurance_carrierinsurance_policy_numberinsurance_expiry_dateliability_coverage_amountstatusis_activeis_approvedoverall_ratingservice_areasemergency_serviceminimum_order_amountvendor_match_confidencevendor_match_verifiedvendor_match_verified_atalternative_namesinternal_notescreated_atupdated_atcreated_by_idvendor_match_verified_by_idcategory_idmatching_keywordsdiscount_daysdiscount_days_after_invoicediscount_percentsales_tax_percentusual_account_idusual_account_codeis_subcontractoris_employeeis_preferred_supplierretention_percentageis_hold_paymentsis_consolidate_paymentsis_po_requiredkeyword_last_updatedkeyword_generation_methodkeyword_countmatching_priority
f111edb1-a79d-4406-b91b-ad8695d07b46Candlewyck Apartments, LLCcompanycandlewyck@mail.com(269) 381-6055100 E. CandlewyckKalamazooMI49001USA26-0645814candle["arbor", "candle", "somer"]True2025-11-11T09:14:08.546435+01:00checkFalseFalseFalseNULLNULLNULLinactiveTrueFalseNULL[]FalseNULLNULLFalseNULL[]2025-10-16T09:06:38.342653+02:002025-12-22T19:04:47.363482+01:00NULLNULLNULLCAL|Candlewyck|Candlewyck Apartment|Candlewyck Apartment LLC|Candlewyck Apartmen...0True0.00.0FalseFalseFalse0.0FalseTrueFalse2025-12-22T18:12:45.346202+01:00gemini_ai24low
687cbfd6-cd1e-47cf-a55a-b47e13715c32APCO Supplycompanyapco.supply@gmail.com123412315511 Enterprise DriveLansingMI48991United States38-1904055apcsup["ce", "lake", "meadview", "olde", "tymber", "univer"]True2025-11-11T09:02:53.593169+01:00checkFalseFalseFalseNULLNULLNULLinactiveTrueFalseNULL[]FalseNULLNULLFalseNULL[]2025-10-20T21:44:53.404462+02:002025-12-22T19:10:08.215042+01:00NULLNULLNULL30True0.08.0FalseFalseFalse0.0FalseTrueFalseNULL0low
464271a1-cc19-483c-95aa-31f22c08caf0Walnut Creek Investments, LLCcompanywalnutcreek@mail.com(765) 455-69954600 Colter DriveKokomoIN46902USA20-4727647walnut["arbor", "somer", "walnut"]True2025-11-11T09:14:08.078019+01:00checkFalseFalseFalseNULLNULLNULLinactiveTrueFalseNULL[]FalseNULLNULLFalseNULL[]2025-10-16T09:06:38.075136+02:002025-12-22T19:09:18.702123+01:00NULLNULLNULLThe Walnut Creek Investments, LLC|Walnut Creek Investments, LLC.|Walnut Creek In...0True0.00.0FalseFalseFalse0.0FalseTrueFalse2025-11-12T08:53:01.241439+01:00gemini_ai25low
vendors_match_confirmation
67 rows 22 cols 4 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 ocr_snippet text NO
3 proposed_keywords text NO
4 gemini_suggested bool NO
5 gemini_confidence numeric YES
6 suggestion_rank int4 YES
7 gemini_alternatives jsonb NO
8 semantic_validation_passed bool NO
9 semantic_confidence numeric YES
10 semantic_validation_reason text NO
11 status varchar(20) NO
12 keywords_added text NO
13 keywords_added_count int4 NO
14 reviewed_at timestamptz YES
15 review_notes text NO
16 confirmed_at timestamptz NO
17 invoice_ocr_quality varchar(20) NO
18 match_method varchar(50) NO
19 confirmed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
20 confirmed_vendor_id uuid NO ๐Ÿ”— โ†’ vendors_vendor.id
21 invoice_id int8 NO ๐Ÿ”— โ†’ invoices.id
22 reviewed_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE INDEX vendors_mat_semanti_cdfc42_idx ON public.vendors_match_confirmation USING btree (semantic_validation_passed, status)
  • CREATE UNIQUE INDEX vendors_match_confirmation_pkey ON public.vendors_match_confirmation USING btree (id)
  • CREATE INDEX vendors_mat_confirm_3da9e5_idx ON public.vendors_match_confirmation USING btree (confirmed_vendor_id, confirmed_at DESC)
  • CREATE INDEX vendors_mat_gemini__14fdbf_idx ON public.vendors_match_confirmation USING btree (gemini_suggested, status)
  • CREATE INDEX vendors_mat_status_596ace_idx ON public.vendors_match_confirmation USING btree (status, confirmed_at DESC)
  • CREATE INDEX vendors_match_confirmation_confirmed_by_id_8b00fc20 ON public.vendors_match_confirmation USING btree (confirmed_by_id)
  • CREATE INDEX vendors_match_confirmation_confirmed_vendor_id_f98202a8 ON public.vendors_match_confirmation USING btree (confirmed_vendor_id)
  • CREATE INDEX vendors_match_confirmation_invoice_id_510d098c ON public.vendors_match_confirmation USING btree (invoice_id)
  • CREATE INDEX vendors_match_confirmation_reviewed_by_id_9ebd44a4 ON public.vendors_match_confirmation USING btree (reviewed_by_id)
  • CREATE INDEX vendors_match_confirmation_status_a5a2ead4 ON public.vendors_match_confirmation USING btree (status)
  • CREATE INDEX vendors_match_confirmation_status_a5a2ead4_like ON public.vendors_match_confirmation USING btree (status varchar_pattern_ops)

Sample Data (3 of 67 rows)

idocr_snippetproposed_keywordsgemini_suggestedgemini_confidencesuggestion_rankgemini_alternativessemantic_validation_passedsemantic_confidencesemantic_validation_reasonstatuskeywords_addedkeywords_added_countreviewed_atreview_notesconfirmed_atinvoice_ocr_qualitymatch_methodconfirmed_by_idconfirmed_vendor_idinvoice_idreviewed_by_id
fe8c90eb-76e4-4e45-8ddf-b5c71c424871INVOICE LOWE'S PRO SUPPLY 6910 Brasada Drive Houston, TX 77085 RETURN SERVICE RE...LOWE'S PRO SUPPLY 6910 Brasada Drive Houston TX 77085|LOWE'S PRO|LOWES PRO|LOWES...FalseNULLNULL[]False100.0The proposed keyword contains 'LOWE'S PRO SUPPLY', which is a different company ...rejected0NULL2025-12-10T15:28:54.630081+01:00manual615feb8a18-af98-4c9a-87e8-e409fcb4020a11507NULL
b6e33f01-bfaa-4306-9e70-62a6fe5b3fdcLOWES PRO SUPPLYFalseNULLNULL[]FalseNULLpending_review0NULL2025-12-10T15:28:54.658927+01:00user_correction615feb8a18-af98-4c9a-87e8-e409fcb4020a11507NULL
f5fb4abe-52c4-4727-872b-29addbc176e1REDICARPET Powered By HD Supplyโ“‡ www.RediCarpet.com SHIP TO: INVOICE NO. CINY012...REDICARPET Powered By HD Supply www.RediCarpet.com SHIP TO INVOICE NO CINY|RediC...FalseNULLNULL[]False100.0The proposed keyword 'REDICARPET Powered By HD Supplyโ“‡ www.RediCarpet.com SHIP T...rejected0NULL2025-12-11T09:46:40.044937+01:00manual1b0062ecb-9091-4437-89b4-38c34637b8ad11660NULL
vendor_bids
58 rows 14 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 vendor_id uuid NO
3 total_amount numeric NO
4 line_items jsonb NO
5 estimated_hours numeric NO
6 proposed_start_date date NO
7 completion_days int4 NO
8 message text NO
9 status varchar(20) NO
10 status_updated_at timestamptz YES
11 submitted_at timestamptz NO
12 created_at timestamptz NO
13 updated_at timestamptz NO
14 job_id int4 NO ๐Ÿ”— โ†’ marketplace_jobs.id

Foreign Keys

Indexes

  • CREATE INDEX vendor_bids_job_id_31438e42 ON public.vendor_bids USING btree (job_id)
  • CREATE UNIQUE INDEX vendor_bids_pkey ON public.vendor_bids USING btree (id)
  • CREATE INDEX vendor_bids_vendor_id_ab0d80c6 ON public.vendor_bids USING btree (vendor_id)
  • CREATE UNIQUE INDEX vendor_bids_job_id_vendor_id_35b2b2e3_uniq ON public.vendor_bids USING btree (job_id, vendor_id)
  • CREATE INDEX vendor_bids_vendor__15a29a_idx ON public.vendor_bids USING btree (vendor_id, status)
  • CREATE INDEX vendor_bids_job_id_2d60bb_idx ON public.vendor_bids USING btree (job_id, status)
  • CREATE INDEX vendor_bids_status_b70a49c4 ON public.vendor_bids USING btree (status)
  • CREATE INDEX vendor_bids_status_b70a49c4_like ON public.vendor_bids USING btree (status varchar_pattern_ops)

Sample Data (3 of 58 rows)

idvendor_idtotal_amountline_itemsestimated_hoursproposed_start_datecompletion_daysmessagestatusstatus_updated_atsubmitted_atcreated_atupdated_atjob_id
24c9b41dbc-4b52-4e0d-9a9d-e9846a5a3dad2865.24[{"type": "labor", "total": "631.79", "quantity": 1, "unit_price": "631.79", "description": "Thermos12.02026-04-069We take pride in our attention to detail and competitive pricing. Our bid reflec...accepted2026-03-31T17:07:45.569463+02:002026-03-31T17:07:45.568194+02:002026-03-31T17:07:45.568202+02:002026-03-31T17:07:45.568205+02:0015
2200000000-0000-0000-0000-000000000001150.0[{"type": "labor", "total": 150, "quantity": 1, "unit_price": 150, "description": "Fix it"}]2.02026-03-251Test bidaccepted2026-03-24T17:03:15.537358+01:002026-03-24T17:02:08.47715+01:002026-03-24T17:02:08.477156+01:002026-03-24T17:03:15.537531+01:0014
2309d5d6de-7c10-413b-87d5-86aa2126d9dd4885.61[{"type": "material", "total": "1484.74", "quantity": 1, "unit_price": "1484.74", "description": "Fi5.72026-04-0312We can be flexible on scheduling to accommodate tenant needs. All materials sour...rejected2026-03-31T17:07:45.571003+02:002026-03-31T17:07:45.563+02:002026-03-31T17:07:45.563013+02:002026-03-31T17:07:45.563019+02:0015
vendor_contract
20 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 vendor_performance_id uuid NO ๐Ÿ”— โ†’ vendor_performance.id
3 document_type varchar(20) NO 'contract'::character varying
4 document_name varchar(300) NO ''::character varying
5 expires_at date NO
6 days_remaining int4 NO 0
7 status varchar(20) NO 'active'::character varying

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX vendor_contract_pkey ON public.vendor_contract USING btree (id)

Sample Data (3 of 20 rows)

idvendor_performance_iddocument_typedocument_nameexpires_atdays_remainingstatus
eaae086a-f6c5-414c-8b6f-4435c517b950699ecf0c-7b8b-49ca-b311-af646ff4ef73insuranceGeneral Liability Policy2026-04-2527expiring
f4ec2322-c53f-40a5-96a4-3f3a301d6d5c321f808f-e1f3-4c23-91d3-ad35807729e9licenseTrade License2026-04-024expiring
81217f0c-e406-4f4e-8326-eed9fae7ba914a45690e-f410-483e-a4bd-7288729e23bbcontractService Agreement2026-04-1416expiring
vendor_performance
15 rows 14 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 vendor_name varchar(200) NO
3 vendor_category varchar(100) NO
4 overall_score float8 NO 0.0
5 response_time_score float8 NO 0.0
6 first_visit_resolution_score float8 NO 0.0
7 cost_accuracy_score float8 NO 0.0
8 sla_compliance_score float8 NO 0.0
9 tenant_satisfaction_score float8 NO 0.0
10 documentation_score float8 NO 0.0
11 job_count int4 NO 0
12 avg_cost numeric NO 0
13 sparkline_data jsonb NO '[]'::jsonb
14 last_updated timestamptz NO now()

Indexes

  • CREATE UNIQUE INDEX vendor_performance_pkey ON public.vendor_performance USING btree (id)

Sample Data (3 of 15 rows)

idvendor_namevendor_categoryoverall_scoreresponse_time_scorefirst_visit_resolution_scorecost_accuracy_scoresla_compliance_scoretenant_satisfaction_scoredocumentation_scorejob_countavg_costsparkline_datalast_updated
699ecf0c-7b8b-49ca-b311-af646ff4ef73Ace Plumbing Co.plumbing8.889.28.88.599.18.772245.0[9.5, 8.1, 8.7, 8.6, 9.2, 8.1, 9.1, 8.6, 9.3, 8.6, 9.1, 8.9]2026-03-29T20:59:10.00977+02:00
321f808f-e1f3-4c23-91d3-ad35807729e9Metro Pipe & Drainplumbing6.886.87.276.576.838275.0[6.9, 5.8, 8.1, 6.4, 7.2, 7.4, 7.0, 6.3, 7.0, 7.2, 6.9, 7.0]2026-03-29T20:59:10.01109+02:00
4a45690e-f410-483e-a4bd-7288729e23bbQuickFix Plumbingplumbing4.474.54.85.244.53.812310.0[3.9, 3.8, 3.7, 4.3, 3.7, 4.0, 4.6, 3.9, 4.6, 4.2, 4.2, 4.4]2026-03-29T20:59:10.012119+02:00
vendor_enrichment
8 rows 13 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO gen_random_uuid() ๐Ÿ”‘ PK
2 vendor_id uuid NO
3 logo_url varchar(500) YES ''::character varying
4 enrichment_status varchar(50) YES 'not_started'::character varying
5 enrichment_data jsonb YES '{}'::jsonb
6 enrichment_source varchar(100) YES ''::character varying
7 description text YES ''::text
8 services text YES ''::text
9 website_found varchar(500) YES ''::character varying
10 ai_analysis text YES ''::text
11 proposed_changes jsonb YES '{}'::jsonb
12 created_at timestamptz YES now()
13 updated_at timestamptz YES now()

Indexes

  • CREATE UNIQUE INDEX vendor_enrichment_vendor_id_key ON public.vendor_enrichment USING btree (vendor_id)
  • CREATE INDEX idx_vendor_enrichment_vendor ON public.vendor_enrichment USING btree (vendor_id)
  • CREATE INDEX idx_vendor_enrichment_status ON public.vendor_enrichment USING btree (enrichment_status)
  • CREATE UNIQUE INDEX vendor_enrichment_pkey ON public.vendor_enrichment USING btree (id)

Sample Data (3 of 8 rows)

idvendor_idlogo_urlenrichment_statusenrichment_dataenrichment_sourcedescriptionserviceswebsite_foundai_analysisproposed_changescreated_atupdated_at
61c94aa6-c974-408c-bc8a-477d82943a3c4779bb12-4076-4a3e-8768-724c7f716646approved{}https://www.1tomplumber.com/{"website": {"score": 25, "domain": "www.1tomplumber.com", "current": "", "proposed": "https://www.12026-01-20T09:33:52.524587+01:002026-01-20T10:02:32.723353+01:00
54c9456a-8e98-4473-8062-04855f25ef4cc121cb17-b671-42e2-9567-40507b32a324pending_review{"notes": "The content provided is about the city of Fishers, Indiana, not a specific company. The phttps://en.wikipedia.org/wiki/Fishers,_Indiana{"phone": {"current": "", "proposed": "1327425020"}, "website": {"score": 3, "domain": "en.wikipedia2026-01-20T10:03:24.268842+01:002026-01-20T10:03:29.420696+01:00
7d9cce42-659a-4682-bf3f-475686249393053df7ec-4ad2-42ef-9fa1-2528f99bff2fhttp://77.237.235.106:8891/logos/053df7ec-4ad2-42ef-9fa1-2528f99bff2f.svgpending_review{"notes": "The provided content is about the state of Ohio from Wikipedia and does not contain specihttps://en.wikipedia.org/wiki/Ohio{"phone": {"current": "6145897227", "proposed": "0246810121"}, "website": {"score": 3, "domain": "en2026-01-20T10:12:51.675251+01:002026-01-20T10:12:56.838158+01:00
vendors_category
7 rows 6 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 name varchar(100) NO
3 category_type varchar(50) NO
4 description text NO
5 is_active bool NO
6 created_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX vendors_category_name_key ON public.vendors_category USING btree (name)
  • CREATE UNIQUE INDEX vendors_category_pkey ON public.vendors_category USING btree (id)
  • CREATE INDEX vendors_category_name_f0545e38_like ON public.vendors_category USING btree (name varchar_pattern_ops)

Sample Data (3 of 7 rows)

idnamecategory_typedescriptionis_activecreated_at
1e7ee497-e243-4e2a-a1ac-63e97579e134Cleaning ServicescleaningTrue2025-09-21T17:31:48.769994+02:00
6271e4dc-9a78-48da-8193-7941b7502672Electrical ServiceselectricalTrue2025-09-21T17:31:48.771994+02:00
2caf2e0f-2318-47f4-9c09-959bb6727b94HVAC ServiceshvacTrue2025-09-21T17:31:48.770995+02:00
vendor_hub_profiles
2 rows 20 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 vendor_id uuid NO
3 latitude numeric YES
4 longitude numeric YES
5 service_radius_miles int4 NO
6 specializations _varchar NO
7 license_verified bool NO
8 insurance_verified bool NO
9 background_check_passed bool NO
10 total_bids int4 NO
11 total_wins int4 NO
12 total_completed int4 NO
13 total_earnings numeric NO
14 avg_rating numeric NO
15 total_reviews int4 NO
16 on_time_rate numeric NO
17 response_time_hours numeric NO
18 joined_at timestamptz NO
19 created_at timestamptz NO
20 updated_at timestamptz NO

Indexes

  • CREATE UNIQUE INDEX vendor_hub_profiles_vendor_id_key ON public.vendor_hub_profiles USING btree (vendor_id)
  • CREATE UNIQUE INDEX vendor_hub_profiles_pkey ON public.vendor_hub_profiles USING btree (id)

Sample Data (2 of 2 rows)

idvendor_idlatitudelongitudeservice_radius_milesspecializationslicense_verifiedinsurance_verifiedbackground_check_passedtotal_bidstotal_winstotal_completedtotal_earningsavg_ratingtotal_reviewson_time_rateresponse_time_hoursjoined_atcreated_atupdated_at
100000000-0000-0000-0000-000000000001NULLNULL25[]FalseFalseFalse8000.00.00100.024.02026-01-20T11:12:54.11048+01:002026-01-20T11:12:54.110505+01:002026-03-24T17:02:08.484608+01:00
2550e8400-e29b-41d4-a716-446655440000NULLNULL25[]FalseFalseFalse0000.00.00100.024.02026-04-04T13:41:43.765738+02:002026-04-04T13:41:43.76575+02:002026-04-04T13:41:43.765753+02:00
vendor_notifications
2 rows 9 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 vendor_id uuid NO
3 notification_type varchar(30) NO
4 title varchar(200) NO
5 message text NO
6 reference_type varchar(50) NO
7 reference_id varchar(100) NO
8 is_read bool NO
9 created_at timestamptz NO

Indexes

  • CREATE INDEX vendor_noti_vendor__401ec6_idx ON public.vendor_notifications USING btree (vendor_id, is_read)
  • CREATE UNIQUE INDEX vendor_notifications_pkey ON public.vendor_notifications USING btree (id)
  • CREATE INDEX vendor_notifications_vendor_id_ac92d5d0 ON public.vendor_notifications USING btree (vendor_id)

Sample Data (2 of 2 rows)

idvendor_idnotification_typetitlemessagereference_typereference_idis_readcreated_at
17563ea87-cb19-4fae-afa8-b046fb17f033job_assignedNew Job AssignedYou have been assigned to work order "ALERT: Poor Air Quality Detected โ€” Summit ...work_order95c4d9c2-e76f-4d2b-a32d-64542c4325cfFalse2026-04-01T16:34:00.089001+02:00
27563ea87-cb19-4fae-afa8-b046fb17f033job_assignedNew Job AssignedYou have been assigned to work order "ALERT: Poor Air Quality Detected โ€” Summit ...work_order95c4d9c2-e76f-4d2b-a32d-64542c4325cfFalse2026-04-01T16:34:00.100433+02:00
vendor_invoice_uploads
0 rows 13 cols
#ColumnTypeNullableDefaultNotes
1 id int4 NO ๐Ÿ”‘ PK
2 work_order_id uuid NO
3 vendor_id uuid NO
4 invoice_number varchar(100) NO
5 invoice_amount numeric NO
6 invoice_date date YES
7 file_url varchar(500) YES
8 notes text NO
9 status varchar(20) NO
10 reviewed_by varchar(200) NO
11 reviewed_at timestamptz YES
12 created_at timestamptz NO
13 updated_at timestamptz NO

Indexes

  • CREATE INDEX vendor_invoice_uploads_vendor_id_379c4844 ON public.vendor_invoice_uploads USING btree (vendor_id)
  • CREATE UNIQUE INDEX vendor_invoice_uploads_pkey ON public.vendor_invoice_uploads USING btree (id)
  • CREATE INDEX vendor_invoice_uploads_work_order_id_07f42704 ON public.vendor_invoice_uploads USING btree (work_order_id)
  • CREATE INDEX vendor_invo_work_or_032cc7_idx ON public.vendor_invoice_uploads USING btree (work_order_id)
  • CREATE INDEX vendor_invo_vendor__6b9c00_idx ON public.vendor_invoice_uploads USING btree (vendor_id, status)

Sample Data (0 of 0 rows)

No data

vendors_chat_thread
0 rows 11 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 vendor_can_participate bool NO
3 auto_notify_vendor bool NO
4 external_thread_id varchar(100) NO
5 sync_to_email bool NO
6 auto_create_work_orders bool NO
7 escalation_rules jsonb NO
8 created_at timestamptz NO
9 updated_at timestamptz NO
10 chat_thread_id uuid NO ๐Ÿ”— โ†’ chat_threads.id
11 vendor_communication_id uuid NO ๐Ÿ”— โ†’ vendors_communication.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX vendors_chat_thread_chat_thread_id_key ON public.vendors_chat_thread USING btree (chat_thread_id)
  • CREATE UNIQUE INDEX vendors_chat_thread_pkey ON public.vendors_chat_thread USING btree (id)
  • CREATE UNIQUE INDEX vendors_chat_thread_vendor_communication_id_key ON public.vendors_chat_thread USING btree (vendor_communication_id)
  • CREATE INDEX vendors_cha_chat_th_7e4497_idx ON public.vendors_chat_thread USING btree (chat_thread_id)
  • CREATE INDEX vendors_cha_vendor__fcb717_idx ON public.vendors_chat_thread USING btree (vendor_communication_id)

Sample Data (0 of 0 rows)

No data

vendors_communication
0 rows 29 cols 7 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 communication_type varchar(20) NO
3 status varchar(20) NO
4 priority varchar(20) NO
5 subject varchar(200) NO
6 content text NO
7 response_required bool NO
8 response_deadline timestamptz YES
9 response_received timestamptz YES
10 response_content text NO
11 attachments jsonb NO
12 external_reference varchar(200) NO
13 is_internal_note bool NO
14 thread_id uuid NO
15 is_thread_starter bool NO
16 reply_count int4 NO
17 thread_title varchar(200) NO
18 thread_status varchar(20) NO
19 last_activity_at timestamptz NO
20 created_at timestamptz NO
21 updated_at timestamptz NO
22 building_id uuid YES ๐Ÿ”— โ†’ properties_building.id
23 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
24 invoice_id int8 YES ๐Ÿ”— โ†’ invoices.id
25 parent_communication_id uuid YES ๐Ÿ”— โ†’ vendors_communication.id
26 property_id uuid YES ๐Ÿ”— โ†’ properties.id
27 unit_id uuid YES ๐Ÿ”— โ†’ units_unit.id
28 vendor_id uuid NO ๐Ÿ”— โ†’ vendors_vendor.id
29 metadata jsonb NO

Foreign Keys

Indexes

  • CREATE INDEX vendors_communication_vendor_id_38dc3699 ON public.vendors_communication USING btree (vendor_id)
  • CREATE UNIQUE INDEX vendors_communication_pkey ON public.vendors_communication USING btree (id)
  • CREATE INDEX vendors_com_is_thre_5b3d95_idx ON public.vendors_communication USING btree (is_thread_starter, thread_status)
  • CREATE INDEX vendors_com_parent__34a20f_idx ON public.vendors_communication USING btree (parent_communication_id, created_at)
  • CREATE INDEX vendors_com_propert_2a7881_idx ON public.vendors_communication USING btree (property_id, created_at DESC)
  • CREATE INDEX vendors_com_status_818b6a_idx ON public.vendors_communication USING btree (status, priority)
  • CREATE INDEX vendors_com_thread__693dc2_idx ON public.vendors_communication USING btree (thread_status, last_activity_at DESC)
  • CREATE INDEX vendors_com_thread__bb7ab4_idx ON public.vendors_communication USING btree (thread_id, created_at DESC)
  • CREATE INDEX vendors_com_vendor__b1b8ae_idx ON public.vendors_communication USING btree (vendor_id, created_at DESC)
  • CREATE INDEX vendors_communication_building_id_850a985f ON public.vendors_communication USING btree (building_id)
  • CREATE INDEX vendors_communication_created_by_id_427930a2 ON public.vendors_communication USING btree (created_by_id)
  • CREATE INDEX vendors_communication_invoice_id_6c9c04ec ON public.vendors_communication USING btree (invoice_id)
  • CREATE INDEX vendors_communication_parent_communication_id_f4c8cd38 ON public.vendors_communication USING btree (parent_communication_id)
  • CREATE INDEX vendors_communication_property_id_427b4f99 ON public.vendors_communication USING btree (property_id)
  • CREATE INDEX vendors_communication_unit_id_b76bc9ec ON public.vendors_communication USING btree (unit_id)

Check Constraints

  • vendors_communication_reply_count_check: (reply_count >= 0)

Sample Data (0 of 0 rows)

No data

vendors_communication_internal_participants
0 rows 3 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id int8 NO ๐Ÿ”‘ PK
2 vendorcommunication_id uuid NO ๐Ÿ”— โ†’ vendors_communication.id
3 user_id int4 NO ๐Ÿ”— โ†’ auth_user.id

Foreign Keys

Indexes

  • CREATE UNIQUE INDEX vendors_communication_in_vendorcommunication_id_u_8220f4d7_uniq ON public.vendors_communication_internal_participants USING btree (vendorcommunication_id, user_id)
  • CREATE INDEX vendors_communication_internal_participants_user_id_a23143d9 ON public.vendors_communication_internal_participants USING btree (user_id)
  • CREATE INDEX vendors_communication_inte_vendorcommunication_id_384c5162 ON public.vendors_communication_internal_participants USING btree (vendorcommunication_id)
  • CREATE UNIQUE INDEX vendors_communication_internal_participants_pkey ON public.vendors_communication_internal_participants USING btree (id)

Sample Data (0 of 0 rows)

No data

vendors_contract
0 rows 10 cols 2 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 contract_number varchar(100) NO
3 title varchar(200) NO
4 start_date date NO
5 end_date date YES
6 contract_value numeric YES
7 status varchar(20) NO
8 created_at timestamptz NO
9 created_by_id int4 YES ๐Ÿ”— โ†’ auth_user.id
10 vendor_id uuid NO ๐Ÿ”— โ†’ vendors_vendor.id

Foreign Keys

Indexes

  • CREATE INDEX vendors_contract_vendor_id_6691b049 ON public.vendors_contract USING btree (vendor_id)
  • CREATE UNIQUE INDEX vendors_contract_contract_number_key ON public.vendors_contract USING btree (contract_number)
  • CREATE UNIQUE INDEX vendors_contract_pkey ON public.vendors_contract USING btree (id)
  • CREATE INDEX vendors_contract_contract_number_37398b1f_like ON public.vendors_contract USING btree (contract_number varchar_pattern_ops)
  • CREATE INDEX vendors_contract_created_by_id_c7fe5323 ON public.vendors_contract USING btree (created_by_id)

Sample Data (0 of 0 rows)

No data

๐Ÿšช Portal & Auth 4 tables ยท 521 rows
portal_refresh_tokens
519 rows 10 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 token varchar(255) NO
3 device_info jsonb NO
4 ip_address inet YES
5 user_agent varchar(500) YES
6 is_revoked bool NO
7 expires_at timestamptz NO
8 last_used_at timestamptz YES
9 created_at timestamptz NO
10 portal_user_id uuid NO ๐Ÿ”— โ†’ portal_users.id

Foreign Keys

Indexes

  • CREATE INDEX portal_refr_token_913630_idx ON public.portal_refresh_tokens USING btree (token, is_revoked)
  • CREATE INDEX portal_refresh_tokens_token_33ff174d_like ON public.portal_refresh_tokens USING btree (token varchar_pattern_ops)
  • CREATE INDEX portal_refresh_tokens_portal_user_id_f4423968 ON public.portal_refresh_tokens USING btree (portal_user_id)
  • CREATE UNIQUE INDEX portal_refresh_tokens_token_key ON public.portal_refresh_tokens USING btree (token)
  • CREATE UNIQUE INDEX portal_refresh_tokens_pkey ON public.portal_refresh_tokens USING btree (id)
  • CREATE INDEX portal_refr_portal__0933fd_idx ON public.portal_refresh_tokens USING btree (portal_user_id, is_revoked)

Sample Data (3 of 519 rows)

idtokendevice_infoip_addressuser_agentis_revokedexpires_atlast_used_atcreated_atportal_user_id
a9413088-a83b-4a46-abb3-9093571dae48X4MviCEczflbjwGJPTy_9ZEntzRiPlpJipvzxnDZYUEpd4ZARRTByEePZWZv8OTq6BTSqrq5onE7gQfX...{}77.237.235.106curl/8.5.0False2026-04-19T10:57:10.571169+02:00NULL2026-03-20T09:57:10.572303+01:00a4e15b8c-35e6-4e7f-83b6-117ce11579b6
0442eff2-fc11-4d6a-873a-4d38f2ea76a7bRPJ9vjXnqlLIa5b00BdvMRErNrIR_ixVvH5AtHDixEK87CKipex-Sk6TSiP4kWT4KqfrPb2N_7eB59G...{}127.0.0.1curl/8.5.0False2026-04-23T16:24:40.241581+02:00NULL2026-03-24T15:24:40.242214+01:00a4e15b8c-35e6-4e7f-83b6-117ce11579b6
27579ce1-6290-4614-bed7-5a48d60436cc1jdEGNCm8AhWobhqyGOWynZwxuRL5emVOhZ0Pfz_ujYz_8KezL21gQ88kFmU-TyXxjI-zjPh7DvCOj7R...{}77.237.235.106Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessC...False2026-04-23T16:24:51.05069+02:00NULL2026-03-24T15:24:51.051231+01:00a4e15b8c-35e6-4e7f-83b6-117ce11579b6
portal_users
2 rows 20 cols
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 user_type varchar(20) NO
3 email varchar(254) NO
4 phone varchar(20) YES
5 password_hash varchar(255) YES
6 tenant_id uuid YES
7 vendor_id uuid YES
8 owner_id uuid YES
9 first_name varchar(100) NO
10 last_name varchar(100) NO
11 avatar_url varchar(500) YES
12 is_active bool NO
13 is_verified bool NO
14 email_verified bool NO
15 phone_verified bool NO
16 mfa_enabled bool NO
17 mfa_secret varchar(100) YES
18 last_login timestamptz YES
19 created_at timestamptz NO
20 updated_at timestamptz NO

Indexes

  • CREATE INDEX portal_users_vendor_id_d6ca6826 ON public.portal_users USING btree (vendor_id)
  • CREATE UNIQUE INDEX portal_users_pkey ON public.portal_users USING btree (id)
  • CREATE INDEX portal_user_phone_5722ef_idx ON public.portal_users USING btree (phone)
  • CREATE INDEX portal_user_email_b56cbe_idx ON public.portal_users USING btree (email)
  • CREATE INDEX portal_user_user_ty_e69617_idx ON public.portal_users USING btree (user_type, is_active)
  • CREATE INDEX portal_users_owner_id_8bc6daff ON public.portal_users USING btree (owner_id)
  • CREATE INDEX portal_users_tenant_id_18246c4b ON public.portal_users USING btree (tenant_id)
  • CREATE INDEX portal_users_email_4782c6f7_like ON public.portal_users USING btree (email varchar_pattern_ops)
  • CREATE UNIQUE INDEX portal_users_email_key ON public.portal_users USING btree (email)

Sample Data (2 of 2 rows)

iduser_typeemailphonepassword_hashtenant_idvendor_idowner_idfirst_namelast_nameavatar_urlis_activeis_verifiedemail_verifiedphone_verifiedmfa_enabledmfa_secretlast_logincreated_atupdated_at
521ca2d7-489f-4620-be00-fb892ae098cbproperty_manageradmin@zidansai.comNULLpbkdf2_sha256$1000000$6KYyiFCIJtu73mhuZtbbaI$8wJKkbGG8Cdwk34C0meFzTELeTucvFlzx5x...NULLNULLNULLAdminUserNULLTrueTrueTrueFalseFalseNULL2026-04-02T17:33:21.658655+02:002026-04-02T11:25:39.423043+02:002026-04-02T11:25:39.423071+02:00
a4e15b8c-35e6-4e7f-83b6-117ce11579b6adminadmin@property-intelligence.demoNULLpbkdf2_sha256$1000000$RdNCvzO0Oy3KsYKqJ7ErcD$7flXbaRNEvJa6ry19UU1gU5+frcyLPPDMaU...NULLNULLNULLAdminUserNULLTrueTrueTrueFalseFalseNULL2026-04-04T13:16:24.709467+02:002026-03-20T09:57:02.713223+01:002026-04-01T20:45:26.358088+02:00
portal_otp
0 rows 12 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 otp_code varchar(6) NO
3 otp_type varchar(20) NO
4 sent_to varchar(255) NO
5 delivery_method varchar(10) NO
6 is_used bool NO
7 attempts int4 NO
8 max_attempts int4 NO
9 expires_at timestamptz NO
10 verified_at timestamptz YES
11 created_at timestamptz NO
12 portal_user_id uuid NO ๐Ÿ”— โ†’ portal_users.id

Foreign Keys

Indexes

  • CREATE INDEX portal_otp_otp_cod_a1db89_idx ON public.portal_otp USING btree (otp_code, expires_at)
  • CREATE UNIQUE INDEX portal_otp_pkey ON public.portal_otp USING btree (id)
  • CREATE INDEX portal_otp_portal_user_id_119b7644 ON public.portal_otp USING btree (portal_user_id)
  • CREATE INDEX portal_otp_portal__faeaa0_idx ON public.portal_otp USING btree (portal_user_id, otp_type, is_used)

Sample Data (0 of 0 rows)

No data

portal_password_resets
0 rows 7 cols 1 FKs
#ColumnTypeNullableDefaultNotes
1 id uuid NO ๐Ÿ”‘ PK
2 token varchar(255) NO
3 is_used bool NO
4 expires_at timestamptz NO
5 used_at timestamptz YES
6 created_at timestamptz NO
7 portal_user_id uuid NO ๐Ÿ”— โ†’ portal_users.id

Foreign Keys

Indexes

  • CREATE INDEX portal_password_resets_portal_user_id_9581b9f7 ON public.portal_password_resets USING btree (portal_user_id)
  • CREATE UNIQUE INDEX portal_password_resets_pkey ON public.portal_password_resets USING btree (id)
  • CREATE UNIQUE INDEX portal_password_resets_token_key ON public.portal_password_resets USING btree (token)
  • CREATE INDEX portal_password_resets_token_40bef4ab_like ON public.portal_password_resets USING btree (token varchar_pattern_ops)

Sample Data (0 of 0 rows)

No data

๐Ÿ•ธ๏ธ All Foreign Key Relationships 368 relationships
From TableColumnโ†’To TableColumn
agent_rule_evaluation_logs rule_id โ†’ agent_rules id
agent_rules created_by_id โ†’ auth_user id
agent_rules property_ref_id โ†’ properties id
agent_rules updated_by_id โ†’ auth_user id
agent_rules vendor_id โ†’ vendors_vendor id
analytics_objective parent_id โ†’ analytics_objective id
analytics_objectiveprogress objective_id โ†’ analytics_objective id
assets_asset category_id โ†’ assets_category id
assets_asset created_by_id โ†’ auth_user id
assets_asset legacy_property_id โ†’ properties id
assets_asset organization_level_id โ†’ assets_organization_level id
assets_asset parent_asset_id โ†’ assets_asset id
assets_asset service_provider_id โ†’ vendors_vendor id
assets_asset unit_id โ†’ units_unit id
assets_category parent_id โ†’ assets_category id
assets_depreciation asset_id โ†’ assets_asset id
assets_lifecycle asset_id โ†’ assets_asset id
assets_lifecycle created_by_id โ†’ auth_user id
assets_location asset_id โ†’ assets_asset id
assets_location organization_level_id โ†’ assets_organization_level id
assets_location verified_by_id โ†’ auth_user id
assets_maintenance asset_id โ†’ assets_asset id
assets_maintenance assigned_vendor_id โ†’ vendors_vendor id
assets_maintenance created_by_id โ†’ auth_user id
assets_organization_level parent_id โ†’ assets_organization_level id
assets_transfer approved_by_id โ†’ auth_user id
assets_transfer asset_id โ†’ assets_asset id
assets_transfer from_level_id โ†’ assets_organization_level id
assets_transfer requested_by_id โ†’ auth_user id
assets_transfer to_level_id โ†’ assets_organization_level id
assets_warranty asset_id โ†’ assets_asset id
assets_warranty created_by_id โ†’ auth_user id
audit_categories audit_id โ†’ monthly_posting_audits id
audit_logs user_id โ†’ auth_user id
audit_notes audit_id โ†’ monthly_posting_audits id
audit_notes created_by_id โ†’ auth_user id
audit_notes tenant_record_id โ†’ audit_tenant_records id
audit_notes variance_record_id โ†’ variance_records id
audit_settings updated_by_id โ†’ auth_user id
audit_tenant_records audit_category_id โ†’ audit_categories id
audit_tenant_records investigated_by_id โ†’ auth_user id
audit_tenant_records tenant_id โ†’ tenants id
audit_tenant_records unit_id โ†’ units_unit id
auth_group_permissions group_id โ†’ auth_group id
auth_group_permissions permission_id โ†’ auth_permission id
auth_permission content_type_id โ†’ django_content_type id
auth_user_groups group_id โ†’ auth_group id
auth_user_groups user_id โ†’ auth_user id
auth_user_user_permissions permission_id โ†’ auth_permission id
auth_user_user_permissions user_id โ†’ auth_user id
backdating_flags acknowledged_by_id โ†’ auth_user id
backdating_flags lease_id โ†’ tenants id
backdating_flags tenant_id โ†’ tenants id
bk_anomalien_bkanomaly property_id โ†’ properties id
chart_of_accounts category_id โ†’ expense_categories id
chart_of_accounts created_by_id โ†’ auth_user id
chat_activity_logs message_id โ†’ chat_messages id
chat_activity_logs thread_id โ†’ chat_threads id
chat_activity_logs user_id โ†’ auth_user id
chat_message_attachments message_id โ†’ chat_messages id
chat_message_attachments uploaded_by_id โ†’ auth_user id
chat_message_reactions message_id โ†’ chat_messages id
chat_message_reactions user_id โ†’ auth_user id
chat_message_reads message_id โ†’ chat_messages id
chat_message_reads user_id โ†’ auth_user id
chat_messages edited_by_id โ†’ auth_user id
chat_messages parent_message_id โ†’ chat_messages id
chat_messages sender_id โ†’ auth_user id
chat_messages thread_id โ†’ chat_threads id
chat_messages_mentions chatmessage_id โ†’ chat_messages id
chat_messages_mentions user_id โ†’ auth_user id
chat_notifications content_type_id โ†’ django_content_type id
chat_notifications recipient_id โ†’ auth_user id
chat_notifications sender_id โ†’ auth_user id
chat_participants invited_by_id โ†’ auth_user id
chat_participants thread_id โ†’ chat_threads id
chat_participants user_id โ†’ auth_user id
chat_threads created_by_id โ†’ auth_user id
chat_threads invoice_id โ†’ invoices id
chat_threads team_id โ†’ rbac_team id
collection_action case_id โ†’ collection_case id
collection_audit_trail case_id โ†’ collection_case id
collection_call_log case_id โ†’ collection_case id
collection_document case_id โ†’ collection_case id
collection_document parent_document_id โ†’ collection_document id
collection_legal_event case_id โ†’ collection_case id
collection_legal_fee case_id โ†’ collection_case id
collection_payment_plan case_id โ†’ collection_case id
collection_plan_installment plan_id โ†’ collection_payment_plan id
collection_scheduled_message case_id โ†’ collection_case id
compliance_snapshots property_id โ†’ properties id
configurations updated_by_id โ†’ auth_user id
django_admin_log content_type_id โ†’ django_content_type id
django_admin_log user_id โ†’ auth_user id
django_apscheduler_djangojobexecution job_id โ†’ django_apscheduler_djangojob id
django_celery_beat_periodictask clocked_id โ†’ django_celery_beat_clockedschedule id
django_celery_beat_periodictask crontab_id โ†’ django_celery_beat_crontabschedule id
django_celery_beat_periodictask interval_id โ†’ django_celery_beat_intervalschedule id
django_celery_beat_periodictask solar_id โ†’ django_celery_beat_solarschedule id
duplicate_payment_detections invoice_id โ†’ invoices id
duplicate_payment_detections related_invoice_id โ†’ invoices id
duplicate_payment_detections resolved_by_id โ†’ auth_user id
email_messages user_id โ†’ auth_user id
exception_rules created_by_id โ†’ auth_user id
exception_rules exception_type_id โ†’ exception_types id
exception_workflows assigned_from_id โ†’ auth_user id
exception_workflows assigned_to_id โ†’ auth_user id
exception_workflows exception_id โ†’ invoice_exceptions id
exception_workflows performed_by_id โ†’ auth_user id
expense_category_account_mappings account_id โ†’ chart_of_accounts id
expense_category_account_mappings category_id โ†’ expense_categories id
expense_classification_rules created_by_id โ†’ auth_user id
expense_classification_rules suggested_account_id โ†’ chart_of_accounts id
generated_lease property_id โ†’ properties id
generated_lease renewal_of_id โ†’ generated_lease id
generated_lease unit_id โ†’ units_unit id
insurance_alerts assigned_to_id โ†’ auth_user id
insurance_alerts policy_id โ†’ tenant_insurance_policies id
insurance_alerts property_ref_id โ†’ properties id
insurance_alerts resolved_by_id โ†’ auth_user id
insurance_alerts tenant_id โ†’ tenants id
insurance_alerts unit_id โ†’ units_unit id
insurance_policy_lapses new_policy_id โ†’ tenant_insurance_policies id
insurance_policy_lapses previous_policy_id โ†’ tenant_insurance_policies id
insurance_policy_lapses property_ref_id โ†’ properties id
insurance_policy_lapses tenant_id โ†’ tenants id
insurance_policy_lapses unit_id โ†’ units_unit id
invoice_attachments invoice_id โ†’ invoices id
invoice_classifications classified_by_id โ†’ auth_user id
invoice_classifications invoice_id โ†’ invoices id
invoice_classifications primary_account_id โ†’ chart_of_accounts id
invoice_classifications reviewed_by_id โ†’ auth_user id
invoice_exceptions assigned_to_id โ†’ auth_user id
invoice_exceptions duplicate_invoice_id โ†’ invoices id
invoice_exceptions exception_type_id โ†’ exception_types id
invoice_exceptions invoice_id โ†’ invoices id
invoice_exceptions reviewed_by_id โ†’ auth_user id
invoice_expense_categories created_by_id โ†’ auth_user id
invoice_expense_categories parent_category_id โ†’ invoice_expense_categories id
invoice_expense_category_rules category_id โ†’ invoice_expense_categories id
invoice_expense_category_rules created_by_id โ†’ auth_user id
invoice_field_mappings invoice_id โ†’ invoices id
invoice_line_items account_id โ†’ chart_of_accounts id
invoice_line_items approved_by_id โ†’ auth_user id
invoice_line_items invoice_id โ†’ invoices id
invoice_line_items property_ref_id โ†’ properties id
invoice_line_items unit_id โ†’ units_unit id
invoices created_by_id โ†’ auth_user id
invoices expense_category_id โ†’ invoice_expense_categories id
invoices original_invoice_id โ†’ invoices id
invoices parent_split_job_id โ†’ pdf_split_jobs id
invoices property_assigned_by_id โ†’ auth_user id
invoices property_id โ†’ properties id
invoices unit_id โ†’ units_unit id
invoices vendor_assigned_by_id โ†’ auth_user id
invoices vendor_id โ†’ vendors_vendor id
invoices vendor_verified_by_id โ†’ auth_user id
invoices_emailattachment invoice_attachment_id โ†’ invoice_attachments id
invoices_emailattachment raw_email_id โ†’ invoices_rawemail id
invoices_invoiceaiextraction invoice_id โ†’ invoices id
invoices_rawemail invoice_id โ†’ invoices id
iot_sensor_readings sensor_id โ†’ iot_sensors id
iot_sensors equipment_id โ†’ predictive_maintenance_equipment id
iot_sensors property_id โ†’ properties id
iot_sensors unit_id โ†’ units_unit id
key_issuance checklist_id โ†’ onboarding_checklist id
key_issuance unit_id โ†’ units_unit id
law_monitor_lawchangechecklist alert_id โ†’ law_monitor_lawchangealert id
lease_abstraction property_id โ†’ properties id
lease_abstraction source_lease_id โ†’ generated_lease id
lease_abstraction unit_id โ†’ units_unit id
lease_discrepancies lease_id โ†’ tenants id
lease_discrepancies resolved_by_id โ†’ auth_user id
lease_discrepancies scheduled_charge_id โ†’ scheduled_charges id
lease_discrepancies tenant_id โ†’ tenants id
lease_inspections lease_id โ†’ tenants id
lease_inspections tenant_id โ†’ tenants id
lease_signature_request lease_id โ†’ generated_lease id
lease_status_log lease_id โ†’ tenant_lease id
lease_timeline changed_by_id โ†’ auth_user id
lease_timeline lease_id โ†’ tenants id
lease_timeline tenant_id โ†’ tenants id
lease_validation_items checked_by_id โ†’ auth_user id
lease_validation_items validation_id โ†’ lease_validations id
lease_validations lease_id โ†’ tenants id
lease_validations tenant_id โ†’ tenants id
legal_overrides_overrideauditlog override_id โ†’ legal_overrides_propertylegaloverride id
legal_overrides_propertylegaloverride property_id โ†’ properties id
magic_link_tokens portal_user_id โ†’ portal_users id
maintenance_staff_refresh_tokens staff_id โ†’ maintenance_staff id
monthly_posting_audits completed_by_id โ†’ auth_user id
monthly_posting_audits created_by_id โ†’ auth_user id
monthly_posting_audits property_ref_id โ†’ properties id
move_in_inspection property_id โ†’ properties id
move_in_inspection unit_id โ†’ units_unit id
move_in_photo inspection_id โ†’ move_in_inspection id
move_in_photo room_id โ†’ move_in_room id
move_in_room inspection_id โ†’ move_in_inspection id
moveout_photos_inspectionphoto inspection_id โ†’ moveout_photos_moveoutinspection id
moveout_photos_moveoutinspection property_id โ†’ properties id
moveout_photos_moveoutinspection tenant_id โ†’ tenants id
mtm_charge_comparisons mtm_transition_id โ†’ mtm_transitions id
mtm_charge_comparisons tenant_id โ†’ tenants id
mtm_transitions lease_id โ†’ tenants id
mtm_transitions tenant_id โ†’ tenants id
notification_logs exception_id โ†’ invoice_exceptions id
notification_logs invoice_id โ†’ invoices id
notification_logs recipient_id โ†’ auth_user id
notification_logs template_id โ†’ notification_templates id
notification_preferences user_id โ†’ auth_user id
notification_queue notification_log_id โ†’ notification_logs id
onboarding_checklist property_id โ†’ properties id
onboarding_checklist unit_id โ†’ units_unit id
onboarding_task checklist_id โ†’ onboarding_checklist id
owners_eigentuemerliegenschaft eigentuemer_id โ†’ owners_eigentuemer id
owners_eigentuemerliegenschaft property_id โ†’ properties id
pdf_split_jobs created_by_id โ†’ auth_user id
portal_otp portal_user_id โ†’ portal_users id
portal_password_resets portal_user_id โ†’ portal_users id
portal_refresh_tokens portal_user_id โ†’ portal_users id
portfolio_chat_chatmessage session_id โ†’ portfolio_chat_chatsession id
predictive_maintenance_equipment building_id โ†’ properties_building id
predictive_maintenance_equipment property_id โ†’ properties id
predictive_maintenance_prediction equipment_id โ†’ predictive_maintenance_equipment id
preventive_maintenance_schedules equipment_id โ†’ predictive_maintenance_equipment id
preventive_maintenance_schedules property_id โ†’ properties id
preventive_wo_suggestion risk_score_id โ†’ unit_risk_score id
preventive_wo_suggestion unit_id โ†’ units_unit id
pricing_market_comp snapshot_id โ†’ pricing_snapshot id
pricing_snapshot property_id โ†’ properties id
pricing_snapshot unit_id โ†’ units_unit id
processing_logs invoice_id โ†’ invoices id
processing_objectives created_by_id โ†’ auth_user id
properties created_by_id โ†’ auth_user id
properties property_manager_id โ†’ auth_user id
properties property_type_id โ†’ properties_type id
properties_activity property_id โ†’ properties id
properties_activity user_id โ†’ auth_user id
properties_amenity assigned_tenant_id โ†’ tenants id
properties_amenity assigned_unit_id โ†’ units_unit id
properties_amenity building_id โ†’ properties_building id
properties_amenity created_by_id โ†’ auth_user id
properties_amenity property_id โ†’ properties id
properties_building created_by_id โ†’ auth_user id
properties_building property_id โ†’ properties id
properties_contact created_by_id โ†’ auth_user id
properties_contact property_id โ†’ properties id
properties_contact role_id โ†’ rbac_role id
properties_contact user_id โ†’ auth_user id
properties_document property_id โ†’ properties id
properties_document uploaded_by_id โ†’ auth_user id
properties_image property_id โ†’ properties id
properties_image uploaded_by_id โ†’ auth_user id
properties_vendor created_by_id โ†’ auth_user id
properties_vendor property_id โ†’ properties id
properties_vendor vendor_id โ†’ vendors_vendor id
rbac_activity_log user_id โ†’ auth_user id
rbac_user_permission granted_by_id โ†’ auth_user id
rbac_user_permission permission_id โ†’ rbac_permission id
rbac_user_permission user_profile_id โ†’ rbac_user_profile id
rbac_user_profile modified_by_id โ†’ auth_user id
rbac_user_profile role_id โ†’ rbac_role id
rbac_user_profile user_id โ†’ auth_user id
rbac_user_settings user_profile_id โ†’ rbac_user_profile id
renewal_action_log recommendation_id โ†’ renewal_recommendation id
reserves_ruecklage property_id โ†’ properties id
reserves_ruecklagetransaktion ruecklage_id โ†’ reserves_ruecklage id
scheduled_charges lease_id โ†’ tenants id
scheduled_charges tenant_id โ†’ tenants id
screening_application property_id โ†’ properties id
screening_application unit_id โ†’ units_unit id
showing_feedback showing_id โ†’ showing id
split_invoices invoice_id โ†’ invoices id
split_invoices split_job_id โ†’ pdf_split_jobs id
staging_photo project_id โ†’ staging_project id
staging_project property_id โ†’ properties id
staging_project unit_id โ†’ units_unit id
syndication_lead listing_id โ†’ syndication_listing id
system_notifications read_by_id โ†’ auth_user id
system_notifications user_id โ†’ auth_user id
tenant_activities created_by_id โ†’ auth_user id
tenant_activities related_document_id โ†’ tenant_documents id
tenant_activities related_ledger_entry_id โ†’ tenant_ledger_entry id
tenant_activities tenant_id โ†’ tenants id
tenant_documents tenant_id โ†’ tenants id
tenant_documents uploaded_by_id โ†’ auth_user id
tenant_emergency_contact tenant_id โ†’ tenants id
tenant_employment tenant_id โ†’ tenants id
tenant_insurance_policies tenant_id โ†’ tenants id
tenant_lease property_id โ†’ properties id
tenant_lease tenant_id โ†’ tenants id
tenant_lease unit_id โ†’ units_unit id
tenant_lease_lifecycle lease_id โ†’ tenant_lease id
tenant_lease_occupant lease_id โ†’ tenant_lease id
tenant_lease_occupant primary_tenant_id โ†’ tenants id
tenant_ledger_entry lease_id โ†’ tenant_lease id
tenant_ledger_entry tenant_id โ†’ tenants id
tenant_pets tenant_id โ†’ tenants id
tenant_portal_autopay payment_method_id โ†’ tenant_portal_payment_methods id
tenant_portal_payments payment_method_id โ†’ tenant_portal_payment_methods id
tenant_recurring_charge lease_id โ†’ tenant_lease id
tenant_restrictions tenant_id โ†’ tenants id
tenant_utilities tenant_id โ†’ tenants id
tenants created_by_id โ†’ auth_user id
tenants property_ref_id โ†’ properties id
tenants unit_id โ†’ units_unit id
tenants_applicant desired_unit_id โ†’ units_unit id
tenants_applicant property_ref_id โ†’ properties id
tenants_applicant tenant_id โ†’ tenants id
turnover_checklist case_id โ†’ turnover_case id
turnover_deduction case_id โ†’ turnover_case id
turnover_log case_id โ†’ turnover_case id
unit_risk_score property_id โ†’ properties id
unit_risk_score unit_id โ†’ units_unit id
units_charge charge_template_id โ†’ units_charge_template id
units_charge created_by_id โ†’ auth_user id
units_charge lease_id โ†’ units_lease id
units_charge unit_id โ†’ units_unit id
units_charge_template property_id โ†’ properties id
units_lease created_by_id โ†’ auth_user id
units_lease primary_tenant_id โ†’ auth_user id
units_lease unit_id โ†’ units_unit id
units_lease_charge charge_template_id โ†’ units_charge_template id
units_lease_charge lease_id โ†’ units_lease id
units_maintenance assigned_vendor_id โ†’ vendors_vendor id
units_maintenance requested_by_id โ†’ auth_user id
units_maintenance unit_id โ†’ units_unit id
units_type property_id โ†’ properties id
units_unit building_id โ†’ properties_building id
units_unit created_by_id โ†’ auth_user id
units_unit property_id โ†’ properties id
units_unit unit_type_id โ†’ units_type id
user_chat_settings user_id โ†’ auth_user id
user_preferences portal_user_id โ†’ portal_users id
variance_records investigated_by_id โ†’ auth_user id
variance_records related_tenant_record_id โ†’ audit_tenant_records id
variance_records tenant_id โ†’ tenants id
variance_records unit_id โ†’ units_unit id
variance_records variance_report_id โ†’ variance_reports id
variance_reports audit_id โ†’ monthly_posting_audits id
vendor_bids job_id โ†’ marketplace_jobs id
vendor_contract vendor_performance_id โ†’ vendor_performance id
vendors_chat_thread chat_thread_id โ†’ chat_threads id
vendors_chat_thread vendor_communication_id โ†’ vendors_communication id
vendors_communication building_id โ†’ properties_building id
vendors_communication created_by_id โ†’ auth_user id
vendors_communication invoice_id โ†’ invoices id
vendors_communication parent_communication_id โ†’ vendors_communication id
vendors_communication property_id โ†’ properties id
vendors_communication unit_id โ†’ units_unit id
vendors_communication vendor_id โ†’ vendors_vendor id
vendors_communication_internal_participants user_id โ†’ auth_user id
vendors_communication_internal_participants vendorcommunication_id โ†’ vendors_communication id
vendors_contract created_by_id โ†’ auth_user id
vendors_contract vendor_id โ†’ vendors_vendor id
vendors_match_confirmation confirmed_by_id โ†’ auth_user id
vendors_match_confirmation confirmed_vendor_id โ†’ vendors_vendor id
vendors_match_confirmation invoice_id โ†’ invoices id
vendors_match_confirmation reviewed_by_id โ†’ auth_user id
vendors_vendor category_id โ†’ vendors_category id
vendors_vendor created_by_id โ†’ auth_user id
vendors_vendor vendor_match_verified_by_id โ†’ auth_user id
vendors_vendor_properties property_id โ†’ properties id
vendors_vendor_properties vendor_id โ†’ vendors_vendor id
work_order_assignments staff_id โ†’ maintenance_staff id
work_order_completions completed_by_id โ†’ maintenance_staff id
work_order_time_logs assignment_id โ†’ work_order_assignments id
work_order_time_logs staff_id โ†’ maintenance_staff id
๐Ÿ”ข Sequences
NameTypeStartIncrement
collection_audit_trail_id_seqbigint11
collection_call_log_id_seqbigint11
collection_document_id_seqbigint11
collection_legal_event_id_seqbigint11
collection_legal_fee_id_seqbigint11
collection_message_template_id_seqbigint11