Debit The Receiver, Credit The Giver. This principle is used in the case of personal accounts in case you received amount in bank by Mr X so entry is Bank. A/c. Dr Mr. X. A/c. cr
in case you paid money to Mr X so entry is Mr. X. A/c Dr To Bank. A/c. Cr
Bank is opposite : you received amount in your bank account ,so your account is credit you paid amount to anyone from your bank ,so your account is debit
From the customers point of view, bank deposits are their assets but from the banks point of view the deposits they collected are their liability. Hope you understood.