lab-64 / split-the-bill-server

Backend for the Split the Bill App
4 stars 0 forks source link

Delete Group not working on deployment #203

Closed f-odc closed 3 months ago

f-odc commented 4 months ago

The table transactions should also get the OnDelete:CASCADE constraint.

f-odc commented 3 months ago

Idea for Transactions: Do not use entities of User and Groups for the transaction model. Just store the names as Strings. This will decouple the Transaction entity with the other entities. As a result we can delete Users and Groups without loosing the transactions.

f-odc commented 3 months ago

I have decided for another way: We now only soft delete groups. This will not automatically deleted the related transactions and we can keep them even after a group deletion.