pears.IQXNetAction
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Description
Used to determine IQXWeb actions (EG: web refrencing uses this table to know when to send out emails/faxs for timesheet approvals)
Columns
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| IQXNetActionID | char(20) | NOT NULL | ||
| IQXNetUserID | char(20) | NOT NULL | ||
| ActionType | char(50) | NOT NULL | ||
| TargetType | char(20) | NOT NULL | U-User P-Person E-Employee R-Progress L-Placement SHIFT-Shift etc | |
| ActionState | char(1) | NOT NULL | 0-newly added 1-performed X-ignored | |
| WhenRequested | timestamp | NOT NULL | ||
| WhenPerformed | timestamp | NULL | ||
| TargetID | char(20) | NULL | ||
| ActionAddress | char(100) | NULL |
Primary Key
- IQXNetActionID
Foreign Keys
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| IQXNetUser | IQXNetUserID | pears.IQXNetUser (IQXNetUserID) | NOT NULL; ON DELETE CASCADE |
Referenced By
- No incoming foreign keys found.
Indexes
| Name | Type | Columns | Detail |
|---|---|---|---|
| IQXNetActionState | Index | ActionState, WhenRequested |
Triggers
- No triggers found.
Original SQL
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."IQXNetAction" -- Table comment: Used to determine IQXWeb actions (EG: web refrencing uses this table to know when to send out emails/faxs for timesheet approvals) -- Statement count: 6 CREATE TABLE "pears"."IQXNetAction" ( "IQXNetActionID" CHAR(20) NOT NULL ,"IQXNetUserID" CHAR(20) NOT NULL ,"ActionType" CHAR(50) NOT NULL ,"TargetType" CHAR(20) NOT NULL ,"ActionState" CHAR(1) NOT NULL ,"WhenRequested" TIMESTAMP NOT NULL ,"WhenPerformed" TIMESTAMP NULL ,"TargetID" CHAR(20) NULL ,"ActionAddress" CHAR(100) NULL ,PRIMARY KEY ("IQXNetActionID" ASC) ) GO COMMENT ON COLUMN "pears"."IQXNetAction"."TargetType" IS 'U-User P-Person E-Employee R-Progress L-Placement SHIFT-Shift etc' GO COMMENT ON COLUMN "pears"."IQXNetAction"."ActionState" IS '0-newly added 1-performed X-ignored' GO COMMENT ON TABLE "pears"."IQXNetAction" IS 'Used to determine IQXWeb actions (EG: web refrencing uses this table to know when to send out emails/faxs for timesheet approvals)' GO ALTER TABLE "pears"."IQXNetAction" ADD NOT NULL FOREIGN KEY "IQXNetUser" ("IQXNetUserID" ASC) REFERENCES "pears"."IQXNetUser" ("IQXNetUserID") ON DELETE CASCADE GO CREATE INDEX "IQXNetActionState" ON "pears"."IQXNetAction" ( "ActionState","WhenRequested" ) GO