# `Sekisho.Grant`
[🔗](https://github.com/hattoriai/sekisho/blob/v0.1.0-dev/lib/sekisho/grant.ex#L1)

A role given to someone on a record: a row of `sekisho_grants`.

`actor_type` is the grantee's table (`"users"`, `"teams"`), or `"link"`
for anyone with the link, whose `token` is set only in what `grant/4`
returns: the table keeps its hash.

The ids are of the type of your app's records (bigint or uuid, see
`Sekisho.Migrations`), so the grants join your tables on their indexes.

# `t`

```elixir
@type t() :: %Sekisho.Grant{
  __meta__: term(),
  actor_id: term(),
  actor_type: term(),
  expires_at: term(),
  granted_by_id: term(),
  id: term(),
  inserted_at: term(),
  resource_id: term(),
  resource_type: term(),
  role: term(),
  token: term(),
  token_hash: term()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
