====== pears.AWRWeeklyQualified ======
Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
===== Description =====
REDUNDANT
===== Columns =====
^ Column ^ Type ^ Null ^ Default ^ Comment ^
| **AWRWeeklyQualifiedID** | char(20) | NOT NULL | | |
| Period | integer | NULL | | |
| WhenEntered | timestamp | NULL | current date | |
| WhoEntered | char(20) | NULL | | |
| IsQualNextWeek | char(1) | NULL | | |
| AWRJobMasterID | char(20) | NULL | | |
===== Primary Key =====
* AWRWeeklyQualifiedID
===== Foreign Keys =====
^ Constraint ^ Columns ^ References ^ Delete/update action ^
| AWRJobMaster | AWRJobMasterID | [[database:tables:pears_awrjobmaster|pears.AWRJobMaster (AWRJobMasterID)]] | ON DELETE CASCADE |
===== 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"."AWRWeeklyQualified"
-- Table comment: REDUNDANT
-- Statement count: 3
CREATE TABLE "pears"."AWRWeeklyQualified" (
"AWRWeeklyQualifiedID" char(20) NOT NULL
,"Period" integer NULL
,"WhenEntered" timestamp NULL DEFAULT current date
,"WhoEntered" char(20) NULL
,"IsQualNextWeek" char(1) NULL
,"AWRJobMasterID" char(20) NULL
,PRIMARY KEY ("AWRWeeklyQualifiedID" ASC)
)
go
COMMENT ON TABLE "pears"."AWRWeeklyQualified" IS
'REDUNDANT'
go
ALTER TABLE "pears"."AWRWeeklyQualified"
ADD FOREIGN KEY "AWRJobMaster" ("AWRJobMasterID" ASC)
REFERENCES "pears"."AWRJobMaster" ("AWRJobMasterID")
ON DELETE CASCADE
go