0% found this document useful (0 votes)
6 views2 pages

TestSpringBatching

The document outlines the structure of a database schema related to receipts, payments, and debt accounts. It includes details on various fields such as receipt_id, customer_id, total_received_amount, payment_method_id, and transaction types. Additionally, it describes the relationships between receipts, payments, and debt transactions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views2 pages

TestSpringBatching

The document outlines the structure of a database schema related to receipts, payments, and debt accounts. It includes details on various fields such as receipt_id, customer_id, total_received_amount, payment_method_id, and transaction types. Additionally, it describes the relationships between receipts, payments, and debt transactions.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

receipts

1
receipt_id varchar(20)

created_date date

customer_id varchar(50) receipt_details

note varchar(255) receipt_detail_id varchar(50)


* debt_accounts
total_received_amount numeric(15,2) receipt_id varchar(20)
1 1
* debt_account_id varchar(50)
user_id varchar(50) debt_account_id varchar(50)
party_id varchar(50)
warehouse_id bigint receipt_amount numeric(15,2)
payment_methods party_type varchar(20)
*
payment_method_id varchar(20)
1
payment_method_id varchar(20) total_amount numeric(15,2)

payment_method_name varchar(50) paid_amount numeric(15,2)

description varchar(150) remaining_amount numeric(15,2)

created_at timestamp(6) debt_status varchar(30)

updated_at timestamp(6) due_date date

interest_rate numeric(5,2)

source_id varchar(50)
payments
source_type varchar(30)
1
payment_id varchar(20)
payment_details
created_at timestamp(6)
note varchar(255)
payment_detail_id varchar(50)
updated_at timestamp(6)
supplier_id varchar(50) *
payment_id varchar(20)
total_paid_amount numeric(15,2) *
debt_account_id varchar(50)
debt_transactions
user_id varchar(50)
payment_amount numeric(15,2)
debt_transaction_id varchar(20)
warehouse_id bigint
amount numeric(15,2)
created_date date
transaction_type varchar(20)
*
payment_method_id varchar(20)
*
debt_account_id varchar(50)
created_at timestamp(6)
source_id varchar(50)
updated_at timestamp(6)
created_at timestamp(6)

updated_at timestamp(6)
receipts
1
receipt_id varchar(20)

created_date date

customer_id varchar(50) receipt_details

note varchar(255) receipt_detail_id varchar(50)


* debt_accounts
total_received_amount numeric(15,2) receipt_id varchar(20)
1 1
* debt_account_id varchar(50)
user_id varchar(50) debt_account_id varchar(50)
party_id varchar(50)
warehouse_id bigint receipt_amount numeric(15,2)
payment_methods party_type varchar(20)
*
payment_method_id varchar(20)
1
payment_method_id varchar(20) total_amount numeric(15,2)

payment_method_name varchar(50) paid_amount numeric(15,2)

description varchar(150) remaining_amount numeric(15,2)

created_at timestamp(6) debt_status varchar(30)

updated_at timestamp(6) due_date date

interest_rate numeric(5,2)

source_id varchar(50)
payments
source_type varchar(30)
1
payment_id varchar(20)
payment_details
created_at timestamp(6)
note varchar(255)
payment_detail_id varchar(50)
updated_at timestamp(6)
supplier_id varchar(50) *
payment_id varchar(20)
total_paid_amount numeric(15,2) *
debt_account_id varchar(50)
debt_transactions
user_id varchar(50)
payment_amount numeric(15,2)
debt_transaction_id varchar(20)
warehouse_id bigint
amount numeric(15,2)
created_date date
transaction_type varchar(20)
*
payment_method_id varchar(20)
*
debt_account_id varchar(50)
created_at timestamp(6)
source_id varchar(50)
updated_at timestamp(6)
created_at timestamp(6)

updated_at timestamp(6)

You might also like