====== pears.IQXNetMessageRecipient ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Staff member who receives a particular type of message from IQXWeb - Payroll - Timesheet etc. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **MessageType** | char(20) | NOT NULL | | | | StaffID | char(20) | NULL | | | ===== Primary Key ===== * MessageType ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Staff | StaffID | [[database:tables:pears_staff|pears.staff (staffid)]] | ON DELETE SET NULL | ===== 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"."IQXNetMessageRecipient" -- Table comment: Staff member who receives a particular type of message from IQXWeb - Payroll - Timesheet etc. -- Statement count: 3 CREATE TABLE "pears"."IQXNetMessageRecipient" ( "MessageType" char(20) NOT NULL ,"StaffID" char(20) NULL ,PRIMARY KEY ("MessageType" ASC) ) go COMMENT ON TABLE "pears"."IQXNetMessageRecipient" IS 'Staff member who receives a particular type of message from IQXWeb - Payroll - Timesheet etc.' go ALTER TABLE "pears"."IQXNetMessageRecipient" ADD FOREIGN KEY "Staff" ("StaffID" ASC) REFERENCES "pears"."staff" ("staffid") ON DELETE SET NULL go