Bucardo/tables/bucardo.customcode map

From Bucardo

Jump to: navigation, search

Table: bucardo.customcode_map

Associates a custom code with one or more syncs or goats
ColumnTypeNotes
code INTEGER NOT NULL
sync TEXT NULL
goat INTEGER NULL
active BOOLEAN NOT NULL DEFAULT 'true'
priority SMALLINT NOT NULL DEFAULT 0
cdate TIMESTAMPTZ NOT NULL DEFAULT now()
ConstraintDefinition
customcode_map_code_fkFOREIGN KEY (code) REFERENCES bucardo.customcode(id) ON DELETE CASCADE
customcode_map_sync_fkFOREIGN KEY (sync) REFERENCES bucardo.sync(name) ON UPDATE CASCADE ON DELETE SET NULL
customcode_map_goat_fkFOREIGN KEY (goat) REFERENCES bucardo.goat(id) ON DELETE SET NULL
customcode_map_syncgoatCHECK (sync IS NULL OR goat IS NULL)
IndexUnique?Definition
customcode_map_unique_syncYes(code,sync) WHERE sync IS NOT NULL
customcode_map_unique_goatYes(code,goat) WHERE goat IS NOT NULL
Personal tools