Prompt Detail:
Based on the provided sample report in XML format, we can design a corresponding data structure for an AML (Anti-Money Laundering) SQL database. Here's an example of how the data structure can be organized:
Table: Report
- Columns: rentity_id, submission_code, report_code, submission_date, currency_code_local
Table: Reporting_Person
- Columns: rentity_id (foreign key), gender, first_name, last_name, birthdate, birth_place, id_number, nationality1, residence, occupation
Table: Reporting_Person_Phones
- Columns: rentity_id (foreign key), tph_contact_type, tph_communication_type, tph_country_prefix, tph_number, tph_extension
Table: Reporting_Person_Addresses
- Columns: rentity_id (foreign key), address_type, address, city, country_code, state
Table: Transaction
- Columns: rentity_id (foreign key), transactionnumber, internal_ref_number, transaction_location, transaction_description, date_transaction, teller, authorized, late_deposit, value_date, transmode_code, amount_local
Table: From_My_Client
- Columns: transactionnumber (foreign key), from_funds_code, from_funds_comment
Table: From_Account
- Columns: transactionnumber (foreign key), institution_name, institution_code, non_bank_institution, branch, account, currency_code, account_name, client_number, personal_account_type
Table: T_Entity
- Columns: transactionnumber (foreign key), name, commercial_name, incorporation_legal_form, incorporation_number, business, email, incorporation_state, incorporation_country_code, incorporation_date, comments
Table: T_Entity_Phones
- Columns: transactionnumber (foreign key), tph_contact_type, tph_communication_type, tph_country_prefix, tph_number, tph_extension
Table: T_Entity_Addresses
- Columns: transactionnumber (foreign key), address_type, address, city, country_code
Table: Director_ID
- Columns: transactionnumber (foreign key), gender, title, first_name, last_name, birthdate, birth_place, nationality1, residence, occupation
Table: Director_ID_Phones
- Columns: transactionnumber (foreign key), tph_contact_type, tph_communication_type, tph_country_prefix, tph_number, tph_extension
Table: Director_ID_Addresses
- Columns: transactionnumber (foreign key), address_type, address, city, country_code
Table: Identification
- Columns: transactionnumber (foreign key), type, number, issue_date, expiry_date, issued_by, issue_country
Table: Signatory
- Columns: transactionnumber (foreign key), is_primary, role
Table: T_Person
- Columns: transactionnumber (foreign key), gender, title, first_name, middle_name, last_name, birthdate, birth_place, passport_number, passport_country, id_number, nationality1, residence, occupation
Table: T_Person_Phones
- Columns: transactionnumber (foreign key), tph_contact_type, tph_communication_type, tph_country_prefix, tph_number, tph_extension
Table: T_Person_Addresses
- Columns: transactionnumber (foreign key), address_type, address, city, country_code
Table: Source_of_Wealth
- Columns: transactionnumber (foreign key), source_of_wealth
Please note that this is just a suggested data structure based on the provided sample report. The actual structure may vary depending on your specific requirements and additional information that may be included in