====== pears.CISTemplate ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Description ===== Pre 2007 legislation change - Construction Industry Scheme Templates ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | EndDate | date | NULL | | | | StartDate | date | NULL | | | | TemplateName | char(30) | NULL | | | | CISType | char(10) | NOT NULL | | | | AuthUser | char(16) | NULL | | | | **CISTemplateID** | char(20) | NOT NULL | | | | CertificateNumber | char(13) | NOT NULL | | | | ActingFor | char(26) | NULL | | | ===== Primary Key ===== * CISTemplateID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== ^ Table ^ Constraint ^ Columns ^ Referenced columns ^ | [[database:tables:pears_pay_employee|pears.Pay_Employee]] | CISTemplate | CISTemplateID | CISTemplateID | ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."CISTemplate" -- Table comment: Pre 2007 legislation change - Construction Industry Scheme Templates -- Statement count: 2 CREATE TABLE "pears"."CISTemplate" ( "EndDate" date NULL ,"StartDate" date NULL ,"TemplateName" char(30) NULL ,"CISType" char(10) NOT NULL ,"AuthUser" char(16) NULL ,"CISTemplateID" char(20) NOT NULL ,"CertificateNumber" char(13) NOT NULL ,"ActingFor" char(26) NULL ,PRIMARY KEY ("CISTemplateID" ASC) ) go COMMENT ON TABLE "pears"."CISTemplate" IS 'Pre 2007 legislation change - Construction Industry Scheme Templates ' go