API 1.0.24 ExerciseAbility, AppPackage, AppCustomerPackage, Tracking
This commit is contained in:
@@ -905,6 +905,38 @@ INSERT INTO `exercise_result` (`exercise_result_id`, `customer_id`, `exercise_id
|
||||
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);
|
||||
|
||||
CREATE TABLE `exercise_ability` (
|
||||
`exercise_ability_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`description` VARCHAR(200) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
PRIMARY KEY (`exercise_ability_id`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
INSERT INTO `exercise_ability` (`exercise_ability_id`, `name`, `description`) VALUES (1, '1RM', 'One Rep Max');
|
||||
INSERT INTO `exercise_ability` (`exercise_ability_id`, `name`, `description`) VALUES (2, 'Endurance', NULL);
|
||||
INSERT INTO `exercise_ability` (`exercise_ability_id`, `name`, `description`) VALUES (3, 'Cardio', NULL);
|
||||
|
||||
CREATE TABLE `tracking` (
|
||||
`tacking_id` INT(20) NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` INT(20) NOT NULL DEFAULT '0',
|
||||
`date_add` DATETIME NOT NULL,
|
||||
`event` CHAR(100) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`event_value` DOUBLE NULL DEFAULT NULL,
|
||||
`area` CHAR(100) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`platform` CHAR(20) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`version` CHAR(20) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
PRIMARY KEY (`tacking_id`) USING BTREE,
|
||||
INDEX `customer_id` (`customer_id`) USING BTREE,
|
||||
INDEX `event` (`event`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
|
||||
/*!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,46 @@
|
||||
START TRANSACTION;
|
||||
|
||||
CREATE TABLE `tracking` (
|
||||
`tacking_id` INT(20) NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` INT(20) NOT NULL DEFAULT '0',
|
||||
`date_add` DATETIME NOT NULL,
|
||||
`event` CHAR(100) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`event_value` DOUBLE NULL DEFAULT NULL,
|
||||
`area` CHAR(100) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`platform` CHAR(20) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`version` CHAR(20) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
PRIMARY KEY (`tacking_id`) USING BTREE,
|
||||
INDEX `customer_id` (`customer_id`) USING BTREE,
|
||||
INDEX `event` (`event`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
|
||||
CREATE TABLE `exercise_ability` (
|
||||
`exercise_ability_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`description` VARCHAR(200) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
PRIMARY KEY (`exercise_ability_id`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
CREATE TABLE `exercise_tree_ability` (
|
||||
`exercise_tree_ability_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`exercise_tree_id` INT(11) NOT NULL DEFAULT '0',
|
||||
`exercise_ability_id` INT(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`exercise_tree_ability_id`) USING BTREE,
|
||||
INDEX `exercise_tree_id` (`exercise_tree_id`) USING BTREE,
|
||||
INDEX `exercise_ability_id` (`exercise_ability_id`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
UPDATE configuration set config_value = "1.0.24", date_change=CURRENT_DATE WHERE config_key = "db_version";
|
||||
|
||||
COMMIT;
|
||||
|
||||
Reference in New Issue
Block a user