API 1.0.19 ExerciseResult
This commit is contained in:
@@ -873,6 +873,26 @@ REPLACE INTO `purchase` (`purchase_id`, `customer_id`, `product_id`, `date_add`,
|
||||
(7, 1, 2, '2020-11-05 12:00:00', 2000, 'HUF');
|
||||
/*!40000 ALTER TABLE `purchase` ENABLE KEYS */;
|
||||
|
||||
CREATE TABLE `exercise_result` (
|
||||
`exercise_result_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` INT(11) NOT NULL DEFAULT '0',
|
||||
`exercise_id` INT(11) NULL DEFAULT '0',
|
||||
`exercise_plan_id` INT(11) NULL DEFAULT '0',
|
||||
`result_type` CHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8_hungarian_ci',
|
||||
`value` DOUBLE NOT NULL,
|
||||
`date_from` DATETIME NULL DEFAULT NULL,
|
||||
`date_to` DATETIME NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`exercise_result_id`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
INSERT INTO `exercise_result` (`exercise_result_id`, `customer_id`, `exercise_id`, `exercise_plan_id`, `result_type`, `value`, `date_from`, `date_to`) VALUES (1, 90, 1, 0, 'calorie', 134, '2020-12-12 10:56:45', NULL);
|
||||
INSERT INTO `exercise_result` (`exercise_result_id`, `customer_id`, `exercise_id`, `exercise_plan_id`, `result_type`, `value`, `date_from`, `date_to`) VALUES (2, 90, 2, 0, 'fatburn', 31, '2020-12-12 10:57:00', NULL);
|
||||
INSERT INTO `exercise_result` (`exercise_result_id`, `customer_id`, `exercise_id`, `exercise_plan_id`, `result_type`, `value`, `date_from`, `date_to`) VALUES (3, 90, 1, 0, 'development', 11.1, '2020-12-12 10:57:28', NULL);
|
||||
INSERT INTO `exercise_result` (`exercise_result_id`, `customer_id`, `exercise_id`, `exercise_plan_id`, `result_type`, `value`, `date_from`, `date_to`) VALUES (4, 90, 1, 0, 'bpm_min', 113, '2020-12-12 10:57:52', NULL);
|
||||
|
||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
CREATE TABLE `exercise_result` (
|
||||
`exercise_result_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` INT(11) NOT NULL DEFAULT '0',
|
||||
`exercise_id` INT(11) NULL DEFAULT '0',
|
||||
`exercise_plan_id` INT(11) NULL DEFAULT '0',
|
||||
`result_type` CHAR(50) NOT NULL DEFAULT '' COLLATE 'utf8_hungarian_ci',
|
||||
`value` DOUBLE NOT NULL,
|
||||
`date_from` DATETIME NULL DEFAULT NULL,
|
||||
`date_to` DATETIME NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`exercise_result_id`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
|
||||
|
||||
UPDATE configuration set config_value = "1.0.19", date_change=CURRENT_DATE WHERE config_key = "db_version";
|
||||
Reference in New Issue
Block a user