CREATE TABLE `rehab_calibration` (
  `Calibration_ID` int(9) NOT NULL AUTO_INCREMENT,
  `User_ID` bigint(20) NOT NULL,
  `Calibration_Value` varchar(255) NOT NULL,
  `Hand` ENUM ('left','right') default 'right' ,
  `Device_ID` int(9) default 1,
  `Checksum` varchar(32),
  `Last_Edit` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`Calibration_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

CREATE TABLE `rehab_calibration_deleted` (
  `Backup_ID` int(9) NOT NULL AUTO_INCREMENT,
  `Calibration_ID` int(9) NOT NULL,
  `User_ID` bigint(20) NOT NULL,
  `Calibration_Value` varchar(255) NOT NULL,
  `Hand` ENUM ('left','right') default 'right',
  `Device_ID` int(9) default 1,
  `Checksum` varchar(32),
  `DeletedBy` bigint(20),
  `Last_Edit` timestamp NOT NULL ON UPDATE CURRENT_TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  PRIMARY KEY (`Backup_ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

