====== pears.PayrollCalendar ====== Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **PayrollCalendarID** | integer | NOT NULL | autoincrement | | | TheDate | date | NOT NULL | | | | Period | integer | NULL | | | | Year | integer | NULL | | | | Week | integer | NULL | | | | WeekBeginning | date | NULL | | | | WeekEnding | date | NULL | | | ===== Primary Key ===== * PayrollCalendarID ===== Foreign Keys ===== * No outgoing foreign keys found. ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== ^ Name ^ Type ^ Columns ^ Detail ^ | payrollcalendar_thedateperiod | Index | TheDate, Period | | | payrollcalendar_thedateweekbeginning | Index | TheDate, WeekBeginning | | | payrollcalendar_thedateweekending | Index | TheDate, WeekEnding | | | payrollcalendar_thedateyearweek | Index | TheDate, Year, Week | | ===== Triggers ===== * No triggers found. ===== Original SQL ===== -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."PayrollCalendar" -- Table comment: -- Statement count: 5 CREATE TABLE "pears"."PayrollCalendar" ( "PayrollCalendarID" integer NOT NULL DEFAULT autoincrement ,"TheDate" date NOT NULL ,"Period" integer NULL ,"Year" integer NULL ,"Week" integer NULL ,"WeekBeginning" date NULL ,"WeekEnding" date NULL ,PRIMARY KEY ("PayrollCalendarID" ASC) ) go CREATE INDEX "payrollcalendar_thedateperiod" ON "pears"."PayrollCalendar" ( "TheDate","Period" ) go CREATE INDEX "payrollcalendar_thedateweekbeginning" ON "pears"."PayrollCalendar" ( "TheDate","WeekBeginning" ) go CREATE INDEX "payrollcalendar_thedateweekending" ON "pears"."PayrollCalendar" ( "TheDate","WeekEnding" ) go CREATE INDEX "payrollcalendar_thedateyearweek" ON "pears"."PayrollCalendar" ( "TheDate","Year","Week" ) go