ErrorsEntities, stores and migrations · rule
data.duplicate_rule
Unique rule or index repeats another.
Area 5, Entities, stores and migrations; not declinable; the next step is usually the agent's.
The same two fields in another order are the same rule:
entity Account { id: Uuid tenant: Text handle: Text unique: { tenant_handle: [tenant, handle] handle_tenant: [handle, tenant] }}
error The unique rule handle_tenant repeats tenant_handle
--> main.jadpo:8:9
|7 | tenant_handle: [tenant, handle] | ------------- first here8 | handle_tenant: [handle, tenant] | ^^^^^^^^^^^^^ same fields
- reason
- Both cover the same fields, in whatever order, so they are one rule; a write's conflict names one of them (area 6).
- next
- Remove
handle_tenant(agent) - rule
- data.
duplicate_ rule - help
- https://jadpo.
dev/docs/errors/data. duplicate_ rule
Markdown for agents: /docs/errors/data.duplicate_rule.md.Built from Jadpo main at aee2e8f.