Sekisho.Grant (Sekisho v0.1.0-dev)

Copy Markdown View Source

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.

Summary

Types

t()

@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()
}