Does ash support multi tenancy with foreign key?

I search whole document but there is no place that mention multi tenancy with foreign key. Something like this in Ecto: https://hexdocs.pm/ecto/multi-tenancy-with-foreign-keys.html
5 Replies
ZachDaniel
ZachDaniel•3y ago
You can use the :attribute multitenancy strategy
ZachDaniel
ZachDaniel•3y ago
The example in the multitency guide shows a belongs_to :organization, ... plus attribute multitenancy on the :organization_id
dungnguyen8134
dungnguyen8134OP•3y ago
Thanks Zach, I searched wrong keyword 😄
ZachDaniel
ZachDaniel•3y ago
my pleasure 🙇

Did you find this page helpful?