====== pears.SecondaryAgencyCandidateStatus ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Another status which only applies to secondary agency candidates. Used with state change validation. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **SecondaryAgencyCandidateStatusID** | char(1) | NOT NULL | | | | Name | char(40) | NOT NULL | | | | Sortorder | integer | NULL | | | ===== Primary Key ===== * SecondaryAgencyCandidateStatusID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_pay_employee|pears.Pay_Employee]] | SecondaryAgencyCandidateStatus | SecondaryAgencyCandidateStatus | SecondaryAgencyCandidateStatusID | ===== Indexes ===== * No indexes found. ===== Triggers ===== ^ Name ^ Timing ^ Event ^ | WPK_secondaryagencycandidatestatus_SECAGCANDSTATUS | after | insert,delete,update order 1 | ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."SecondaryAgencyCandidateStatus" -- Table comment: Another status which only applies to secondary agency candidates. Used with state change validation. -- Statement count: 4 CREATE TABLE "pears"."SecondaryAgencyCandidateStatus" ( "SecondaryAgencyCandidateStatusID" char(1) NOT NULL ,"Name" char(40) NOT NULL ,"Sortorder" integer NULL ,PRIMARY KEY ("SecondaryAgencyCandidateStatusID" ASC) ) go COMMENT ON TABLE "pears"."SecondaryAgencyCandidateStatus" IS 'Another status which only applies to secondary agency candidates. Used with state change validation.' go create trigger "WPK_secondaryagencycandidatestatus_SECAGCANDSTATUS" after insert,delete,update order 1 on "pears"."secondaryagencycandidatestatus" for each statement begin call "WPKTrackChange"('P','SECAGCANDSTATUS') end go COMMENT TO PRESERVE FORMAT ON TRIGGER "pears"."SecondaryAgencyCandidateStatus"."WPK_secondaryagencycandidatestatus_SECAGCANDSTATUS" IS {create trigger WPK_secondaryagencycandidatestatus_SECAGCANDSTATUS after insert,delete,update order 1 on secondaryagencycandidatestatus for each statement begin call WPKTrackChange('P','SECAGCANDSTATUS') end } go