About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Last updated: Dec 13, 2024
Check the Postgres, Db2 statements for the tables that are related to data protection rules.
Subject area | Table name | Description |
---|---|---|
Rules | enforcement_rules | The data protection rules that are defined. |
enforcement_rules table
This table contains information about the enforcement rules (data protection rules) that are defined.
This table has the following columns:
- The identifier of the rule.rule_id
- The type of the rule.rule_type
- The name of the rule.name
- The identifier of the user that created the rule.created_by
- The timestamp when the rule was created.created_on
- The identifier of the user that last modified the rule.modified_by
- The timestamp when the rule was last modified.modified_on
- The description of the rule.description
- The type of the action that this rule enforces.action_name
- The JSON representation of the defined rule.rule_json
Postgres
CREATE TABLE statement:
create table enforcement_rules(rule_id varchar(36) not null,
rule_type varchar(128) not null,
name varchar(256) not null,
description text,
action_name varchar(256) not null,
created_on timestamp(6) not null,
created_by varchar(128) not null,
modified_on timestamp(6),
modified_by varchar(128),
rule_json text not null,
tech_start TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
tech_end TIMESTAMP(6) not null default to_timestamp('9999-12-30', 'YYYY-MM-DD'),
ts_id TIMESTAMP(6) not null default CURRENT_TIMESTAMP,
primary key(rule_id));
Db2
CREATE TABLE statement:
create table enforcement_rules(rule_id varchar(36) not null,
rule_type varchar(128) not null,
name varchar(256) not null,
description clob,
action_name varchar(256) not null,
created_on timestamp(12) not null,
created_by varchar(128) not null,
modified_on timestamp(12),
modified_by varchar(128),
rule_json clob not null,
tech_start TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row begin,
tech_end TIMESTAMP(12) not null IMPLICITLY HIDDEN generated always as row
end,
ts_id TIMESTAMP(12) not null generated always as transaction start ID,
primary key(rule_id),
period SYSTEM_TIME (tech_start,
tech_end) )
Learn more
Parent topic: Reporting tables