Client and Account have relation 1 to many.
And Transaction depends on Account in current logic .
Transaction(id, amount, sender_id, receiver_id, time). _Senderid and _receiverid are identifiers of entity Account. It doesn't looks like pretty good. Because when service try to delete account it will get error that exist transactions which depends on that account. It should be redesigned.
Besides, Transactions it is like history, log journal, that is why we should not delete them in generally.
Client and Account have relation 1 to many. And Transaction depends on Account in current logic . Transaction(id, amount, sender_id, receiver_id, time). _Senderid and _receiverid are identifiers of entity Account. It doesn't looks like pretty good. Because when service try to delete account it will get error that exist transactions which depends on that account. It should be redesigned. Besides, Transactions it is like history, log journal, that is why we should not delete them in generally.