====== pears.County ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **CountyID** | char(20) | NOT NULL | | | | Name | char(30) | NOT NULL | | | | AgencyID | char(20) | NULL | | | | SortOrder | smallint | NULL | | | ===== Primary Key ===== * CountyID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | AgencyDetails | AgencyID | [[database:tables:pears_agencydetails|pears.agencydetails (agencyid)]] | 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"."County" -- Table comment: -- Statement count: 2 CREATE TABLE "pears"."County" ( "CountyID" char(20) NOT NULL ,"Name" char(30) NOT NULL ,"AgencyID" char(20) NULL ,"SortOrder" smallint NULL ,PRIMARY KEY ("CountyID" ASC) ) go ALTER TABLE "pears"."County" ADD FOREIGN KEY "AgencyDetails" ("AgencyID" ASC) REFERENCES "pears"."agencydetails" ("agencyid") ON DELETE CASCADE go