AbdelrahmanSadat / SMS

SMS with Electron, React, Sequelize & sqlite3. Using electron-react-boilerplate
MIT License
0 stars 0 forks source link

DB Operations on Create and Delete Events #39

Open AbdelrahmanSadat opened 4 years ago

AbdelrahmanSadat commented 4 years ago

Some DB operations should be included in the create record and delete record (and others) of a model. in order to avoid having to do them manually whenever that manual is used. (i.e the attendance counter incrementing when an attendance record is added).

Not doing so might eventually lead to data that is not up-to-date with the rest of the database.