This is not so much an Ash question, but more looking for your advice in naming things / code organization.
I’ve got 2 domains:
- Workspaces
- Meetings
Each of those will have a resource Role. What should I name those resources?
Workspaces.WorkspaceRole+Meetings.MeetingRoleWorkspaces.Role+Meetings.Role
option1: more concise
# lib/defacto/workspaces/role.ex
defmodule Defacto.Workspaces.Role do
...
postgres do
table "workspace_roles"
end
end
# lib/defacto/meetings/role.ex
defmodule Defacto.Meetings.Role do
...
postgres do
table "meeting_roles"
end
end
option2: more explicit with the name
# lib/defacto/workspaces/workspace_role.ex
defmodule Defacto.Workspaces.WorkspaceRole do
...
postgres do
table "workspace_roles"
end
end
# lib/defacto/meetings/meeting_role.ex
defmodule Defacto.Meetings.MeetingRole do
...
postgres do
table "meeting_roles"
end
end
option3: … ?






















