pears.IQXNetBulletinDivision
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Description
Junction table that restricts a bulletin to specific divisions. If no rows exist for a bulletin it is shown across all divisions. Multiple rows can be inserted to target several divisions simultaneously.
Columns
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| IQXNetBulletinDivisionID | char(20) | NOT NULL | ||
| IQXNetBulletinID | char(20) | NULL | FK → IQXNetBulletin | |
| DivisionID | char(20) | NULL | FK → Division — limits bulletin visibility to this division |
Primary Key
- IQXNetBulletinDivisionID
Foreign Keys
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| IQXNetBulletin | IQXNetBulletinID | pears.IQXNetBulletin (IQXNetBulletinID) | ON DELETE CASCADE |
| Division | DivisionID | pears.Division (divisionid) | ON DELETE CASCADE |
Referenced By
- No incoming foreign keys found.
Indexes
- No indexes found.
Triggers
- No triggers found.
Original SQL
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."IQXNetBulletinDivision" -- Table comment: Junction table that restricts a bulletin to specific divisions. If no rows exist for a bulletin it is shown across all divisions. Multiple rows can be inserted to target several divisions simultaneously. -- Statement count: 6 CREATE TABLE "pears"."IQXNetBulletinDivision" ( "IQXNetBulletinDivisionID" CHAR(20) NOT NULL ,"IQXNetBulletinID" CHAR(20) NULL ,"DivisionID" CHAR(20) NULL ,PRIMARY KEY ("IQXNetBulletinDivisionID" ASC) ) GO COMMENT ON COLUMN "pears"."IQXNetBulletinDivision"."IQXNetBulletinID" IS 'FK → IQXNetBulletin' GO COMMENT ON COLUMN "pears"."IQXNetBulletinDivision"."DivisionID" IS 'FK → Division — limits bulletin visibility to this division' GO COMMENT ON TABLE "pears"."IQXNetBulletinDivision" IS 'Junction table that restricts a bulletin to specific divisions. If no rows exist for a bulletin it is shown across all divisions. Multiple rows can be inserted to target several divisions simultaneously.' GO ALTER TABLE "pears"."IQXNetBulletinDivision" ADD FOREIGN KEY "IQXNetBulletin" ("IQXNetBulletinID" ASC) REFERENCES "pears"."IQXNetBulletin" ("IQXNetBulletinID") ON DELETE CASCADE GO ALTER TABLE "pears"."IQXNetBulletinDivision" ADD FOREIGN KEY "Division" ("DivisionID" ASC) REFERENCES "pears"."Division" ("divisionid") ON DELETE CASCADE GO