Dumped on 2026-04-01
basic units are SI units, units derived from them and the Unity
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| name_short | text | UNIQUE NOT NULL | |
| name_long | text | UNIQUE |
Tables referencing this one via Foreign Key Constraints:
| F-Key | Name | Type | Description |
|---|---|---|---|
| name | text | UNIQUE | |
| pk | serial | PRIMARY KEY |
Tables referencing this one via Foreign Key Constraints:
List of fields for a particular form
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| fk_form | integer | UNIQUE#1 UNIQUE#2 NOT NULL | |
| long_name | text |
UNIQUE#1
NOT NULL
The full name of the form field as presented to the user |
|
| template_placeholder | text |
UNIQUE#2
NOT NULL
The name of the field as exposed to the form template. In other words, the placeholder in form_defs.template where the value entered into this field ist to be substituted. Must be a valid identifier in the form template's script language (viz. Python) |
|
| help | text |
longer help text |
|
| form_field_types.pk | fk_type | integer |
NOT NULL
the field type |
| param | text |
a parameter for the field's behaviour, meaning is type-dependent |
|
| display_order | integer |
used to *suggest* display order, but client may ignore |
Queue table for rendered form instances. Note that the rows in this table will get deleted after processing. This is NOT an archive of form jobs.
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| fk_form_instance | integer |
NOT NULL
points to the unrendered source instance of the form, useful for recalling submitted jobs for changing |
|
| form | bytea |
NOT NULL
the rendered form, IOW binary data such as a PDF file |
|
| form_job_targets.pk | fk_job_target | integer |
NOT NULL
points to the job target |
| submitted_when | timestamp with time zone |
NOT NULL
DEFAULT now()
when was this form job submitted |
|
| fk_submitted_by | integer |
NOT NULL
who of the staff submitted this form job |
|
| submitted_from | text |
NOT NULL
the workplace this form job was submitted from |
|
| status | text |
NOT NULL
DEFAULT 'submitted'::text
status of the form job: - submitted: ready for processing - in progress: being processed - removable: fit for removal (either cancelled, timed out or done) - halted: do not process |
the form job targets (eg. printers, faxes, smtp servers) in whatever granularity is needed locally, can be used for load balancing/round robin servicing busy queues
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| target | text | UNIQUE NOT NULL |
Tables referencing this one via Foreign Key Constraints:
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| fk_form | integer | UNIQUE NOT NULL | |
| fk_papersize | integer | NOT NULL | |
| offset_top | integer |
NOT NULL
in mm - and yes, they do change even within one type of form, but we do not want to change the offset for all the fields in that case |
|
| offset_left | integer | NOT NULL | |
| pages | integer | NOT NULL DEFAULT 1 | |
| printer | text | NOT NULL | |
| tray | text | NOT NULL | |
| manual_feed | boolean | NOT NULL DEFAULT false | |
| papertype | text |
NOT NULL
type of paper such as "watermarked rose", mainly for user interaction on manual_feed==true |
|
| eject_direction | character(1) | NOT NULL | |
| orientation | character(1) | NOT NULL |
allows lookup of whether a given client version can work with a particular database revision
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| client_type | text |
UNIQUE#1
NOT NULL
the type of client this row refers to |
|
| client_version | text |
UNIQUE#1
NOT NULL
the version of the client this row refers to |
|
| db_identity_hash | text |
UNIQUE#1
NOT NULL
the identity_hash of a database revision that the client version can work with |
this table stores items that originate in headless processes running in the background but need to be brought to the attention of someone, say, errors that an integrity checker may find
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| reported_when | timestamp with time zone | NOT NULL DEFAULT now() | |
| reported_by | text |
NOT NULL
DEFAULT "current_user"()
who or what reported this condition, may be a user or software |
|
| reported_to | text |
NOT NULL
DEFAULT 'admin'::text
who is this condition reported to, user or admin, used for filtering |
|
| problem | text |
NOT NULL
a description of the reported condition |
|
| solution | text |
a proposed solution to the problem |
|
| context | text |
specific context for this condition that would make the problem field unnecessary complex and bulky |
|
| category | text |
NOT NULL
a category for the condition, this is used for filtering, too |
|
| cookie | text |
stores arbitrary information related to the condition, mostly used for semantic duplicates detection, eg. do not report on a single problem more than once in subsequent runs of, say, an import script |
| Name | Constraint |
|---|---|
| housekeeping_todo_reported_to_check | CHECK ((reported_to = ANY (ARRAY['user'::text, 'admin'::text]))) |
each row defines one set of measurement reference data
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| fk_ref_src | integer |
UNIQUE#1
NOT NULL
source this reference data set was taken from |
|
| data | text |
UNIQUE#1
NOT NULL
the actual reference data in some format, say, XML or like in a *.conf file |
|
| comment | text |
units as used in real life
| F-Key | Name | Type | Description |
|---|---|---|---|
| pk | serial | PRIMARY KEY | |
| basic_unit.pk | fk_basic_unit | integer |
what is the SI-Standard unit for this, e.g. for the unit mg it is kg |
| name_short | text | NOT NULL | |
| name_long | text | ||
| factor | double precision |
NOT NULL
DEFAULT 1.0
what factor the value with this unit has to be multiplied with to get values in the basic_unit |
|
| shift | double precision |
NOT NULL
DEFAULT 0.0
what has to be added (after multiplying by factor) to a value with this unit to get values in the basic_unit |
will return either the translation into i18n.curr_lang.lang for the current user or the input, created in public schema for easy access
select i18n._($1)
will return either the translation into <text> (2nd argument) for the current user or the input, created in public schema for easy access
select i18n._($1, $2)
cash_dist
date_dist
function used to check referential integrity from clin.lnk_type2item to clin.clin_root_item with a custom trigger
declare dummy integer; msg text; begin -- does fk_item change at all ? if TG_OP = 'UPDATE' then if NEW.fk_item = OLD.fk_item then return NEW; end if; end if; -- check referential integrity select into dummy 1 from clin.clin_root_item where pk_item=NEW.fk_item; if not found then msg := 'referential integrity violation: clin.lnk_type2item.fk_item [' || NEW.fk_item || '] not in <clin_root_item.pk_item>'; raise exception '%', msg; return NULL; end if; return NEW; end;
begin if TG_OP = 'INSERT' then NEW.source_time_zone := (select (extract(timezone from (select now()))::text || 'seconds')::interval); else NEW.source_time_zone := OLD.source_time_zone; end if; return NEW; end;
float4_dist
float8_dist
gbt_bit_compress
gbt_bit_consistent
gbt_bit_penalty
gbt_bit_picksplit
gbt_bit_same
gbt_bit_union
gbt_bool_compress
gbt_bool_consistent
gbt_bool_fetch
gbt_bool_penalty
gbt_bool_picksplit
gbt_bool_same
gbt_bool_union
gbt_bpchar_compress
gbt_bpchar_consistent
gbt_bytea_compress
gbt_bytea_consistent
gbt_bytea_penalty
gbt_bytea_picksplit
gbt_bytea_same
gbt_bytea_union
gbt_cash_compress
gbt_cash_consistent
gbt_cash_distance
gbt_cash_fetch
gbt_cash_penalty
gbt_cash_picksplit
gbt_cash_same
gbt_cash_union
gbt_date_compress
gbt_date_consistent
gbt_date_distance
gbt_date_fetch
gbt_date_penalty
gbt_date_picksplit
gbt_date_same
gbt_date_union
gbt_decompress
gbt_enum_compress
gbt_enum_consistent
gbt_enum_fetch
gbt_enum_penalty
gbt_enum_picksplit
gbt_enum_same
gbt_enum_union
gbt_float4_compress
gbt_float4_consistent
gbt_float4_distance
gbt_float4_fetch
gbt_float4_penalty
gbt_float4_picksplit
gbt_float4_same
gbt_float4_union
gbt_float8_compress
gbt_float8_consistent
gbt_float8_distance
gbt_float8_fetch
gbt_float8_penalty
gbt_float8_picksplit
gbt_float8_same
gbt_float8_union
gbt_inet_compress
gbt_inet_consistent
gbt_inet_penalty
gbt_inet_picksplit
gbt_inet_same
gbt_inet_union
gbt_int2_compress
gbt_int2_consistent
gbt_int2_distance
gbt_int2_fetch
gbt_int2_penalty
gbt_int2_picksplit
gbt_int2_same
gbt_int2_union
gbt_int4_compress
gbt_int4_consistent
gbt_int4_distance
gbt_int4_fetch
gbt_int4_penalty
gbt_int4_picksplit
gbt_int4_same
gbt_int4_union
gbt_int8_compress
gbt_int8_consistent
gbt_int8_distance
gbt_int8_fetch
gbt_int8_penalty
gbt_int8_picksplit
gbt_int8_same
gbt_int8_union
gbt_intv_compress
gbt_intv_consistent
gbt_intv_decompress
gbt_intv_distance
gbt_intv_fetch
gbt_intv_penalty
gbt_intv_picksplit
gbt_intv_same
gbt_intv_union
gbt_macad8_compress
gbt_macad8_consistent
gbt_macad8_fetch
gbt_macad8_penalty
gbt_macad8_picksplit
gbt_macad8_same
gbt_macad8_union
gbt_macad_compress
gbt_macad_consistent
gbt_macad_fetch
gbt_macad_penalty
gbt_macad_picksplit
gbt_macad_same
gbt_macad_union
gbt_numeric_compress
gbt_numeric_consistent
gbt_numeric_penalty
gbt_numeric_picksplit
gbt_numeric_same
gbt_numeric_union
gbt_oid_compress
gbt_oid_consistent
gbt_oid_distance
gbt_oid_fetch
gbt_oid_penalty
gbt_oid_picksplit
gbt_oid_same
gbt_oid_union
gbt_text_compress
gbt_text_consistent
gbt_text_penalty
gbt_text_picksplit
gbt_text_same
gbt_text_union
gbt_time_compress
gbt_time_consistent
gbt_time_distance
gbt_time_fetch
gbt_time_penalty
gbt_time_picksplit
gbt_time_same
gbt_time_union
gbt_timetz_compress
gbt_timetz_consistent
gbt_ts_compress
gbt_ts_consistent
gbt_ts_distance
gbt_ts_fetch
gbt_ts_penalty
gbt_ts_picksplit
gbt_ts_same
gbt_ts_union
gbt_tstz_compress
gbt_tstz_consistent
gbt_tstz_distance
gbt_uuid_compress
gbt_uuid_consistent
gbt_uuid_fetch
gbt_uuid_penalty
gbt_uuid_picksplit
gbt_uuid_same
gbt_uuid_union
gbt_var_decompress
gbt_var_fetch
gbtreekey_in
gbtreekey_out
gbtreekey_in
gbtreekey_out
gbtreekey_in
gbtreekey_out
gbtreekey_in
gbtreekey_out
gbtreekey_in
gbtreekey_out
gbtreekey_in
gbtreekey_out
int2_dist
int4_dist
int8_dist
interval_dist
oid_dist
time_dist
ts_dist
tstz_dist
Generated by PostgreSQL Autodoc