reporter.template

Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: template_folder_fkey, template_owner_fkey.

Columns

Column Type Nullable Default Notes

id PK

integer

No

nextval('reporter.template_id_seq'::regclass)

owner FK

integer

No

actor.usr(id)

create_time

timestamp with time zone

No

now()

name

text

No

description

text

No

''::text

data

text

No

folder FK

integer

No

reporter.template_folder(id)

Primary Key

(id)

Foreign Keys

Column(s) References On Delete On Update Deferrable Constraint

folder

reporter.template_folder(id)

NO ACTION

NO ACTION

DEFERRED

template_folder_fkey

owner

actor.usr(id)

NO ACTION

NO ACTION

DEFERRED

template_owner_fkey

Indexes

Index Method Definition

template_pkey PK

btree

CREATE UNIQUE INDEX template_pkey ON reporter.template USING btree (id)

rtp_template_folder_once_idx UNIQUE

btree

CREATE UNIQUE INDEX rtp_template_folder_once_idx ON reporter.template USING btree (name, folder)

rpt_tmpl_fldr_idx

btree

CREATE INDEX rpt_tmpl_fldr_idx ON reporter.template USING btree (folder)

rpt_tmpl_owner_idx

btree

CREATE INDEX rpt_tmpl_owner_idx ON reporter.template USING btree (owner)

Referenced By

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

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

reporter.report

template

id

report_template_fkey