Schema
Owner
ecological_db
Tablespace
(default)
Descriptions
Table containing the different roles that can be assigned to users.
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
rol_id |
serial |
|
nextval('application.t_role_rol_rol_id_seq'::regclass) |
Identifier (postgres) of the role. |
|||
|
|
rol_label |
varchar(25) |
|
|
Name of the role. |
Foreign Keys
There are no foreign keys for table t_role_rol
Check Constraints
There are no check constraints for table t_role_rol
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
rol_id |
|
|||
btree |
|
rol_label |
|
Uniqueness on the role label. |
Triggers
There are no triggers for table t_role_rol
Rules
There are no rules for table t_role_rol
Policies
There are no policies for table t_role_rol
Referenced
Table | Schema | Foreign Key | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
prol_child_role_id |
rol_id |
Cascade |
No Action |
|
Immediate |
Association of a child role. |
||||
prol_parent_role_id |
rol_id |
Cascade |
No Action |
|
Immediate |
Association of a parent role. |
||||
rperm_rol_id |
rol_id |
Cascade |
No Action |
|
Immediate |
Association of a role with a permission. |
||||
urol_rol_id |
rol_id |
Cascade |
No Action |
|
Immediate |
Associating a role with a user account. |
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE application.t_role_rol (
rol_id SERIAL,
rol_label VARCHAR(25) NOT NULL,
CONSTRAINT c_pk_t_role_rol PRIMARY KEY(rol_id),
CONSTRAINT c_uni_label_rol UNIQUE(rol_label)
) ;
COMMENT ON TABLE application.t_role_rol
IS 'Table containing the different roles that can be assigned to users.';
COMMENT ON COLUMN application.t_role_rol.rol_id
IS 'Identifier (postgres) of the role.';
COMMENT ON COLUMN application.t_role_rol.rol_label
IS 'Name of the role.';
COMMENT ON CONSTRAINT c_uni_label_rol ON application.t_role_rol
IS 'Uniqueness on the role label.';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |
![]() ![]() ![]() |