annazwicker / cat-partners

Generating an application for Cat Partners so they can track their feeding schedule.
0 stars 0 forks source link

Create Safeguards #35

Open nay-su opened 6 months ago

nay-su commented 6 months ago

Create safeguards to prevent unintended database disruptions

nay-su commented 6 months ago

32

nay-su commented 6 months ago

List of safeguards that need to be implemented

  1. safeguard to ensure at least one user has admin privileges
  2. some system to manage document deletion (probably a "deleted" attribute)
  3. safeguard to ensure that all cats are assigned to a station (after station deletion)
nay-su commented 6 months ago

Need to change delete methods so they don't fully delete entries, just change their isDeleted field