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.StaffNote ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **StaffNoteID** | char(20) | NOT NULL | | | | DivisionID | char(20) | NULL | | | | Note | long varchar | NULL | | | | WhenCreated | timestamp | NOT NULL | current timestamp | | | WhoEntered | char(20) | NULL | | | ===== Primary Key ===== * StaffNoteID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | Division | DivisionID | [[database:tables:pears_division|pears.Division (divisionid)]] | ON DELETE CASCADE | ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_staffnoteread|pears.StaffNoteRead]] | StaffNote | StaffNoteID | StaffNoteID | ===== 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"."StaffNote" -- Table comment: -- Statement count: 2 CREATE TABLE "pears"."StaffNote" ( "StaffNoteID" char(20) NOT NULL ,"DivisionID" char(20) NULL ,"Note" long varchar NULL ,"WhenCreated" timestamp NOT NULL DEFAULT current timestamp ,"WhoEntered" char(20) NULL ,PRIMARY KEY ("StaffNoteID" ASC) ) go ALTER TABLE "pears"."StaffNote" ADD FOREIGN KEY "Division" ("DivisionID" ASC) REFERENCES "pears"."Division" ("divisionid") ON DELETE CASCADE go </code> database/tables/pears_staffnote.txt Last modified: 2026/08/07 19:24by 127.0.0.1