|
|
|
@ -12,6 +12,22 @@
|
|
|
|
|
|
|
|
|
|
use aitrainer;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `configuration` (
|
|
|
|
|
`configuration_id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`config_key` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`config_value` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`date_add` DATETIME NULL DEFAULT NULL,
|
|
|
|
|
`date_change` DATETIME NULL DEFAULT NULL,
|
|
|
|
|
PRIMARY KEY (`configuration_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8_hungarian_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
AUTO_INCREMENT=2
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
INSERT INTO `configuration` (`configuration_id`, `config_key`, `config_value`, `date_add`, `date_change`) VALUES (1, 'db_version', '1.0.5', '2020-05-30 07:00:00', '2020-08-01 17:18:54');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer. customer
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `customer` (
|
|
|
|
|
`customer_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
@ -117,47 +133,135 @@ CREATE TABLE IF NOT EXISTS `exercise_evaluation` (
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_evaluation` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer. exercise_type
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_type` (
|
|
|
|
|
`exercise_type_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` char(100) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
|
`description` varchar(1000) COLLATE utf8_hungarian_ci DEFAULT NULL,
|
|
|
|
|
`video` mediumblob DEFAULT NULL,
|
|
|
|
|
`unit` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`unit_quantity` TINYINT(1) NULL DEFAULT NULL,
|
|
|
|
|
`unit_quantity_unit` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
PRIMARY KEY (`exercise_type_id`)
|
|
|
|
|
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8 COLLATE=utf8_hungarian_ci;
|
|
|
|
|
CREATE TABLE `exercise_type` (
|
|
|
|
|
`exercise_type_id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`tree_id` INT(11) NOT NULL DEFAULT 0,
|
|
|
|
|
`name` CHAR(100) NOT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`description` VARCHAR(1000) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`unit` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`unit_quantity` TINYINT(4) NULL DEFAULT NULL,
|
|
|
|
|
`unit_quantity_unit` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`active` TINYINT(1) NULL DEFAULT '1',
|
|
|
|
|
PRIMARY KEY (`exercise_type_id`) USING BTREE
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer.exercise_type: ~11 rows (hozzávetőleg)
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (1, 0, 'Melső fekvőtámasz 1 perc', 'Ezt igazolja a 2016 márciusában beállított guinness rekord is,\r\namelyben KJ Joseph 1 perc alatt 82 szabályos karhajlítás-nyújtást\r\nvégzett.', 'repeat', 60, 'second', NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (2, 0, 'Húzódzkodás', 'Ennek a gyakorlatnak a 24 órás csúcstartója Joonas Mäkipelto 5050\r\ngyakorlattal.', 'repeat', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (3, 0, 'Melső fekvőtámasz 30mp', 'A gyakorlatot 30 másodperc alatt olyan sokszor kell végrehajtani, ahányszor a\r\nfelvételiző képes rá. Azonban törekedni kell a szabályos végrehajtásra, ugyanis csak azokat\r\nszámolják. A nők esetében 20, a férfiak esetében 35 gyakorlatot kell végrehajtani a maximális\r\npont megszerzéséért. A gyakorlat akkor sikeres, ha a női legalább 1, a férfi felvételiző\r\nlegalább 11 gyakorlatot képes végrehajtani.', 'repeat', 30, 'second', NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (4, 0, 'Melső fekvőtámasz 2perc', 'Magyar Honvédség: A gyakorlat végrehajtására 2 perc áll rendelkezésre. Ennek során csak a szabályosan a\r\nfentiekben leírt módon végrehajtott gyakorlat értékelhető. Férfiaknál 70 karhajlítás nyújtást\r\nkell végrehajtani a maximális pontért.', 'repeat', 120, 'second', NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (5, 0, 'Hajlított karú függés', 'A gyakorlat addig tart, amíg a végrehajtó szemmagassága a kiinduló helyzettől\r\nsüllyedve a keresztvas alá nem kerül. Az értékeléshez stopperórát alkalmaznak, és az\r\neredmény másodperc pontossággal kerül megállapításra. Nők esetében 45, férfiak\r\ntekintetében 73 másodperctől jár a maximális pontszám. A gyakorlat sikeres végrehajtásához\r\nlegalább 8, 10 másodpercig kell megtartaniuk a kiinduló helyzetet a női és a férfi\r\nfelvételizőknek.\r\n\r\nA NKE-RTK-án lévő hallgatók egyéni rekordjai Iván Viktor 90s, Kiss Regina 74s', 'second', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (6, 0, 'Fekvenyomás', '2015-ben a fekvenyomó világbajnokságot Smulter Fredrik finn súlyemelő 401 Kg-al nyerte.\r\nA súlyzó tömege nők esetében 25 kg, a férfiak esetében 60 kg a rúddal együtt. Az\r\nértékelésénél a szabályosan végrehajtott gyakorlatokat értékelik csak.\r\nA legtöbb pontért 25 gyakorlatot kell végezni mind a nőknek, mind a férfiaknak. A minimum:\r\negy gyakorlat mindkét nem esetében.', 'repeat', NULL, 'kg', NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (7, 0, '4x10m-es ingafutás', 'A legjobb pontszámért 9,4 s illetve 8,8s alatt kell teljesíteni a nőknek, férfiaknak. A\r\ngyakorlat sikertelen 11,8 s illetve 11,2 s-on túl.', 'second', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (8, 0, 'Helyből távolugrás', 'Byron Jones 2015-ben a 3,73 méteres ugrásával érte el a világcsúcsot.\r\nA nőknek 220 cm-re, a férfiak 250 cm-re kell ugraniuk a maximális pontért. A\r\nminimális távolság 172cm illetve 198 cm.', 'meter', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (9, 0, 'Felülés hanyattfekvésből', 'Az NKE-RTK hallgatói közül Papp Zsófia 66 db-ot, Gál Valentin 80\r\ndb-ot csinált 1 perc leforgása alatt.\r\nElső ütemre megtörténik a felülés, ami akkor szabályos, ha valamelyik könyök érinti a\r\ntérdet. Második ütemre vissza kell térni a kiinduló helyzetbe. A maximális pont eléréséhez 1\r\nperc alatt 45 illetve 55 ismétlést kell végezni a nőknek illetve a férfiaknak. A minimumhoz 7\r\nés 25 ismétlés szükséges.', 'repeat', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (10, 0, 'Felülés hajlított térddel', 'Magyar Honvédség: A kiinduló helyzet hajlított ülés, ennek során a sarkak a talajon, a térd 90 fokban meghajlítva\r\nvan.\r\nA gyakorlat végrehajtására két perc áll rendelkezésre. Ennek során csak a szabályosan,\r\na fentiekben leírt módon végrehajtott gyakorlat értékelhető. Férfiaknál, nőknél egyaránt 90\r\ngyakorlatot kell végrehajtani a maximális pontért. Amennyiben a megadott időkeret alatt nem\r\nsikerül legalább 25 szabályos gyakorlatot végrehajtani, úgy az sikertelennek minősül.', 'repeat', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (11, 0, 'Síkfutás 2000m', 'A maximálisan megszerezhető pontot az a felvételiző gyűjtheti be, aki a távot nők\r\nesetében 10:00 perc alatt, férfiak esetében 7:35 perc alatt teljesíti. A gyakorlat sikeres\r\nteljesítésére nők esetében maximum 16:00 perc, férfiak esetében 13:30 perc áll rendelkezésre.', 'second', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (30, 0, 'Cooper', '12 minutes run, how many meters', 'meter', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (31, 0, '300m', NULL, 'second', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (32, 0, '400m', NULL, 'second', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (33, 0, 'Pushups', '', 'repeat', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (34, 0, 'Timed Pushups', NULL, 'repeat', 1, 'second', NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (35, 0, 'Squats', NULL, 'repeat', 1, 'kg', NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (36, 0, 'Sit-ups', NULL, 'repeat', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (37, 0, 'Chest Press', '', 'repeat', 1, 'kg', 1);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (38, 0, 'Pull Ups', NULL, 'repeat', NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (39, 0, 'Biceps', '', 'repeat', 1, 'kg', 1);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (40, 4, 'Triceps', 'Triceps', 'repeat', 1, 'kg', 1);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (41, 0, 'Shoulders', '', 'repeat', 1, 'kg', 1);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (42, 5, 'BMI', '', 'percent', 0, NULL, 1);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`) VALUES (43, 0, 'BMR', '', 'calorie', NULL, NULL, NULL);
|
|
|
|
|
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (1, 'Melső fekvőtámasz 1 perc', 'Ezt igazolja a 2016 márciusában beállított guinness rekord is,\r\namelyben KJ Joseph 1 perc alatt 82 szabályos karhajlítás-nyújtást\r\nvégzett.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (2, 'Húzódzkodás', 'Ennek a gyakorlatnak a 24 órás csúcstartója Joonas Mäkipelto 5050\r\ngyakorlattal.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (3, 'Melső fekvőtámasz 30mp', 'A gyakorlatot 30 másodperc alatt olyan sokszor kell végrehajtani, ahányszor a\r\nfelvételiző képes rá. Azonban törekedni kell a szabályos végrehajtásra, ugyanis csak azokat\r\nszámolják. A nők esetében 20, a férfiak esetében 35 gyakorlatot kell végrehajtani a maximális\r\npont megszerzéséért. A gyakorlat akkor sikeres, ha a női legalább 1, a férfi felvételiző\r\nlegalább 11 gyakorlatot képes végrehajtani.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (4, 'Melső fekvőtámasz 2perc', 'Magyar Honvédség: A gyakorlat végrehajtására 2 perc áll rendelkezésre. Ennek során csak a szabályosan a\r\nfentiekben leírt módon végrehajtott gyakorlat értékelhető. Férfiaknál 70 karhajlítás nyújtást\r\nkell végrehajtani a maximális pontért.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (5, 'Hajlított karú függés', 'A gyakorlat addig tart, amíg a végrehajtó szemmagassága a kiinduló helyzettől\r\nsüllyedve a keresztvas alá nem kerül. Az értékeléshez stopperórát alkalmaznak, és az\r\neredmény másodperc pontossággal kerül megállapításra. Nők esetében 45, férfiak\r\ntekintetében 73 másodperctől jár a maximális pontszám. A gyakorlat sikeres végrehajtásához\r\nlegalább 8, 10 másodpercig kell megtartaniuk a kiinduló helyzetet a női és a férfi\r\nfelvételizőknek.\r\n\r\nA NKE-RTK-án lévő hallgatók egyéni rekordjai Iván Viktor 90s, Kiss Regina 74s', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (6, 'Fekvenyomás', '2015-ben a fekvenyomó világbajnokságot Smulter Fredrik finn súlyemelő 401 Kg-al nyerte.\r\nA súlyzó tömege nők esetében 25 kg, a férfiak esetében 60 kg a rúddal együtt. Az\r\nértékelésénél a szabályosan végrehajtott gyakorlatokat értékelik csak.\r\nA legtöbb pontért 25 gyakorlatot kell végezni mind a nőknek, mind a férfiaknak. A minimum:\r\negy gyakorlat mindkét nem esetében.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (7, '4x10m-es ingafutás', 'A legjobb pontszámért 9,4 s illetve 8,8s alatt kell teljesíteni a nőknek, férfiaknak. A\r\ngyakorlat sikertelen 11,8 s illetve 11,2 s-on túl.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (8, 'Helyből távolugrás', 'Byron Jones 2015-ben a 3,73 méteres ugrásával érte el a világcsúcsot.\r\nA nőknek 220 cm-re, a férfiak 250 cm-re kell ugraniuk a maximális pontért. A\r\nminimális távolság 172cm illetve 198 cm.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (9, 'Felülés hanyattfekvésből', 'Az NKE-RTK hallgatói közül Papp Zsófia 66 db-ot, Gál Valentin 80\r\ndb-ot csinált 1 perc leforgása alatt.\r\nElső ütemre megtörténik a felülés, ami akkor szabályos, ha valamelyik könyök érinti a\r\ntérdet. Második ütemre vissza kell térni a kiinduló helyzetbe. A maximális pont eléréséhez 1\r\nperc alatt 45 illetve 55 ismétlést kell végezni a nőknek illetve a férfiaknak. A minimumhoz 7\r\nés 25 ismétlés szükséges.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (10, 'Felülés hajlított térddel', 'Magyar Honvédség: A kiinduló helyzet hajlított ülés, ennek során a sarkak a talajon, a térd 90 fokban meghajlítva\r\nvan.\r\nA gyakorlat végrehajtására két perc áll rendelkezésre. Ennek során csak a szabályosan,\r\na fentiekben leírt módon végrehajtott gyakorlat értékelhető. Férfiaknál, nőknél egyaránt 90\r\ngyakorlatot kell végrehajtani a maximális pontért. Amennyiben a megadott időkeret alatt nem\r\nsikerül legalább 25 szabályos gyakorlatot végrehajtani, úgy az sikertelennek minősül.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (11, 'Síkfutás 2000m', 'A maximálisan megszerezhető pontot az a felvételiző gyűjtheti be, aki a távot nők\r\nesetében 10:00 perc alatt, férfiak esetében 7:35 perc alatt teljesíti. A gyakorlat sikeres\r\nteljesítésére nők esetében maximum 16:00 perc, férfiak esetében 13:30 perc áll rendelkezésre.', NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (30, 'Cooper', '12 minutes run, how many meters', NULL, 'meter', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (31, '300m', NULL, NULL, 'second', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (32, '400m', NULL, NULL, 'second', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (33, 'Pushup', NULL, NULL, 'repeat', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (34, 'Timed Pushup', NULL, NULL, 'repeat', 1, 'second');
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (35, 'Squats', NULL, NULL, 'repeat', 1, 'kg');
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (36, 'Sit-Ups', NULL, NULL, 'repeat', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (37, 'Chest Press', NULL, NULL, 'repeat', 1, 'kg');
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (38, 'Pull Ups', NULL, NULL, 'repeat', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (39, 'Biceps', NULL, NULL, 'repeat', 1, 'kg');
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (40, 'Triceps', NULL, NULL, 'repeat', 1, 'kg');
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (41, 'Shoulders', NULL, NULL, 'repeat', 1, 'kg');
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (42, 'BMI', NULL, NULL, 'percent', NULL, NULL);
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `name`, `description`, `video`, `unit`, `unit_quantity`, `unit_quantity_unit`) VALUES (43, 'BMR', NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_type_image` (
|
|
|
|
|
`image_id` INT(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_type_id` INT(13) NULL DEFAULT '0',
|
|
|
|
|
`name` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`url` CHAR(200) NULL DEFAULT NULL COLLATE 'utf8_hungarian_ci',
|
|
|
|
|
`type` ENUM('menu','image','video') NULL DEFAULT 'image' COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
PRIMARY KEY (`image_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8_hungarian_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_type_translation` (
|
|
|
|
|
`translation_id` INT(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`language_code` CHAR(2) NOT NULL DEFAULT 'en' COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`exercise_type_id` INT(13) NOT NULL DEFAULT '0',
|
|
|
|
|
`name` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`description` MEDIUMTEXT NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
PRIMARY KEY (`translation_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8mb4_general_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_tree` (
|
|
|
|
|
`item_id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`parent_id` INT(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`name` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`image_url` CHAR(200) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`active` TINYINT(1) NULL DEFAULT '1',
|
|
|
|
|
PRIMARY KEY (`item_id`) USING BTREE,
|
|
|
|
|
INDEX `parent_id` (`parent_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8mb4_general_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_tree_translation` (
|
|
|
|
|
`translation_id` INT(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`tree_id` INT(13) NOT NULL DEFAULT '0',
|
|
|
|
|
`language_code` CHAR(2) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`name` CHAR(100) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
PRIMARY KEY (`translation_id`) USING BTREE,
|
|
|
|
|
INDEX `tree_id` (`tree_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8mb4_general_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_plan` (
|
|
|
|
|
`exercise_plan_id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` CHAR(50) NULL DEFAULT '0' COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`description` TEXT(65535) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
PRIMARY KEY (`exercise_plan_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8mb4_general_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_plan_detail` (
|
|
|
|
|
`exercise_plan_detail_id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_plan_id` INT(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`exercise_type_id` INT(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`serie` INT(11) NOT NULL DEFAULT '0',
|
|
|
|
|
`repeat` INT(11) NULL DEFAULT NULL,
|
|
|
|
|
`weight_equation` CHAR(50) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
PRIMARY KEY (`exercise_plan_detail_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8mb4_general_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
CREATE TABLE `exercise_plan_translation` (
|
|
|
|
|
`translation_id` INT(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`language_code` CHAR(2) NOT NULL DEFAULT '0' COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`name` CHAR(50) NULL DEFAULT '0' COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`description` TEXT(65535) NULL DEFAULT NULL COLLATE 'utf8mb4_general_ci',
|
|
|
|
|
`exercise_plan_id` INT(11) NULL DEFAULT NULL,
|
|
|
|
|
PRIMARY KEY (`translation_id`) USING BTREE
|
|
|
|
|
)
|
|
|
|
|
COLLATE='utf8mb4_general_ci'
|
|
|
|
|
ENGINE=InnoDB
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
/*!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 */;
|
|
|
|
|
|
|
|
|
|