Show pageOld revisionsBacklinksExport to PDFFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== pears.CardReaderLog ====== <WRAP center round info> Generated schema reference. Regenerate this page from the SQL unload; keep hand-maintained business notes in the narrative namespace. </WRAP> ===== Description ===== History of card swipes / activity / adjustments. Used for reporting. ===== Columns ===== ^ Column ^ Type ^ Null ^ Default ^ Comment ^ | **CardReaderLogID** | char(20) | NOT NULL | | | | MachineID | char(20) | NULL | | | | CardID | char(20) | NULL | | | | personid | char(20) | NULL | | | | LogText | long varchar | NULL | | | | WhenEntered | timestamp | NULL | current timestamp | | | clockintime | timestamp | NULL | | | | LogType | char(1) | NULL | | | | MatchedToShiftID | char(20) | NULL | | | ===== Primary Key ===== * CardReaderLogID ===== Foreign Keys ===== ^ Constraint ^ Columns ^ References ^ Delete/update action ^ | CardReaderSettings | MachineID | [[database:tables:pears_cardreadersettings|pears.CardReaderSettings (MachineID)]] | | | tempshift | MatchedToShiftID | [[database:tables:pears_tempshift|pears.TempShift (TempShiftID)]] | ON DELETE SET NULL | ===== Referenced By ===== * No incoming foreign keys found. ===== Indexes ===== * No indexes found. ===== Triggers ===== * No triggers found. ===== Original SQL ===== <code sql> -- IQX database structure split by table -- Source: IQXDatabaseStructure - with comments.sql -- Table: "pears"."CardReaderLog" -- Table comment: History of card swipes / activity / adjustments. Used for reporting. -- Statement count: 4 CREATE TABLE "pears"."CardReaderLog" ( "CardReaderLogID" char(20) NOT NULL ,"MachineID" char(20) NULL ,"CardID" char(20) NULL ,"personid" char(20) NULL ,"LogText" long varchar NULL ,"WhenEntered" timestamp NULL DEFAULT current timestamp ,"clockintime" timestamp NULL ,"LogType" char(1) NULL ,"MatchedToShiftID" char(20) NULL ,PRIMARY KEY ("CardReaderLogID" ASC) ) go COMMENT ON TABLE "pears"."CardReaderLog" IS 'History of card swipes / activity / adjustments. Used for reporting.' go ALTER TABLE "pears"."CardReaderLog" ADD FOREIGN KEY "CardReaderSettings" ("MachineID" ASC) REFERENCES "pears"."CardReaderSettings" ("MachineID") go ALTER TABLE "pears"."CardReaderLog" ADD FOREIGN KEY "tempshift" ("MatchedToShiftID" ASC) REFERENCES "pears"."TempShift" ("TempShiftID") ON DELETE SET NULL go </code> database/tables/pears_cardreaderlog.txt Last modified: 2026/08/07 19:24by 127.0.0.1