How to populate administrative hierarchy
Last updated
After completing all the following steps, you will be ready to seed administrative areas, locations, and users, and use them in event form fields.
Specify the available administrative structures in application configuration Specifying the available structures allows events to utilise administrative areas as configurable fields. Once you have specified the structure, configure translations for them in client.csv.
Define administrative areas in administrative-areas.csv. Administrative areas form the core of your administrative hierarchy.
Define locations in locations.csv. Locations are more precise places where users are assigned and events may occur (e.g. hospitals). Since locations reference administrative areas, they must be seeded after them.
Define user roles in roles.ts. Each user must have a role and location.
Define users. In development environments, test users are seeded from default-employees.csv. In production, users are seeded from prod-employees.csv. Seeding multiple users is not recommended in production environments.
Last updated