database:tables:pears_staffnoteread



pears.StaffNoteRead

Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.

Column Type Null Default Comment
StaffNoteReadID char(20) NOT NULL
StaffNoteID char(20) NULL
WhenRead timestamp NOT NULL current timestamp
Staffid char(20) NOT NULL
  • StaffNoteReadID
Constraint Columns References Delete/update action
StaffNote StaffNoteID pears.StaffNote (StaffNoteID) ON DELETE CASCADE
Staff Staffid pears.staff (staffid) NOT NULL; ON DELETE CASCADE
  • No incoming foreign keys found.
  • No indexes found.
  • No triggers found.
-- IQX database structure split by table
-- Source: IQXDatabaseStructure - with comments.sql
-- Table: "pears"."StaffNoteRead"
-- Table comment: 
-- Statement count: 3
 
CREATE TABLE "pears"."StaffNoteRead" (
    "StaffNoteReadID"                CHAR(20) NOT NULL
   ,"StaffNoteID"                    CHAR(20) NULL
   ,"WhenRead"                       TIMESTAMP NOT NULL DEFAULT CURRENT TIMESTAMP
   ,"Staffid"                        CHAR(20) NOT NULL
   ,PRIMARY KEY ("StaffNoteReadID" ASC) 
)
GO
 
 
ALTER TABLE "pears"."StaffNoteRead"
    ADD FOREIGN KEY "StaffNote" ("StaffNoteID" ASC)
    REFERENCES "pears"."StaffNote" ("StaffNoteID")
    ON DELETE CASCADE
GO
 
 
ALTER TABLE "pears"."StaffNoteRead"
    ADD NOT NULL FOREIGN KEY "Staff" ("Staffid" ASC)
    REFERENCES "pears"."staff" ("staffid")
    ON DELETE CASCADE
GO
  • database/tables/pears_staffnoteread.txt
  • Last modified: 2026/08/07 19:24
  • by 127.0.0.1