I think you should take this article a step further. The most popular use case for seeding is so you know the ID of lookup table values, and can then use enums to account for those value checks in code, like this:
Also, how do you account for when another record needs added to this lookup table, another status. How can the seed script run and only insert the new values? This is built into some ORMs like Entity Framework, but it would be nice to see this in node as a lot of those ORMs do not have that capability.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think you should take this article a step further. The most popular use case for seeding is so you know the ID of lookup table values, and can then use enums to account for those value checks in code, like this:
Also, how do you account for when another record needs added to this lookup table, another status. How can the seed script run and only insert the new values? This is built into some ORMs like Entity Framework, but it would be nice to see this in node as a lot of those ORMs do not have that capability.