Schema
Owner
ecological_db
Tablespace
(default)
Descriptions
Table containing the different permissions that can be assigned to roles.
Fields
PK | FK | Name | Data type | Not null | Unique | Inherited | Default | Description |
---|---|---|---|---|---|---|---|---|
|
perm_id |
serial |
|
nextval('application.t_permission_perm_perm_id_seq'::regclass) |
Permission identifier (postgres). |
|||
|
|
perm_label |
varchar(100) |
|
|
Unique label of the permission. |
||
|
|
perm_description |
varchar(255) |
|
|
|
Description of the rights given by the permission. |
Foreign Keys
There are no foreign keys for table t_permission_perm
Check Constraints
There are no check constraints for table t_permission_perm
Indices
Name | Type | Function | Fields | Primary Key | Unique | Description |
---|---|---|---|---|---|---|
btree |
|
perm_id |
|
|||
btree |
|
perm_label |
|
Uniqueness on the label of the permission. |
Triggers
There are no triggers for table t_permission_perm
Rules
There are no rules for table t_permission_perm
Policies
There are no policies for table t_permission_perm
Referenced
Table | Schema | Foreign Key | Fields | FK Table | FK Fields | Delete Action | Update Action | Deferrable | Check Time | Description |
---|---|---|---|---|---|---|---|---|---|---|
rperm_perm_id |
perm_id |
Cascade |
No Action |
|
Immediate |
Association of a permission to a role. |
Properties
Property | Value |
---|---|
Inherited From |
|
Rows |
0 |
Pages |
0 |
System |
|
Temporary |
|
With OID |
Definition
CREATE TABLE application.t_permission_perm (
perm_id SERIAL,
perm_label VARCHAR(100) NOT NULL,
perm_description VARCHAR(255) NOT NULL,
CONSTRAINT c_pk_t_permission_perm PRIMARY KEY(perm_id),
CONSTRAINT c_uni_label_perm UNIQUE(perm_label)
) ;
COMMENT ON TABLE application.t_permission_perm
IS 'Table containing the different permissions that can be assigned to roles.';
COMMENT ON COLUMN application.t_permission_perm.perm_id
IS 'Permission identifier (postgres).';
COMMENT ON COLUMN application.t_permission_perm.perm_label
IS 'Unique label of the permission.';
COMMENT ON COLUMN application.t_permission_perm.perm_description
IS 'Description of the rights given by the permission.';
COMMENT ON CONSTRAINT c_uni_label_perm ON application.t_permission_perm
IS 'Uniqueness on the label of the permission.';
This file was generated with SQL Manager for PostgreSQL (www.pgsqlmanager.com) |
![]() ![]() ![]() |