Last active
May 24, 2023 12:11
-
-
Save phspires/12925deb26cc333f4ec4ae97f545be7f to your computer and use it in GitHub Desktop.
loyalty.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": "d94fec6b-7258-4a35-8aae-00dc25f009a2", | |
"name": "Loyalty", | |
"sources": [ | |
{ | |
"id": "cab98358-4919-4b14-aa0c-3c4a7f02bafc", | |
"name": "default", | |
"kind": { | |
"kind": "AmlEditor" | |
}, | |
"content": [], | |
"tables": [], | |
"relations": [], | |
"createdAt": 1684338115346, | |
"updatedAt": 1684338115346 | |
}, | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"name": "Loyalty", | |
"kind": { | |
"kind": "AmlEditor" | |
}, | |
"content": [ | |
"Business", | |
" id uuid", | |
" business_details", | |
"", | |
"Spending_Rule", | |
" id uuid", | |
" details", | |
"", | |
"Funding_Allocation", | |
" id uuid", | |
" details", | |
"", | |
"Donor", | |
" id uuid", | |
" donor_details", | |
"", | |
"Donor_Program", | |
" id uuid", | |
" donor_id fk Donor.id", | |
" project_id fk Program.id", | |
" spending_rule_id fk Spending_Rule.id", | |
" funding_allocation_id fk Funding_Allocation.id", | |
"", | |
"Program", | |
" id uuid", | |
" project_details", | |
"", | |
"Bank_Account", | |
" id uuid", | |
" business_id fk Business.id", | |
" bank_id fk Bank.id", | |
" person_id fk Person.id", | |
" type(Bank,Person,Business)", | |
" bank_number integer", | |
" bank_account_details", | |
"", | |
"Miles_Account", | |
" id uuid", | |
" business_id fk Business.id", | |
" bank_id fk Bank.id", | |
" person_id fk Person.id", | |
" donor_program_id fk Donor_Program.id", | |
" type(Person,Business,Bank,Donor-Project)", | |
" balance", | |
" expiration_rule_id fk Expiration_Rule.id", | |
" cashout_rule_id fk Cashout_Rule.id", | |
" status(Active,Inactive,Suspended)", | |
"", | |
"Cashout", | |
" id uuid pk", | |
" receiver_account_id fk Miles_Account.id", | |
" miles_amount", | |
" deduction_miles_amount", | |
" net_miles_amount", | |
" money_amount", | |
" net_money_amount", | |
" exchange_rate_id fk Exchange_Rate.id", | |
" status(Aborted,Failed,Succeeded,Payment,Approval)", | |
" type(Automated,Manual)", | |
" created_at timestamp", | |
" updated_at timestamp", | |
" approver_id timestamp", | |
" rejection_reason varchar", | |
"", | |
"Cashout_Rule", | |
" id uuid", | |
" cashout_rules_details", | |
"", | |
"Exchange_Rate", | |
" id uuid", | |
" country", | |
" exchange_rate", | |
" updated_at", | |
"", | |
"Miles_Transfer", | |
" id uuid", | |
" type(Withdrawal,Rectification,Liquidation,Deposit)", | |
" receiver_account_id fk Miles_Account.id", | |
" sender_account_id fk Miles_Account.id", | |
" amount", | |
" cashout_id fk Cashout.id", | |
" liquidation_id fk Liquidation.id", | |
" subsidy_id fk Subsidy.id", | |
" reward_id fk Reward.id", | |
" incentive_id fk Incentive.id", | |
" purchase_id fk Purchase.id ", | |
" type(Cashout,Liquidation,Subsidy,Reward,Incentive,Purchase) ", | |
" created_at timestamp", | |
"", | |
"Reward", | |
" id uuid", | |
" person_id fk Person.id", | |
" donor_program_id fk Donor_Program.id", | |
" miles_amount", | |
" created_at", | |
"", | |
"Liquidation", | |
" id uuid", | |
" sender_account_id fk Miles_Account.id", | |
" miles_amount ", | |
" expiration_rules_details_id fk Expiration_Rule.id", | |
"", | |
"Expiration_Rule", | |
" id uuid", | |
" expiration_rules_details", | |
"", | |
"Person", | |
" id uuid", | |
" person_details", | |
"", | |
"Bank", | |
" id uuid ", | |
" code varchar", | |
"", | |
"Incentive", | |
" id uuid", | |
" person_id", | |
" donor_program_id fk Donor_Program.id", | |
" miles_amount", | |
" created_at", | |
"", | |
"Subsidy", | |
" id uuid", | |
" business_id fk Business.id", | |
" person_id fk Person.id", | |
" donor_program_id fk Donor_Program.id", | |
" miles_amount", | |
" created_at", | |
"", | |
"Money_Transfers", | |
" id uuid", | |
" currency", | |
" amount", | |
" receiver_bank_account_id fk Bank_Account.id", | |
" sender_bank_account_id fk Bank_Account.id", | |
" updated_at", | |
" created_at", | |
" approver_id", | |
" cashout_id fk Cashout.id", | |
"", | |
"Voucher", | |
" id uuid", | |
" person_id fk Person.id", | |
" currency", | |
" amount", | |
" created_at", | |
" approver_id", | |
" cashout_id fk Cashout.id", | |
"", | |
"Purchase", | |
" id ", | |
" person_id fk Person.id", | |
" business_id fk Business.id", | |
" miles_amount", | |
" product", | |
" quantity", | |
" created_at timestamp" | |
], | |
"tables": [ | |
{ | |
"schema": "", | |
"table": "Bank", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "code", | |
"type": "varchar", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Bank_Account", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "business_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "bank_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "type(Bank,Person,Business)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "bank_number", | |
"type": "integer", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "bank_account_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Business", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "business_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Cashout", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "receiver_account_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "deduction_miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "net_miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "money_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "net_money_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "exchange_rate_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "status(Aborted,Failed,Succeeded,Payment,Approval)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "type(Automated,Manual)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "timestamp", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "updated_at", | |
"type": "timestamp", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "approver_id", | |
"type": "timestamp", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "rejection_reason", | |
"type": "varchar", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"primaryKey": { | |
"columns": [ | |
"id" | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Cashout_Rule", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "cashout_rules_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Donor", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "donor_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Donor_Program", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "donor_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "project_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "spending_rule_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "funding_allocation_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Exchange_Rate", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "country", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "exchange_rate", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "updated_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Expiration_Rule", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "expiration_rules_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Funding_Allocation", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Incentive", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "donor_program_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Liquidation", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "sender_account_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "expiration_rules_details_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Miles_Account", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "business_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "bank_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "donor_program_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "type(Person,Business,Bank,Donor-Project)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "balance", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "expiration_rule_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "cashout_rule_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "status(Active,Inactive,Suspended)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Miles_Transfer", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "type(Withdrawal,Rectification,Liquidation,Deposit)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "receiver_account_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "sender_account_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "cashout_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "liquidation_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "subsidy_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "reward_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "incentive_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "purchase_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "type(Cashout,Liquidation,Subsidy,Reward,Incentive,Purchase)", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "timestamp", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Money_Transfers", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "currency", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "receiver_bank_account_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "sender_bank_account_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "updated_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "approver_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "cashout_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Person", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Program", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "project_details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Purchase", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "business_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "product", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "quantity", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "timestamp", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Reward", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "donor_program_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Spending_Rule", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "details", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Subsidy", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "business_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "donor_program_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "miles_amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"schema": "", | |
"table": "Voucher", | |
"columns": [ | |
{ | |
"name": "id", | |
"type": "uuid", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "person_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "currency", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "amount", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "created_at", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "approver_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "cashout_id", | |
"type": "unknown", | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"relations": [ | |
{ | |
"name": "Donor_Program_funding_allocation_id_fk_az", | |
"src": { | |
"table": ".Donor_Program", | |
"column": "funding_allocation_id" | |
}, | |
"ref": { | |
"table": ".Funding_Allocation", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Donor_Program_spending_rule_id_fk_az", | |
"src": { | |
"table": ".Donor_Program", | |
"column": "spending_rule_id" | |
}, | |
"ref": { | |
"table": ".Spending_Rule", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Donor_Program_project_id_fk_az", | |
"src": { | |
"table": ".Donor_Program", | |
"column": "project_id" | |
}, | |
"ref": { | |
"table": ".Program", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Donor_Program_donor_id_fk_az", | |
"src": { | |
"table": ".Donor_Program", | |
"column": "donor_id" | |
}, | |
"ref": { | |
"table": ".Donor", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Bank_Account_person_id_fk_az", | |
"src": { | |
"table": ".Bank_Account", | |
"column": "person_id" | |
}, | |
"ref": { | |
"table": ".Person", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Bank_Account_bank_id_fk_az", | |
"src": { | |
"table": ".Bank_Account", | |
"column": "bank_id" | |
}, | |
"ref": { | |
"table": ".Bank", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Bank_Account_business_id_fk_az", | |
"src": { | |
"table": ".Bank_Account", | |
"column": "business_id" | |
}, | |
"ref": { | |
"table": ".Business", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Account_cashout_rule_id_fk_az", | |
"src": { | |
"table": ".Miles_Account", | |
"column": "cashout_rule_id" | |
}, | |
"ref": { | |
"table": ".Cashout_Rule", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Account_expiration_rule_id_fk_az", | |
"src": { | |
"table": ".Miles_Account", | |
"column": "expiration_rule_id" | |
}, | |
"ref": { | |
"table": ".Expiration_Rule", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Account_donor_program_id_fk_az", | |
"src": { | |
"table": ".Miles_Account", | |
"column": "donor_program_id" | |
}, | |
"ref": { | |
"table": ".Donor_Program", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Account_person_id_fk_az", | |
"src": { | |
"table": ".Miles_Account", | |
"column": "person_id" | |
}, | |
"ref": { | |
"table": ".Person", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Account_bank_id_fk_az", | |
"src": { | |
"table": ".Miles_Account", | |
"column": "bank_id" | |
}, | |
"ref": { | |
"table": ".Bank", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Account_business_id_fk_az", | |
"src": { | |
"table": ".Miles_Account", | |
"column": "business_id" | |
}, | |
"ref": { | |
"table": ".Business", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Cashout_exchange_rate_id_fk_az", | |
"src": { | |
"table": ".Cashout", | |
"column": "exchange_rate_id" | |
}, | |
"ref": { | |
"table": ".Exchange_Rate", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Cashout_receiver_account_id_fk_az", | |
"src": { | |
"table": ".Cashout", | |
"column": "receiver_account_id" | |
}, | |
"ref": { | |
"table": ".Miles_Account", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_purchase_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "purchase_id" | |
}, | |
"ref": { | |
"table": ".Purchase", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_incentive_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "incentive_id" | |
}, | |
"ref": { | |
"table": ".Incentive", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_reward_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "reward_id" | |
}, | |
"ref": { | |
"table": ".Reward", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_subsidy_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "subsidy_id" | |
}, | |
"ref": { | |
"table": ".Subsidy", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_liquidation_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "liquidation_id" | |
}, | |
"ref": { | |
"table": ".Liquidation", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_cashout_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "cashout_id" | |
}, | |
"ref": { | |
"table": ".Cashout", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_sender_account_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "sender_account_id" | |
}, | |
"ref": { | |
"table": ".Miles_Account", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Miles_Transfer_receiver_account_id_fk_az", | |
"src": { | |
"table": ".Miles_Transfer", | |
"column": "receiver_account_id" | |
}, | |
"ref": { | |
"table": ".Miles_Account", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Reward_donor_program_id_fk_az", | |
"src": { | |
"table": ".Reward", | |
"column": "donor_program_id" | |
}, | |
"ref": { | |
"table": ".Donor_Program", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Reward_person_id_fk_az", | |
"src": { | |
"table": ".Reward", | |
"column": "person_id" | |
}, | |
"ref": { | |
"table": ".Person", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Liquidation_expiration_rules_details_id_fk_az", | |
"src": { | |
"table": ".Liquidation", | |
"column": "expiration_rules_details_id" | |
}, | |
"ref": { | |
"table": ".Expiration_Rule", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Liquidation_sender_account_id_fk_az", | |
"src": { | |
"table": ".Liquidation", | |
"column": "sender_account_id" | |
}, | |
"ref": { | |
"table": ".Miles_Account", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Incentive_donor_program_id_fk_az", | |
"src": { | |
"table": ".Incentive", | |
"column": "donor_program_id" | |
}, | |
"ref": { | |
"table": ".Donor_Program", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Subsidy_donor_program_id_fk_az", | |
"src": { | |
"table": ".Subsidy", | |
"column": "donor_program_id" | |
}, | |
"ref": { | |
"table": ".Donor_Program", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Subsidy_person_id_fk_az", | |
"src": { | |
"table": ".Subsidy", | |
"column": "person_id" | |
}, | |
"ref": { | |
"table": ".Person", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Subsidy_business_id_fk_az", | |
"src": { | |
"table": ".Subsidy", | |
"column": "business_id" | |
}, | |
"ref": { | |
"table": ".Business", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Money_Transfers_cashout_id_fk_az", | |
"src": { | |
"table": ".Money_Transfers", | |
"column": "cashout_id" | |
}, | |
"ref": { | |
"table": ".Cashout", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Money_Transfers_sender_bank_account_id_fk_az", | |
"src": { | |
"table": ".Money_Transfers", | |
"column": "sender_bank_account_id" | |
}, | |
"ref": { | |
"table": ".Bank_Account", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Money_Transfers_receiver_bank_account_id_fk_az", | |
"src": { | |
"table": ".Money_Transfers", | |
"column": "receiver_bank_account_id" | |
}, | |
"ref": { | |
"table": ".Bank_Account", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Voucher_cashout_id_fk_az", | |
"src": { | |
"table": ".Voucher", | |
"column": "cashout_id" | |
}, | |
"ref": { | |
"table": ".Cashout", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Voucher_person_id_fk_az", | |
"src": { | |
"table": ".Voucher", | |
"column": "person_id" | |
}, | |
"ref": { | |
"table": ".Person", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Purchase_business_id_fk_az", | |
"src": { | |
"table": ".Purchase", | |
"column": "business_id" | |
}, | |
"ref": { | |
"table": ".Business", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
}, | |
{ | |
"name": "Purchase_person_id_fk_az", | |
"src": { | |
"table": ".Purchase", | |
"column": "person_id" | |
}, | |
"ref": { | |
"table": ".Person", | |
"column": "id" | |
}, | |
"origins": [ | |
{ | |
"id": "142f1830-ea7a-4de9-817e-f80550a7c942", | |
"lines": [] | |
} | |
] | |
} | |
], | |
"createdAt": 1684338228136, | |
"updatedAt": 1684930241557 | |
} | |
], | |
"usedLayout": "initial layout", | |
"layouts": { | |
"Stuff": { | |
"canvas": { | |
"position": { | |
"left": 0, | |
"top": 0 | |
}, | |
"zoom": 1 | |
}, | |
"tables": [ | |
{ | |
"id": ".Voucher", | |
"position": { | |
"left": 930, | |
"top": 510 | |
}, | |
"size": { | |
"width": 116.875, | |
"height": 69 | |
}, | |
"color": "yellow", | |
"columns": [ | |
"id" | |
] | |
} | |
], | |
"createdAt": 1684840167321, | |
"updatedAt": 1684840177432 | |
}, | |
"initial layout": { | |
"canvas": { | |
"position": { | |
"left": 5.207122247649336, | |
"top": -7.8106833714740045 | |
}, | |
"zoom": 0.5207122247649336 | |
}, | |
"tables": [ | |
{ | |
"id": ".Purchase", | |
"position": { | |
"left": 2200, | |
"top": 1560 | |
}, | |
"size": { | |
"width": 214.6720267289186, | |
"height": 212.99995823792187 | |
}, | |
"color": "amber", | |
"columns": [ | |
"id", | |
"person_id", | |
"business_id", | |
"miles_amount", | |
"product", | |
"quantity", | |
"created_at" | |
] | |
}, | |
{ | |
"id": ".Program", | |
"position": { | |
"left": 30, | |
"top": 1230 | |
}, | |
"size": { | |
"width": 220.5156218591694, | |
"height": 92.99994544578804 | |
}, | |
"color": "green", | |
"columns": [ | |
"id", | |
"project_details" | |
] | |
}, | |
{ | |
"id": ".Donor_Program", | |
"position": { | |
"left": 470, | |
"top": 1100 | |
}, | |
"size": { | |
"width": 269.51560950041073, | |
"height": 165.00004689287294 | |
}, | |
"color": "emerald", | |
"columns": [ | |
"id", | |
"donor_id", | |
"project_id", | |
"spending_rule_id", | |
"funding_allocation_id" | |
] | |
}, | |
{ | |
"id": ".Liquidation", | |
"position": { | |
"left": 2140, | |
"top": 420 | |
}, | |
"size": { | |
"width": 307.23440949143355, | |
"height": 140.99997400559272 | |
}, | |
"color": "sky", | |
"columns": [ | |
"sender_account_id", | |
"expiration_rules_details_id", | |
"id", | |
"miles_amount" | |
] | |
}, | |
{ | |
"id": ".Reward", | |
"position": { | |
"left": 2170, | |
"top": 600 | |
}, | |
"size": { | |
"width": 248.17200392673593, | |
"height": 164.99998828549508 | |
}, | |
"color": "amber", | |
"columns": [ | |
"id", | |
"person_id", | |
"donor_program_id", | |
"miles_amount", | |
"created_at" | |
] | |
}, | |
{ | |
"id": ".Subsidy", | |
"position": { | |
"left": 2180, | |
"top": 1320 | |
}, | |
"size": { | |
"width": 248.17176949722437, | |
"height": 189.0000025653974 | |
}, | |
"color": "green", | |
"columns": [ | |
"id", | |
"business_id", | |
"person_id", | |
"donor_program_id", | |
"miles_amount", | |
"created_at" | |
] | |
}, | |
{ | |
"id": ".Voucher", | |
"position": { | |
"left": 3580, | |
"top": 1240 | |
}, | |
"size": { | |
"width": 199.35932546520812, | |
"height": 213.00007545267763 | |
}, | |
"color": "yellow", | |
"columns": [ | |
"id", | |
"person_id", | |
"currency", | |
"amount", | |
"created_at", | |
"approver_id", | |
"cashout_id" | |
] | |
}, | |
{ | |
"id": ".Incentive", | |
"position": { | |
"left": 2180, | |
"top": 810 | |
}, | |
"size": { | |
"width": 248.17176949722437, | |
"height": 164.99998828549508 | |
}, | |
"color": "indigo", | |
"columns": [ | |
"id", | |
"person_id", | |
"donor_program_id", | |
"miles_amount", | |
"created_at" | |
] | |
}, | |
{ | |
"id": ".Bank", | |
"position": { | |
"left": 400, | |
"top": 660 | |
}, | |
"size": { | |
"width": 114.37499387769697, | |
"height": 93.00000405316592 | |
}, | |
"color": "blue", | |
"columns": [ | |
"id", | |
"code" | |
] | |
}, | |
{ | |
"id": ".Person", | |
"position": { | |
"left": 340, | |
"top": 510 | |
}, | |
"size": { | |
"width": 219.75000437819727, | |
"height": 92.99994544578804 | |
}, | |
"color": "blue", | |
"columns": [ | |
"id", | |
"person_details" | |
] | |
}, | |
{ | |
"id": ".Expiration_Rule", | |
"position": { | |
"left": 1680, | |
"top": 310 | |
}, | |
"size": { | |
"width": 285.2030756419929, | |
"height": 93.00000405316592 | |
}, | |
"color": "amber", | |
"columns": [ | |
"id", | |
"expiration_rules_details" | |
] | |
}, | |
{ | |
"id": ".Miles_Transfer", | |
"position": { | |
"left": 2860, | |
"top": 710 | |
}, | |
"size": { | |
"width": 563.6093364561599, | |
"height": 356.99998530995805 | |
}, | |
"color": "fuchsia", | |
"columns": [ | |
"id", | |
"type(Withdrawal,Rectification,Liquidation,Deposit)", | |
"receiver_account_id", | |
"sender_account_id", | |
"amount", | |
"cashout_id", | |
"liquidation_id", | |
"subsidy_id", | |
"reward_id", | |
"incentive_id", | |
"purchase_id", | |
"type(Cashout,Liquidation,Subsidy,Reward,Incentive,Purchase)", | |
"created_at" | |
] | |
}, | |
{ | |
"id": ".Exchange_Rate", | |
"position": { | |
"left": 3570, | |
"top": 1500 | |
}, | |
"size": { | |
"width": 220.23433574902086, | |
"height": 140.99997400559272 | |
}, | |
"color": "violet", | |
"columns": [ | |
"id", | |
"country", | |
"exchange_rate", | |
"updated_at" | |
] | |
}, | |
{ | |
"id": ".Cashout_Rule", | |
"position": { | |
"left": 1740, | |
"top": 490 | |
}, | |
"size": { | |
"width": 271.90623374793967, | |
"height": 93.00000405316592 | |
}, | |
"color": "blue", | |
"columns": [ | |
"id", | |
"cashout_rules_details" | |
] | |
}, | |
{ | |
"id": ".Miles_Account", | |
"position": { | |
"left": 1070, | |
"top": 650 | |
}, | |
"size": { | |
"width": 423.7968651412287, | |
"height": 285.0000010776289 | |
}, | |
"color": "fuchsia", | |
"columns": [ | |
"id", | |
"business_id", | |
"bank_id", | |
"person_id", | |
"donor_program_id", | |
"type(Person,Business,Bank,Donor-Project)", | |
"balance", | |
"expiration_rule_id", | |
"cashout_rule_id", | |
"status(Active,Inactive,Suspended)" | |
] | |
}, | |
{ | |
"id": ".Cashout", | |
"position": { | |
"left": 2870, | |
"top": 1240 | |
}, | |
"size": { | |
"width": 497.34384972015266, | |
"height": 380.9999995898604 | |
}, | |
"color": "blue", | |
"columns": [ | |
"id", | |
"receiver_account_id", | |
"exchange_rate_id", | |
"miles_amount", | |
"deduction_miles_amount", | |
"net_miles_amount", | |
"money_amount", | |
"net_money_amount", | |
"status(Aborted,Failed,Succeeded,Payment,Approval)", | |
"type(Automated,Manual)", | |
"created_at", | |
"updated_at", | |
"approver_id", | |
"rejection_reason" | |
] | |
}, | |
{ | |
"id": ".Bank_Account", | |
"position": { | |
"left": 1200, | |
"top": 990 | |
}, | |
"size": { | |
"width": 317.0625151181144, | |
"height": 212.99995823792187 | |
}, | |
"color": "blue", | |
"columns": [ | |
"id", | |
"business_id", | |
"bank_id", | |
"person_id", | |
"type(Bank,Person,Business)", | |
"bank_number", | |
"bank_account_details" | |
] | |
}, | |
{ | |
"id": ".Donor", | |
"position": { | |
"left": 40, | |
"top": 1030 | |
}, | |
"size": { | |
"width": 211.6718564477194, | |
"height": 93.00006266054382 | |
}, | |
"color": "emerald", | |
"columns": [ | |
"id", | |
"donor_details" | |
] | |
}, | |
{ | |
"id": ".Business", | |
"position": { | |
"left": 340, | |
"top": 810 | |
}, | |
"size": { | |
"width": 233.5312362504519, | |
"height": 93.00000405316592 | |
}, | |
"color": "indigo", | |
"columns": [ | |
"id", | |
"business_details" | |
] | |
}, | |
{ | |
"id": ".Funding_Allocation", | |
"position": { | |
"left": 460, | |
"top": 1530 | |
}, | |
"size": { | |
"width": 212.76561663745744, | |
"height": 93.00006266054382 | |
}, | |
"color": "red", | |
"columns": [ | |
"id", | |
"details" | |
] | |
}, | |
{ | |
"id": ".Spending_Rule", | |
"position": { | |
"left": 440, | |
"top": 1400 | |
}, | |
"size": { | |
"width": 177.3124606606285, | |
"height": 93.00006266054382 | |
}, | |
"color": "fuchsia", | |
"columns": [ | |
"id", | |
"details" | |
] | |
}, | |
{ | |
"id": ".Money_Transfers", | |
"position": { | |
"left": 2160, | |
"top": 1020 | |
}, | |
"size": { | |
"width": 304.84369733283773, | |
"height": 260.99998679772654 | |
}, | |
"color": "green", | |
"columns": [ | |
"id", | |
"currency", | |
"amount", | |
"receiver_bank_account_id", | |
"sender_bank_account_id", | |
"updated_at", | |
"created_at", | |
"approver_id", | |
"cashout_id" | |
] | |
} | |
], | |
"createdAt": 1684338115346, | |
"updatedAt": 1684930251562 | |
} | |
}, | |
"createdAt": 1684338157487, | |
"updatedAt": 1684930262632, | |
"version": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment