Appearance
public.role
Description
Entidade que representa um papel dentro de uma instituição
Columns
| Name | Type | Default | Nullable | Children | Parents | Comment |
|---|---|---|---|---|---|---|
| id | uuid | false | public.position public.role_permission public.user_role public.natural_person_position_role public.user_registration_position_role | Coluna de identificação do papel (Role) | ||
| name | varchar(255) | false | Nome do Papel. Ex: Administrador | |||
| description | varchar(255) | true | Descrição do Papel | |||
| status | varchar(255) | true | Indica se o perfil está ativa ou inativa | |||
| institution_id | uuid | true | public.institution | Instituição à qual a role pertence |
Constraints
| Name | Type | Definition |
|---|---|---|
| fk_role_institution | FOREIGN KEY | FOREIGN KEY (institution_id) REFERENCES institution(id) |
| pk_role | PRIMARY KEY | PRIMARY KEY (id) |
| uc_role_name | UNIQUE | UNIQUE (name) |
Indexes
| Name | Definition |
|---|---|
| pk_role | CREATE UNIQUE INDEX pk_role ON public.role USING btree (id) |
| uc_role_name | CREATE UNIQUE INDEX uc_role_name ON public.role USING btree (name) |
Relations
Generated by tbls