Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.IQXNetBulletinDivision ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== 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 | [[database:tables:pears_iqxnetbulletin|pears.IQXNetBulletin (IQXNetBulletinID)]] | ON DELETE CASCADE | | Division | DivisionID | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE CASCADE | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code 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 </code> database/tables/pears_iqxnetbulletindivision.txt Last modified: 2026/08/07 19:24by 127.0.0.1