This is the table name : IDVFACECAPTURETRANSACTION It's PK : idvtransactionid Rest of…
- User
This is the table name : IDV_FACE_CAPTURE_TRANSACTION It's PK : idv_transaction_id Rest of the cols : ack_reference_no txn_reference_no vendor_txn_reference_no idv_face_capture_payload_fk idv_face_capture_fk document_reference source-country current_state channel_reference is_customer_data_deleted_from_vendor thirdparty_data thirdparty_name transaction_status created_date updated_date
Write a postgresql query for table creation
- Assistant
Certainly! Below is a PostgreSQL query for creating the
IDV_FACE_CAPTURE_TRANSACTIONtable with the specified columns and primary key: - User
Similarly, this is another table : IDV_FACE_CAPTURE It's PK : idv_face_capture_id It's rest of the cols : idv_face_capture_payload_id
ack_reference_no txn_reference_no channel_reference token_number segment_code service_type system_identifier source_country device_info product_identifier
face_capture_result
image_content
face_attack
deeper_result
deeper_result_description
device_risk_level
quality
quality_passed
extra_images
result_code
result_message
result_status
face_capture_verification_status
face_image_content
face_eyes_closed_image
created_date updated_date
- Assistant
- User
Similarly, table name : IDV_FACE_CAPTURE_PAYLOAD It's PK : idv_face_capture_payload_id It's rest of cols : ace_capture_Payload_data
created_date updated_date
- Assistant
Here is the PostgreSQL query for creating the
IDV_FACE_CAPTURE_PAYLOADtable with the specified columns and primary key:sqlCREATE TABLE IDV_FACE_CAPTURE_PAYLOAD ( idv_face_capture_payload_id SERIAL PRIMARY KEY, face_capture_payload_data JSONB, created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );Explanation of the Query:
- idv_face_capture_payload_id: The primary key of the table, defined as a serial (auto-incrementing integer).
- face_capture_payload_data: A JSONB column that can hold structured data related to the face capture payload.
- created_date: A timestamp with the current timestamp as the default value for when the record is created.
- updated_date: A timestamp that automatically updates to the current timestamp whenever the row is modified.
You can modify the data types or constraints as needed, but this structure provides a basic framework based on your specifications.
- User
I ran this, CREATE TABLE idvdev.IDV_FACE_CAPTURE_TRANSACTION ( idv_transaction_id SERIAL PRIMARY KEY, ack_reference_no VARCHAR(255) NOT NULL, txn_reference_no VARCHAR(255) NOT NULL, vendor_txn_reference_no VARCHAR(255), idv_face_capture_payload_fk INT, idv_face_capture_fk INT, document_reference VARCHAR(255), source_country VARCHAR(100), current_state VARCHAR(100), channel_reference VARCHAR(255), is_customer_data_deleted_from_vendor BOOLEAN DEFAULT FALSE, thirdparty_data JSONB, thirdparty_name VARCHAR(255), transaction_status VARCHAR(100) NOT NULL, created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
- Assistant