Registration/Onboarding
Member joins coop → add member entity
Member registers in the app → add user entity, linked to member
Member goes walk-in to register fingerprint → add biometric_data entity, teller has the button to register biometrics
Member “deposits” → should be “Member contributes to share capital” → deposits are for bank accounts where user can just withdraw them, while share capital = balance but you don’t withdraw, this is your ownership of the coop → we don’t do deposits
Member contributes share capital → teller encodes transaction → ledger entries automatically added in backend → update account (financial account, not user account) balance
Example Transaction vs Ledger Entry
INSERT INTO transactions (amount, type, created_at, member_id) VALUES (5000, 'Share Capital Contribution', NOW(), 12);
INSERT INTO ledger_entries (trans_id, member_id, debit, credit) VALUES (100, <account.coop_cash_id>, 5000, 0), (100, <account.member_1_share_id>, 0, 5000);
just consult jods what to insert exactly sa transaction and ledger entries kapoy type nya edit