Populates Bknd databases with initial, test, and development data using standardized seeding patterns and idempotent logic.
This skill provides specialized guidance for populating Bknd databases through code-first seeding. It covers the implementation of the built-in seed function, server-side data insertion using ctx.em.mutator(), and advanced patterns for handling entity relationships. Developers can use this skill to automate the creation of test fixtures, bootstrap admin users, and manage environment-specific data configurations while ensuring database integrity through idempotency checks and proper foreign key ordering.
주요 기능
01Relationship-aware data population for parent and child entities
021 GitHub stars
03Idempotent seeding patterns to prevent duplicate records
04Implementation of the Bknd options.seed lifecycle function
05Single and bulk data insertion using ctx.em.mutator()
06Environment-based seeding logic for dev and production guards
사용 사례
01Bootstrapping initial admin accounts and default system settings
02Generating large-scale datasets for performance and UI testing
03Creating mock data and test fixtures for local development environments