I have a database class named Rooms and it is syncâd to my contract events when a new room is created. Everything works fine except one thing: the new column I added to the class is defaulting to undefined despite me specifying a default value of 0.
So I have a room status number field column that I added to this table and I set the default value to 0 and I also made it a required field, however, it is defaulting to âundefinedâ and only when I manually double click on the fields in the dashboard panel do they update to the default value of 0 that I set when I added the column.
This is a problem because I am querying this column from my dapp and because it is set to undefined by default I do not get that result in my query at all.
You can see the images below: The first image is what my dashboard column looks like and the next 2 images show the return data of 2 objects; 1 object with a room status value of 0 and the other with a room status of undefined.
The undefined value object does not even return the column data at all.

