Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace.
Company level override of Time & Attendance settings.
| Column | Type | Null | Default | Comment |
|---|---|---|---|---|
| CardReaderSettingsID | char(20) | NOT NULL | ||
| MachineID | char(20) | NULL | ||
| VacancyID | char(20) | NULL | ||
| Companyid | char(20) | NULL | ||
| maxbreaklength | integer | NULL | 120 | |
| MaxLateness | integer | NULL | 3 | |
| MaxEarlyness | integer | NULL | 2 | |
| maxshiftlength | integer | NULL | 840 | |
| defaultshiftlength | integer | NULL | 480 | |
| MinBeforeExtending | integer | NULL | 30 | |
| MinBeforeExtendStart | integer | NULL | 30 | |
| MaxExtraBreakTime | integer | NULL | 5 | |
| MinBreakLength | integer | NULL | 60 |
| Constraint | Columns | References | Delete/update action |
|---|---|---|---|
| CardReaderSettings | MachineID | pears.CardReaderSettings (MachineID) | |
| vacancy | VacancyID | pears.vacancy (vacancyid) | ON DELETE CASCADE |
| company | Companyid | pears.Company (companyid) | ON DELETE CASCADE |
-- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."CardReaderOverrideSettings" -- Table comment: Company level override of Time & Attendance settings. -- Statement count: 5 CREATE TABLE "pears"."CardReaderOverrideSettings" ( "CardReaderSettingsID" CHAR(20) NOT NULL ,"MachineID" CHAR(20) NULL ,"VacancyID" CHAR(20) NULL ,"Companyid" CHAR(20) NULL ,"maxbreaklength" INTEGER NULL DEFAULT 120 ,"MaxLateness" INTEGER NULL DEFAULT 3 ,"MaxEarlyness" INTEGER NULL DEFAULT 2 ,"maxshiftlength" INTEGER NULL DEFAULT 840 ,"defaultshiftlength" INTEGER NULL DEFAULT 480 ,"MinBeforeExtending" INTEGER NULL DEFAULT 30 ,"MinBeforeExtendStart" INTEGER NULL DEFAULT 30 ,"MaxExtraBreakTime" INTEGER NULL DEFAULT 5 ,"MinBreakLength" INTEGER NULL DEFAULT 60 ,PRIMARY KEY ("CardReaderSettingsID" ASC) ) GO COMMENT ON TABLE "pears"."CardReaderOverrideSettings" IS 'Company level override of Time & Attendance settings.' GO ALTER TABLE "pears"."CardReaderOverrideSettings" ADD FOREIGN KEY "CardReaderSettings" ("MachineID" ASC) REFERENCES "pears"."CardReaderSettings" ("MachineID") GO ALTER TABLE "pears"."CardReaderOverrideSettings" ADD FOREIGN KEY "vacancy" ("VacancyID" ASC) REFERENCES "pears"."vacancy" ("vacancyid") ON DELETE CASCADE GO ALTER TABLE "pears"."CardReaderOverrideSettings" ADD FOREIGN KEY "company" ("Companyid" ASC) REFERENCES "pears"."Company" ("companyid") ON DELETE CASCADE GO