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.MasterRosterPreferredPerson ====== <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 ===== Preferred candidates (with rank) for each Master Roster. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **MasterRosterID** | char(20) | NOT NULL | | | | **PersonID** | char(20) | NOT NULL | | | | Rank | smallint | NOT NULL | 1 | | | Active | smallint | NOT NULL | 1 | | ===== Primary Key ===== * MasterRosterID, PersonID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | MasterRoster | MasterRosterID | [[database:tables:pears_masterroster|pears.MasterRoster (MasterRosterID)]] | NOT NULL; ON DELETE CASCADE | | person | PersonID | [[database:tables:pears_person|pears.Person (personid)]] | NOT NULL; 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"."MasterRosterPreferredPerson" -- Table comment: Preferred candidates (with rank) for each Master Roster. -- Statement count: 4 CREATE TABLE "pears"."MasterRosterPreferredPerson" ( "MasterRosterID" char(20) NOT NULL ,"PersonID" char(20) NOT NULL ,"Rank" smallint NOT NULL DEFAULT 1 ,"Active" smallint NOT NULL DEFAULT 1 ,PRIMARY KEY ("MasterRosterID" ASC,"PersonID" ASC) ) go COMMENT ON TABLE "pears"."MasterRosterPreferredPerson" IS 'Preferred candidates (with rank) for each Master Roster.' go ALTER TABLE "pears"."MasterRosterPreferredPerson" ADD NOT NULL FOREIGN KEY "MasterRoster" ("MasterRosterID" ASC) REFERENCES "pears"."MasterRoster" ("MasterRosterID") ON DELETE CASCADE go ALTER TABLE "pears"."MasterRosterPreferredPerson" ADD NOT NULL FOREIGN KEY "person" ("PersonID" ASC) REFERENCES "pears"."Person" ("personid") ON DELETE CASCADE go </code> database/tables/pears_masterrosterpreferredperson.txt Last modified: 2026/08/07 19:24by 127.0.0.1