Hi
I am not able to find the right way of generating and seeding multi-tenant (schema based) data for development.
There are 2 problems
- Generating data:
changeset_generator in Ash.Generator seems to be meant for testing data. Placing the generatpr code in “lib” folder makes the code unsafe in production. How can I use generator for dev data?
After the data is generated, how can I pass tenant/actor to insert that in database? Right now, I am bot able to read Users as the authorizer in App.Accounts.User is blocking the access to User.
- Seeding data:
If I use the priv/repo/seeds.exs for seeing data, how can I run it for multiple tenants? Like tenant_migrations are run for each tenant, is there is similar provision for tenant_seeds?
Thanks