API 1.0.37+2 SSL, password encryption, TrainingPlanTranslation
This commit is contained in:
@@ -1443,6 +1443,109 @@ ENGINE=InnoDB
|
||||
;
|
||||
|
||||
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. customer_training_plan
|
||||
CREATE TABLE IF NOT EXISTS `customer_training_plan` (
|
||||
`customer_training_plan_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`customer_id` int(11) NOT NULL DEFAULT 0,
|
||||
`training_plan_id` int(11) NOT NULL DEFAULT 0,
|
||||
`date_add` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`customer_training_plan_id`) USING BTREE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.customer_training_plan: ~0 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `customer_training_plan` DISABLE KEYS */;
|
||||
/*!40000 ALTER TABLE `customer_training_plan` ENABLE KEYS */;
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. faq
|
||||
CREATE TABLE IF NOT EXISTS `faq` (
|
||||
`faq_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` char(50) COLLATE utf8_hungarian_ci NOT NULL,
|
||||
`description` text COLLATE utf8_hungarian_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`faq_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.faq: ~1 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `faq` DISABLE KEYS */;
|
||||
REPLACE INTO `faq` (`faq_id`, `name`, `description`) VALUES
|
||||
(1, 'What is 1RM?', '<p>1RM</p>');
|
||||
/*!40000 ALTER TABLE `faq` ENABLE KEYS */;
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. faq_translation
|
||||
CREATE TABLE IF NOT EXISTS `faq_translation` (
|
||||
`translation_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`faq_id` int(11) NOT NULL DEFAULT 0,
|
||||
`name_translation` char(50) COLLATE utf8_hungarian_ci NOT NULL DEFAULT '0',
|
||||
`description_translation` text COLLATE utf8_hungarian_ci DEFAULT NULL,
|
||||
`language_code` char(2) COLLATE utf8_hungarian_ci DEFAULT 'en',
|
||||
PRIMARY KEY (`translation_id`) USING BTREE,
|
||||
KEY `faq_id` (`faq_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.faq_translation: ~1 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `faq_translation` DISABLE KEYS */;
|
||||
REPLACE INTO `faq_translation` (`translation_id`, `faq_id`, `name_translation`, `description_translation`, `language_code`) VALUES
|
||||
(1, 1, '<p>Mi az 1RM</p>', '<p>1RM</p>', 'hu');
|
||||
/*!40000 ALTER TABLE `faq_translation` ENABLE KEYS */;
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. training_plan
|
||||
CREATE TABLE IF NOT EXISTS `training_plan` (
|
||||
`training_plan_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` char(50) COLLATE utf8_hungarian_ci NOT NULL,
|
||||
`description` text COLLATE utf8_hungarian_ci DEFAULT NULL,
|
||||
`type` char(50) COLLATE utf8_hungarian_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`training_plan_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.training_plan: ~2 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `training_plan` DISABLE KEYS */;
|
||||
REPLACE INTO `training_plan` (`training_plan_id`, `name`, `description`, `type`) VALUES
|
||||
(1, 'Chest', '<p><strong>Chest exercises</strong></p>', NULL),
|
||||
(2, 'Biceps', NULL, NULL);
|
||||
/*!40000 ALTER TABLE `training_plan` ENABLE KEYS */;
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. training_plan_detail
|
||||
CREATE TABLE IF NOT EXISTS `training_plan_detail` (
|
||||
`training_plan_detail_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`training_plan_id` int(11) NOT NULL,
|
||||
`exercise_type_id` int(11) NOT NULL,
|
||||
`sort` int(3) unsigned zerofill DEFAULT NULL,
|
||||
`set` int(3) DEFAULT NULL,
|
||||
`repeats` int(5) DEFAULT NULL COMMENT '-1: max',
|
||||
`weight` double DEFAULT NULL COMMENT '-1: calculated',
|
||||
`resting_time` int(3) DEFAULT NULL,
|
||||
`parallel` tinyint(4) DEFAULT NULL,
|
||||
`day` char(50) COLLATE utf8_hungarian_ci DEFAULT NULL,
|
||||
PRIMARY KEY (`training_plan_detail_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=7 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.training_plan_detail: ~6 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `training_plan_detail` DISABLE KEYS */;
|
||||
REPLACE INTO `training_plan_detail` (`training_plan_detail_id`, `training_plan_id`, `exercise_type_id`, `sort`, `set`, `repeats`, `weight`, `resting_time`, `parallel`, `day`) VALUES
|
||||
(1, 1, 63, 001, 1, -1, -1, 2, 0, 'H'),
|
||||
(2, 1, 63, 003, 1, 15, -1, 2, 0, 'H'),
|
||||
(3, 1, 63, 004, 1, 10, 30, 2, 0, 'H'),
|
||||
(4, 2, 39, 001, 1, 30, -1, 2, 0, 'H'),
|
||||
(5, 1, 63, 002, 1, -1, -1, 2, 0, 'H'),
|
||||
(6, 1, 6, 005, 1, 10, -1, 2, 0, 'H');
|
||||
/*!40000 ALTER TABLE `training_plan_detail` ENABLE KEYS */;
|
||||
|
||||
-- Struktúra mentése tábla aitrainer2. training_plan_translation
|
||||
CREATE TABLE IF NOT EXISTS `training_plan_translation` (
|
||||
`translation_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`training_plan_id` int(11) NOT NULL DEFAULT 0,
|
||||
`name_translation` char(50) COLLATE utf8_hungarian_ci NOT NULL DEFAULT '0',
|
||||
`description_translation` text COLLATE utf8_hungarian_ci DEFAULT NULL,
|
||||
`language_code` char(2) COLLATE utf8_hungarian_ci DEFAULT 'en',
|
||||
PRIMARY KEY (`translation_id`) USING BTREE,
|
||||
KEY `faq_id` (`training_plan_id`) USING BTREE
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
||||
|
||||
-- Tábla adatainak mentése aitrainer2.training_plan_translation: ~0 rows (hozzávetőleg)
|
||||
/*!40000 ALTER TABLE `training_plan_translation` DISABLE KEYS */;
|
||||
REPLACE INTO `training_plan_translation` (`translation_id`, `training_plan_id`, `name_translation`, `description_translation`, `language_code`) VALUES
|
||||
(3, 1, 'Mell', '<pre>\r\n<strong>Mellgyakorlat mára</strong></pre>', 'hu');
|
||||
|
||||
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS, 1) */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
|
||||
@@ -3,6 +3,7 @@ START TRANSACTION;
|
||||
CREATE TABLE `training_plan` (
|
||||
`training_plan_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`name` CHAR(50) NOT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`description` TEXT NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`type` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
PRIMARY KEY (`training_plan_id`) USING BTREE
|
||||
)
|
||||
@@ -10,6 +11,19 @@ COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
CREATE TABLE `training_plan_translation` (
|
||||
`translation_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`training_plan_id` INT(11) NOT NULL DEFAULT '0',
|
||||
`name_translation` CHAR(50) NOT NULL DEFAULT '0' COLLATE 'utf8_hungarian_ci',
|
||||
`description_translation` TEXT NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
||||
`language_code` CHAR(2) NULL DEFAULT 'en' COLLATE 'utf8_hungarian_ci',
|
||||
PRIMARY KEY (`translation_id`) USING BTREE,
|
||||
INDEX `training_plan_id` (`training_plan_id`) USING BTREE
|
||||
)
|
||||
COLLATE='utf8_hungarian_ci'
|
||||
ENGINE=InnoDB
|
||||
;
|
||||
|
||||
CREATE TABLE `training_plan_detail` (
|
||||
`training_plan_detail_id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||
`training_plan_id` INT(11) NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user