Postgres error: null value in column “id” – during insert operation
You aren’t inserting a value for id. Since you don’t explicitly set it, it’s implicitly given a null value, which is, of course, not a valid value for a primary key column. You can avoid this entire situation by defining this column as serial instead of a plain old integer, and leave all the heavy … Read more