It seems very common sensical but still are common mistakes made by table modelling. You have a workflow that allows Open, Assigned, InProgress, Done, Cancelled status but the Status column in the DB allows Null.

If the Status column in DB is designed to be NOT NULL, you can catch application code bugs when database rejects the Insert/Update up front instead of finding data later where the Status column is missing.


This free site is ad-supported. Learn more