Bucardo/tables/bucardo.herdmap

From Bucardo

Jump to: navigation, search

Table: bucardo.herdmap

Associates a goat with one or more herds
ColumnTypeNotes
herd TEXT NOT NULL
goat INTEGER NOT NULL
priority SMALLINT NOT NULL DEFAULT 0
cdate TIMESTAMPTZ NOT NULL DEFAULT now()
ConstraintDefinition
herdmap_herd_fkFOREIGN KEY (herd) REFERENCES bucardo.herd(name) ON UPDATE CASCADE ON DELETE CASCADE
herdmap_goat_fkFOREIGN KEY (goat) REFERENCES bucardo.goat(id) ON DELETE CASCADE
IndexUnique?Definition
bucardo_herdmap_uniqueYes(herd,goat)
Personal tools