reporter.template_folder

Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: template_folder_owner_fkey, template_folder_parent_fkey, template_folder_share_with_fkey.

Columns

Column Type Nullable Default Notes

id PK

integer

No

nextval('reporter.template_folder_id_seq'::regclass)

parent FK

integer

Yes

reporter.template_folder(id)

owner FK

integer

No

actor.usr(id)

create_time

timestamp with time zone

No

now()

name

text

No

shared

boolean

No

false

simple_reporter

boolean

No

false

share_with FK

integer

Yes

actor.org_unit(id)

Primary Key

(id)

Foreign Keys

Column(s) References On Delete On Update Deferrable Constraint

owner

actor.usr(id)

NO ACTION

NO ACTION

DEFERRED

template_folder_owner_fkey

parent

reporter.template_folder(id)

NO ACTION

NO ACTION

DEFERRED

template_folder_parent_fkey

share_with

actor.org_unit(id)

NO ACTION

NO ACTION

DEFERRED

template_folder_share_with_fkey

Indexes

Index Method Definition

template_folder_pkey PK

btree

CREATE UNIQUE INDEX template_folder_pkey ON reporter.template_folder USING btree (id)

rpt_template_folder_once_idx UNIQUE

btree

CREATE UNIQUE INDEX rpt_template_folder_once_idx ON reporter.template_folder USING btree (name, owner, simple_reporter) WHERE (parent IS NULL)

rpt_template_folder_once_parent_idx UNIQUE

btree

CREATE UNIQUE INDEX rpt_template_folder_once_parent_idx ON reporter.template_folder USING btree (name, parent)

rpt_tmpl_fldr_owner_idx

btree

CREATE INDEX rpt_tmpl_fldr_owner_idx ON reporter.template_folder USING btree (owner)

Referenced By

The following tables have foreign keys pointing to reporter.template_folder (2 referencing table(s)):

Table Referencing Column(s) Referenced Column(s) Constraint

reporter.template

folder

id

template_folder_fkey

reporter.template_folder

parent

id

template_folder_parent_fkey