|
|
|
@ -13,7 +13,6 @@
|
|
|
|
|
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. auth_group
|
|
|
|
|
DROP TABLE IF EXISTS `auth_group`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_group` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` varchar(150) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -26,7 +25,6 @@ CREATE TABLE IF NOT EXISTS `auth_group` (
|
|
|
|
|
/*!40000 ALTER TABLE `auth_group` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. auth_group_permissions
|
|
|
|
|
DROP TABLE IF EXISTS `auth_group_permissions`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`group_id` int(11) NOT NULL,
|
|
|
|
@ -43,7 +41,6 @@ CREATE TABLE IF NOT EXISTS `auth_group_permissions` (
|
|
|
|
|
/*!40000 ALTER TABLE `auth_group_permissions` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. auth_permission
|
|
|
|
|
DROP TABLE IF EXISTS `auth_permission`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_permission` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` varchar(255) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -56,7 +53,7 @@ CREATE TABLE IF NOT EXISTS `auth_permission` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.auth_permission: ~32 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `auth_permission` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
|
|
|
|
|
REPLACE INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALUES
|
|
|
|
|
(1, 'Can add exercise type', 1, 'add_exercisetype'),
|
|
|
|
|
(2, 'Can change exercise type', 1, 'change_exercisetype'),
|
|
|
|
|
(3, 'Can delete exercise type', 1, 'delete_exercisetype'),
|
|
|
|
@ -92,7 +89,6 @@ INSERT INTO `auth_permission` (`id`, `name`, `content_type_id`, `codename`) VALU
|
|
|
|
|
/*!40000 ALTER TABLE `auth_permission` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. auth_user
|
|
|
|
|
DROP TABLE IF EXISTS `auth_user`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_user` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`password` varchar(128) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -111,13 +107,12 @@ CREATE TABLE IF NOT EXISTS `auth_user` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.auth_user: ~2 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `auth_user` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `auth_user` (`id`, `password`, `last_login`, `is_superuser`, `username`, `first_name`, `last_name`, `email`, `is_staff`, `is_active`, `date_joined`) VALUES
|
|
|
|
|
REPLACE INTO `auth_user` (`id`, `password`, `last_login`, `is_superuser`, `username`, `first_name`, `last_name`, `email`, `is_staff`, `is_active`, `date_joined`) VALUES
|
|
|
|
|
(1, 'pbkdf2_sha256$180000$WhaET4L6Ebme$JTn/z9eX1S0zZVJeO0saJClgwakCR9PXIBYXQtVHBjs=', '2020-11-19 19:36:52.009635', 1, 'bossanyit', '', '', 'tibor.bossanyi@aitrainer.app', 1, 1, '2020-07-15 20:42:37.000000'),
|
|
|
|
|
(2, 'pbkdf2_sha256$180000$KWuUPcTheOKy$r3pccArHppBYlHIPxb9bInGPLxFmLKMBUXwuPrcQ/2w=', NULL, 0, 'bossanyiz', '', '', '', 1, 1, '2020-07-15 21:17:11.000000');
|
|
|
|
|
/*!40000 ALTER TABLE `auth_user` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. auth_user_groups
|
|
|
|
|
DROP TABLE IF EXISTS `auth_user_groups`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_user_groups` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`user_id` int(11) NOT NULL,
|
|
|
|
@ -134,7 +129,6 @@ CREATE TABLE IF NOT EXISTS `auth_user_groups` (
|
|
|
|
|
/*!40000 ALTER TABLE `auth_user_groups` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. auth_user_user_permissions
|
|
|
|
|
DROP TABLE IF EXISTS `auth_user_user_permissions`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`user_id` int(11) NOT NULL,
|
|
|
|
@ -148,7 +142,7 @@ CREATE TABLE IF NOT EXISTS `auth_user_user_permissions` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.auth_user_user_permissions: ~12 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `auth_user_user_permissions` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `auth_user_user_permissions` (`id`, `user_id`, `permission_id`) VALUES
|
|
|
|
|
REPLACE INTO `auth_user_user_permissions` (`id`, `user_id`, `permission_id`) VALUES
|
|
|
|
|
(1, 2, 1),
|
|
|
|
|
(2, 2, 2),
|
|
|
|
|
(3, 2, 3),
|
|
|
|
@ -164,7 +158,6 @@ INSERT INTO `auth_user_user_permissions` (`id`, `user_id`, `permission_id`) VALU
|
|
|
|
|
/*!40000 ALTER TABLE `auth_user_user_permissions` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. configuration
|
|
|
|
|
DROP TABLE IF EXISTS `configuration`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `configuration` (
|
|
|
|
|
`configuration_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`config_key` char(50) COLLATE utf8_hungarian_ci DEFAULT NULL,
|
|
|
|
@ -176,12 +169,11 @@ CREATE TABLE IF NOT EXISTS `configuration` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.configuration: ~0 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `configuration` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `configuration` (`configuration_id`, `config_key`, `config_value`, `date_add`, `date_change`) VALUES
|
|
|
|
|
REPLACE INTO `configuration` (`configuration_id`, `config_key`, `config_value`, `date_add`, `date_change`) VALUES
|
|
|
|
|
(1, 'db_version', '1.0.16', '2020-05-30 07:00:00', '2020-11-26 00:00:00');
|
|
|
|
|
/*!40000 ALTER TABLE `configuration` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. customer
|
|
|
|
|
DROP TABLE IF EXISTS `customer`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `customer` (
|
|
|
|
|
`customer_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` char(100) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -209,7 +201,7 @@ CREATE TABLE IF NOT EXISTS `customer` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.customer: ~17 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `customer` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `customer` (`customer_id`, `name`, `firstname`, `email`, `password`, `sex`, `age`, `active`, `date_add`, `date_change`, `data_policy_allowed`, `admin`, `trainer`, `trainer_id`, `birth_year`, `weight`, `goal`, `fitness_level`, `body_type`, `firebase_uid`) VALUES
|
|
|
|
|
REPLACE INTO `customer` (`customer_id`, `name`, `firstname`, `email`, `password`, `sex`, `age`, `active`, `date_add`, `date_change`, `data_policy_allowed`, `admin`, `trainer`, `trainer_id`, `birth_year`, `weight`, `goal`, `fitness_level`, `body_type`, `firebase_uid`) VALUES
|
|
|
|
|
(1, 'Átlag 13 éves fiú', '', '', NULL, 'm', 0, 'N', NULL, NULL, 1, 0, 0, 137, 0, 0, '', 'beginner', NULL, 'firebaseuid_customer_1'),
|
|
|
|
|
(2, 'Átlag 14 éves fiú', '', '', NULL, 'm', 0, 'N', NULL, NULL, 1, 0, 0, 0, 0, 0, '', 'beginner', NULL, NULL),
|
|
|
|
|
(3, 'Átlag 15 éves fiú', '', '', NULL, 'm', 0, 'N', NULL, NULL, 1, 0, 0, 0, 0, 0, '', 'beginner', NULL, NULL),
|
|
|
|
@ -230,7 +222,6 @@ INSERT INTO `customer` (`customer_id`, `name`, `firstname`, `email`, `password`,
|
|
|
|
|
/*!40000 ALTER TABLE `customer` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. customer_exercise_device
|
|
|
|
|
DROP TABLE IF EXISTS `customer_exercise_device`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `customer_exercise_device` (
|
|
|
|
|
`customer_exercise_device_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`customer_id` int(11) NOT NULL DEFAULT 0,
|
|
|
|
@ -242,14 +233,13 @@ CREATE TABLE IF NOT EXISTS `customer_exercise_device` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.customer_exercise_device: ~2 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `customer_exercise_device` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `customer_exercise_device` (`customer_exercise_device_id`, `customer_id`, `exercise_device_id`, `date_add`, `favourite`) VALUES
|
|
|
|
|
REPLACE INTO `customer_exercise_device` (`customer_exercise_device_id`, `customer_id`, `exercise_device_id`, `date_add`, `favourite`) VALUES
|
|
|
|
|
(1, 90, 1, NULL, NULL),
|
|
|
|
|
(2, 90, 2, NULL, NULL),
|
|
|
|
|
(3, 90, 5, NULL, NULL);
|
|
|
|
|
/*!40000 ALTER TABLE `customer_exercise_device` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. customer_information
|
|
|
|
|
DROP TABLE IF EXISTS `customer_information`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `customer_information` (
|
|
|
|
|
`customer_information_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`title` char(50) COLLATE utf8_hungarian_ci DEFAULT '',
|
|
|
|
@ -263,14 +253,13 @@ CREATE TABLE IF NOT EXISTS `customer_information` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.customer_information: ~3 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `customer_information` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `customer_information` (`customer_information_id`, `title`, `description`, `date_add`, `display_begin`, `display_end`) VALUES
|
|
|
|
|
REPLACE INTO `customer_information` (`customer_information_id`, `title`, `description`, `date_add`, `display_begin`, `display_end`) VALUES
|
|
|
|
|
(1, 'Fekvőtámasz világcsúcs', 'Világcsúcs fekvőtámasz: KJ Joseph 1 perc alatt 82 szabályos fekvőtámaszt végzett', '2020-06-01 08:00:00', '2020-06-01 08:00:00', '2023-07-01 08:00:00'),
|
|
|
|
|
(2, 'Húzódszkodás csúcs', '24 órás csúcstartója Joonas Mäkipelto 5050 gyakorlattal', '2020-06-01 08:00:00', '2020-06-01 08:00:00', '2023-07-01 08:00:00'),
|
|
|
|
|
(3, 'Fekvenyomás', '2015-ben a fekvenyomó világbajnokságot Smulter Fredrik finn súlyemelő 401 Kg-al nyerte', '2020-06-01 08:00:00', '2020-05-01 00:00:00', '2020-06-01 08:00:01');
|
|
|
|
|
/*!40000 ALTER TABLE `customer_information` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. customer_property
|
|
|
|
|
DROP TABLE IF EXISTS `customer_property`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `customer_property` (
|
|
|
|
|
`customer_property_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`customer_id` int(10) unsigned NOT NULL DEFAULT 0,
|
|
|
|
@ -282,7 +271,7 @@ CREATE TABLE IF NOT EXISTS `customer_property` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.customer_property: ~7 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `customer_property` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `customer_property` (`customer_property_id`, `customer_id`, `property_id`, `property_value`, `date_add`) VALUES
|
|
|
|
|
REPLACE INTO `customer_property` (`customer_property_id`, `customer_id`, `property_id`, `property_value`, `date_add`) VALUES
|
|
|
|
|
(1, 90, 1, 81, '2020-09-09 21:53:29'),
|
|
|
|
|
(2, 90, 1, 82, '2020-11-09 21:53:53'),
|
|
|
|
|
(3, 90, 2, 172, '2020-09-09 21:55:18'),
|
|
|
|
@ -293,7 +282,6 @@ INSERT INTO `customer_property` (`customer_property_id`, `customer_id`, `propert
|
|
|
|
|
/*!40000 ALTER TABLE `customer_property` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. django_admin_log
|
|
|
|
|
DROP TABLE IF EXISTS `django_admin_log`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `django_admin_log` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`action_time` datetime(6) NOT NULL,
|
|
|
|
@ -312,7 +300,7 @@ CREATE TABLE IF NOT EXISTS `django_admin_log` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.django_admin_log: ~60 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `django_admin_log` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `django_admin_log` (`id`, `action_time`, `object_id`, `object_repr`, `action_flag`, `change_message`, `content_type_id`, `user_id`) VALUES
|
|
|
|
|
REPLACE INTO `django_admin_log` (`id`, `action_time`, `object_id`, `object_repr`, `action_flag`, `change_message`, `content_type_id`, `user_id`) VALUES
|
|
|
|
|
(1, '2020-07-15 21:17:11.320125', '2', 'bossanyiz', 1, '[{"added": {}}]', 6, 1),
|
|
|
|
|
(2, '2020-07-15 21:18:14.459237', '2', 'bossanyiz', 2, '[{"changed": {"fields": ["Staff status", "User permissions"]}}]', 6, 1),
|
|
|
|
|
(3, '2020-07-15 21:18:34.536886', '1', 'bossanyit', 2, '[]', 6, 1),
|
|
|
|
@ -385,7 +373,6 @@ INSERT INTO `django_admin_log` (`id`, `action_time`, `object_id`, `object_repr`,
|
|
|
|
|
/*!40000 ALTER TABLE `django_admin_log` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. django_content_type
|
|
|
|
|
DROP TABLE IF EXISTS `django_content_type`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `django_content_type` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`app_label` varchar(100) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -396,7 +383,7 @@ CREATE TABLE IF NOT EXISTS `django_content_type` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.django_content_type: ~16 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `django_content_type` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
|
|
|
|
|
REPLACE INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
|
|
|
|
|
(3, 'admin', 'logentry'),
|
|
|
|
|
(14, 'aitrainer_backoffice', 'customerproduct'),
|
|
|
|
|
(17, 'aitrainer_backoffice', 'exercisedevice'),
|
|
|
|
@ -417,7 +404,6 @@ INSERT INTO `django_content_type` (`id`, `app_label`, `model`) VALUES
|
|
|
|
|
/*!40000 ALTER TABLE `django_content_type` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. django_migrations
|
|
|
|
|
DROP TABLE IF EXISTS `django_migrations`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `django_migrations` (
|
|
|
|
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`app` varchar(255) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -428,7 +414,7 @@ CREATE TABLE IF NOT EXISTS `django_migrations` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.django_migrations: ~17 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `django_migrations` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
|
|
|
|
|
REPLACE INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
|
|
|
|
|
(1, 'contenttypes', '0001_initial', '2020-07-15 20:37:56.322447'),
|
|
|
|
|
(2, 'auth', '0001_initial', '2020-07-15 20:37:56.612931'),
|
|
|
|
|
(3, 'admin', '0001_initial', '2020-07-15 20:37:57.660438'),
|
|
|
|
@ -449,7 +435,6 @@ INSERT INTO `django_migrations` (`id`, `app`, `name`, `applied`) VALUES
|
|
|
|
|
/*!40000 ALTER TABLE `django_migrations` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. django_session
|
|
|
|
|
DROP TABLE IF EXISTS `django_session`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `django_session` (
|
|
|
|
|
`session_key` varchar(40) COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
|
`session_data` longtext COLLATE utf8_hungarian_ci NOT NULL,
|
|
|
|
@ -460,7 +445,7 @@ CREATE TABLE IF NOT EXISTS `django_session` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.django_session: ~6 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `django_session` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
|
|
|
|
|
REPLACE INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALUES
|
|
|
|
|
('6oeeoxy9mt0kdbjgmvhl74qeqpefxaox', 'OWQ2YmUzOGUyZjA1MmRmNDFhYjU5MDQ3ODMzZmNkZWZkYjQ2MjA2MDp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiJmM2ZiZmYzNWVjOTljMWEwZjk3OTg2MjM3Nzg4MGY5M2I0MDY5OGI0In0=', '2020-07-29 20:45:32.410329'),
|
|
|
|
|
('j85p9jioio21gkg781wlih3ai1p8wrwv', 'OWFmMzBlYmEzMzE4YWZhMzQyYzY2ZDljNmMxZmFmNWJkMTZlN2Q5Yjp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI4M2ExMzllOTNmZDVlYmI4ODE1NWZkZWZjMjg3NWQ2NTAxNzJmNzNjIn0=', '2020-12-03 19:36:52.014607'),
|
|
|
|
|
('job30dq18a2wr4upc589m348alh30yh2', 'OWFmMzBlYmEzMzE4YWZhMzQyYzY2ZDljNmMxZmFmNWJkMTZlN2Q5Yjp7Il9hdXRoX3VzZXJfaWQiOiIxIiwiX2F1dGhfdXNlcl9iYWNrZW5kIjoiZGphbmdvLmNvbnRyaWIuYXV0aC5iYWNrZW5kcy5Nb2RlbEJhY2tlbmQiLCJfYXV0aF91c2VyX2hhc2giOiI4M2ExMzllOTNmZDVlYmI4ODE1NWZkZWZjMjg3NWQ2NTAxNzJmNzNjIn0=', '2020-08-01 14:20:28.190449'),
|
|
|
|
@ -470,7 +455,6 @@ INSERT INTO `django_session` (`session_key`, `session_data`, `expire_date`) VALU
|
|
|
|
|
/*!40000 ALTER TABLE `django_session` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercises
|
|
|
|
|
DROP TABLE IF EXISTS `exercises`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercises` (
|
|
|
|
|
`exercise_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_type_id` int(11) NOT NULL,
|
|
|
|
@ -488,7 +472,7 @@ CREATE TABLE IF NOT EXISTS `exercises` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercises: ~4 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercises` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercises` (`exercise_id`, `exercise_type_id`, `customer_id`, `date_add`, `quantity`, `unit`, `unit_quantity`, `rest_time`, `exercise_plan_detail_id`) VALUES
|
|
|
|
|
REPLACE INTO `exercises` (`exercise_id`, `exercise_type_id`, `customer_id`, `date_add`, `quantity`, `unit`, `unit_quantity`, `rest_time`, `exercise_plan_detail_id`) VALUES
|
|
|
|
|
(1, 1, 1, '2020-05-01 00:00:00', 12.2, 'repeat', NULL, NULL, 0),
|
|
|
|
|
(2, 3, 11, '2020-05-13 04:32:00', 100, 'repeat', 30, NULL, 0),
|
|
|
|
|
(69, 2, 1, '2020-05-14 03:43:45', 30, 'repeat', 12, NULL, 0),
|
|
|
|
@ -496,7 +480,6 @@ INSERT INTO `exercises` (`exercise_id`, `exercise_type_id`, `customer_id`, `date
|
|
|
|
|
/*!40000 ALTER TABLE `exercises` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_device
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_device`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_device` (
|
|
|
|
|
`exercise_device_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` char(50) COLLATE utf8_hungarian_ci DEFAULT NULL,
|
|
|
|
@ -509,7 +492,7 @@ CREATE TABLE IF NOT EXISTS `exercise_device` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_device: ~2 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_device` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_device` (`exercise_device_id`, `name`, `description`, `image_url`, `sort`, `place`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_device` (`exercise_device_id`, `name`, `description`, `image_url`, `sort`, `place`) VALUES
|
|
|
|
|
(1, 'Weight', NULL, NULL, 5, 0),
|
|
|
|
|
(2, 'Own Weight', NULL, NULL, 4, 0),
|
|
|
|
|
(3, 'Machine', '', 'images/csengo2.png', 3, 0),
|
|
|
|
@ -518,7 +501,6 @@ INSERT INTO `exercise_device` (`exercise_device_id`, `name`, `description`, `ima
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_device` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_device_translation
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_device_translation`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_device_translation` (
|
|
|
|
|
`translation_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_device_id` int(11) DEFAULT NULL,
|
|
|
|
@ -530,14 +512,13 @@ CREATE TABLE IF NOT EXISTS `exercise_device_translation` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_device_translation: ~3 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_device_translation` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_device_translation` (`translation_id`, `exercise_device_id`, `language_code`, `name`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_device_translation` (`translation_id`, `exercise_device_id`, `language_code`, `name`) VALUES
|
|
|
|
|
(1, 1, 'hu', 'Súlyzó'),
|
|
|
|
|
(2, 2, 'hu', 'Saját testsúly'),
|
|
|
|
|
(3, 3, 'hu', 'Edzőtermi gép');
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_device_translation` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_plan
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_plan`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_plan` (
|
|
|
|
|
`exercise_plan_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`customer_id` int(11) NOT NULL DEFAULT 0,
|
|
|
|
@ -551,7 +532,7 @@ CREATE TABLE IF NOT EXISTS `exercise_plan` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_plan: ~4 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_plan` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_plan` (`exercise_plan_id`, `customer_id`, `name`, `description`, `private`, `date_add`, `date_upd`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_plan` (`exercise_plan_id`, `customer_id`, `name`, `description`, `private`, `date_add`, `date_upd`) VALUES
|
|
|
|
|
(3, 90, 'Common', 'Common training plan', 0, NULL, NULL),
|
|
|
|
|
(4, 90, 'Chuck Norris Plan', '', 0, NULL, NULL),
|
|
|
|
|
(6, 90, 'Boss private', '', 1, '2020-09-08 00:06:26', NULL),
|
|
|
|
@ -559,7 +540,6 @@ INSERT INTO `exercise_plan` (`exercise_plan_id`, `customer_id`, `name`, `descrip
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_plan` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_plan_detail
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_plan_detail`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_plan_detail` (
|
|
|
|
|
`exercise_plan_detail_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_plan_id` int(11) NOT NULL DEFAULT 0,
|
|
|
|
@ -572,7 +552,7 @@ CREATE TABLE IF NOT EXISTS `exercise_plan_detail` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_plan_detail: ~5 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_plan_detail` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_plan_detail` (`exercise_plan_detail_id`, `exercise_plan_id`, `exercise_type_id`, `serie`, `repeats`, `weight_equation`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_plan_detail` (`exercise_plan_detail_id`, `exercise_plan_id`, `exercise_type_id`, `serie`, `repeats`, `weight_equation`) VALUES
|
|
|
|
|
(1, 3, 35, 3, 20, '75%'),
|
|
|
|
|
(2, 3, 36, 3, 50, '75%'),
|
|
|
|
|
(3, 4, 37, 3, 12, '85%'),
|
|
|
|
@ -581,7 +561,6 @@ INSERT INTO `exercise_plan_detail` (`exercise_plan_detail_id`, `exercise_plan_id
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_plan_detail` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_plan_translation
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_plan_translation`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_plan_translation` (
|
|
|
|
|
`translation_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`language_code` char(2) NOT NULL DEFAULT '0',
|
|
|
|
@ -593,13 +572,12 @@ CREATE TABLE IF NOT EXISTS `exercise_plan_translation` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_plan_translation: ~2 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_plan_translation` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_plan_translation` (`translation_id`, `language_code`, `name`, `description`, `exercise_plan_id`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_plan_translation` (`translation_id`, `language_code`, `name`, `description`, `exercise_plan_id`) VALUES
|
|
|
|
|
(1, 'hu', 'Általános', 'Általános edzésterv', 3),
|
|
|
|
|
(2, 'hu', 'Chuck Norris', '', 4);
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_plan_translation` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_tree
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_tree`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_tree` (
|
|
|
|
|
`tree_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`parent_id` int(11) NOT NULL DEFAULT 0,
|
|
|
|
@ -612,7 +590,7 @@ CREATE TABLE IF NOT EXISTS `exercise_tree` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_tree: ~3 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_tree` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_tree` (`tree_id`, `parent_id`, `name`, `image_url`, `active`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_tree` (`tree_id`, `parent_id`, `name`, `image_url`, `active`) VALUES
|
|
|
|
|
(3, 0, 'Cardio', 'images/1.cardio_7TNRbEU.png', 1),
|
|
|
|
|
(4, 0, 'Strength', 'images/2.strength.png', 1),
|
|
|
|
|
(5, 0, 'Body Compositions', 'images/3.bcs1.png', 1),
|
|
|
|
@ -620,7 +598,6 @@ INSERT INTO `exercise_tree` (`tree_id`, `parent_id`, `name`, `image_url`, `activ
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_tree` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_tree_translation
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_tree_translation`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_tree_translation` (
|
|
|
|
|
`translation_id` int(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`tree_id` int(13) NOT NULL DEFAULT 0,
|
|
|
|
@ -632,14 +609,13 @@ CREATE TABLE IF NOT EXISTS `exercise_tree_translation` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_tree_translation: ~2 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_tree_translation` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_tree_translation` (`translation_id`, `tree_id`, `language_code`, `name`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_tree_translation` (`translation_id`, `tree_id`, `language_code`, `name`) VALUES
|
|
|
|
|
(1, 3, 'hu', 'Kardió'),
|
|
|
|
|
(2, 4, 'hu', 'Erő'),
|
|
|
|
|
(3, 6, 'hu', '1RM');
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_tree_translation` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_type
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_type`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_type` (
|
|
|
|
|
`exercise_type_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`tree_id` int(11) NOT NULL,
|
|
|
|
@ -656,7 +632,7 @@ CREATE TABLE IF NOT EXISTS `exercise_type` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_type: ~26 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`, `base`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description`, `unit`, `unit_quantity`, `unit_quantity_unit`, `active`, `base`) 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, 0),
|
|
|
|
|
(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, 0),
|
|
|
|
|
(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, 0),
|
|
|
|
@ -686,7 +662,6 @@ INSERT INTO `exercise_type` (`exercise_type_id`, `tree_id`, `name`, `description
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_type_device
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_type_device`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_type_device` (
|
|
|
|
|
`exercise_type_device_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_type_id` int(11) NOT NULL DEFAULT 0,
|
|
|
|
@ -698,14 +673,13 @@ CREATE TABLE IF NOT EXISTS `exercise_type_device` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_type_device: ~3 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type_device` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_type_device` (`exercise_type_device_id`, `exercise_type_id`, `exercise_device_id`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_type_device` (`exercise_type_device_id`, `exercise_type_id`, `exercise_device_id`) VALUES
|
|
|
|
|
(1, 37, 1),
|
|
|
|
|
(2, 38, 1),
|
|
|
|
|
(3, 38, 3);
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type_device` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_type_image
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_type_image`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_type_image` (
|
|
|
|
|
`image_id` int(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`exercise_type_id` int(13) DEFAULT 0,
|
|
|
|
@ -717,7 +691,7 @@ CREATE TABLE IF NOT EXISTS `exercise_type_image` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_type_image: ~5 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type_image` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_type_image` (`image_id`, `exercise_type_id`, `name`, `type`, `url`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_type_image` (`image_id`, `exercise_type_id`, `name`, `type`, `url`) VALUES
|
|
|
|
|
(3, 43, 'Menu', 'menu', '3.2.BMR.png'),
|
|
|
|
|
(4, 42, 'Menu', 'menu', 'images/3.1.BMI.png'),
|
|
|
|
|
(5, 37, 'Menu', 'menu', 'images/2.2.1.1.chestpress.png'),
|
|
|
|
@ -726,7 +700,6 @@ INSERT INTO `exercise_type_image` (`image_id`, `exercise_type_id`, `name`, `type
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type_image` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. exercise_type_translation
|
|
|
|
|
DROP TABLE IF EXISTS `exercise_type_translation`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `exercise_type_translation` (
|
|
|
|
|
`translation_id` int(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`language_code` char(2) NOT NULL DEFAULT 'en',
|
|
|
|
@ -738,7 +711,7 @@ CREATE TABLE IF NOT EXISTS `exercise_type_translation` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.exercise_type_translation: ~7 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type_translation` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `exercise_type_translation` (`translation_id`, `language_code`, `exercise_type_id`, `name`, `description`) VALUES
|
|
|
|
|
REPLACE INTO `exercise_type_translation` (`translation_id`, `language_code`, `exercise_type_id`, `name`, `description`) VALUES
|
|
|
|
|
(1, 'hu', 42, 'Testtömegindex', NULL),
|
|
|
|
|
(2, 'hu', 33, 'Fekvőtámasz', 'fekvőtámasz'),
|
|
|
|
|
(3, 'en', 33, 'Pushups', 'pushup'),
|
|
|
|
@ -749,7 +722,6 @@ INSERT INTO `exercise_type_translation` (`translation_id`, `language_code`, `exe
|
|
|
|
|
/*!40000 ALTER TABLE `exercise_type_translation` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. product
|
|
|
|
|
DROP TABLE IF EXISTS `product`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `product` (
|
|
|
|
|
`product_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` char(50) NOT NULL,
|
|
|
|
@ -762,7 +734,7 @@ CREATE TABLE IF NOT EXISTS `product` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.product: ~12 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `product` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `product` (`product_id`, `name`, `description`, `type`, `valid_from`, `valid_to`) VALUES
|
|
|
|
|
REPLACE INTO `product` (`product_id`, `name`, `description`, `type`, `valid_from`, `valid_to`) VALUES
|
|
|
|
|
(1, 'Subscription A', '700 Ft', 'subscription', '2020-11-01', NULL),
|
|
|
|
|
(2, 'Subscription B', '1000 Ft', 'subscription', '2020-11-01', NULL),
|
|
|
|
|
(3, 'Subscription C', '1500 Ft', 'subscription', '2020-11-01', NULL),
|
|
|
|
@ -778,7 +750,6 @@ INSERT INTO `product` (`product_id`, `name`, `description`, `type`, `valid_from`
|
|
|
|
|
/*!40000 ALTER TABLE `product` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. product_test
|
|
|
|
|
DROP TABLE IF EXISTS `product_test`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `product_test` (
|
|
|
|
|
`product_test_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`product_id` int(11) DEFAULT 0,
|
|
|
|
@ -791,14 +762,13 @@ CREATE TABLE IF NOT EXISTS `product_test` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.product_test: ~3 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `product_test` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `product_test` (`product_test_id`, `product_id`, `customer_id`, `date_view`, `purchase_click`) VALUES
|
|
|
|
|
REPLACE INTO `product_test` (`product_test_id`, `product_id`, `customer_id`, `date_view`, `purchase_click`) VALUES
|
|
|
|
|
(4, 2, 62, '2020-10-01 12:00:00', 0),
|
|
|
|
|
(5, 2, 62, '2020-11-01 12:00:00', 0),
|
|
|
|
|
(8, 1, 1, '2020-11-01 07:07:02', 0);
|
|
|
|
|
/*!40000 ALTER TABLE `product_test` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. property
|
|
|
|
|
DROP TABLE IF EXISTS `property`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `property` (
|
|
|
|
|
`property_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`property_name` char(50) COLLATE utf8_hungarian_ci DEFAULT NULL,
|
|
|
|
@ -808,7 +778,7 @@ CREATE TABLE IF NOT EXISTS `property` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.property: ~4 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `property` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `property` (`property_id`, `property_name`, `property_unit`) VALUES
|
|
|
|
|
REPLACE INTO `property` (`property_id`, `property_name`, `property_unit`) VALUES
|
|
|
|
|
(1, 'Weight', 'kg'),
|
|
|
|
|
(2, 'Height', 'cm'),
|
|
|
|
|
(3, 'Chest', 'cm'),
|
|
|
|
@ -816,7 +786,6 @@ INSERT INTO `property` (`property_id`, `property_name`, `property_unit`) VALUES
|
|
|
|
|
/*!40000 ALTER TABLE `property` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. property_translation
|
|
|
|
|
DROP TABLE IF EXISTS `property_translation`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `property_translation` (
|
|
|
|
|
`translation_id` int(13) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`language_code` char(2) NOT NULL DEFAULT 'en',
|
|
|
|
@ -827,12 +796,11 @@ CREATE TABLE IF NOT EXISTS `property_translation` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.property_translation: ~0 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `property_translation` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `property_translation` (`translation_id`, `language_code`, `property_id`, `property_name`) VALUES
|
|
|
|
|
REPLACE INTO `property_translation` (`translation_id`, `language_code`, `property_id`, `property_name`) VALUES
|
|
|
|
|
(1, 'hu', 1, 'Tömeg');
|
|
|
|
|
/*!40000 ALTER TABLE `property_translation` ENABLE KEYS */;
|
|
|
|
|
|
|
|
|
|
-- Struktúra mentése tábla aitrainer2. purchase
|
|
|
|
|
DROP TABLE IF EXISTS `purchase`;
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `purchase` (
|
|
|
|
|
`purchase_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`customer_id` int(11) NOT NULL DEFAULT 0,
|
|
|
|
@ -846,7 +814,7 @@ CREATE TABLE IF NOT EXISTS `purchase` (
|
|
|
|
|
|
|
|
|
|
-- Tábla adatainak mentése aitrainer2.purchase: ~5 rows (hozzávetőleg)
|
|
|
|
|
/*!40000 ALTER TABLE `purchase` DISABLE KEYS */;
|
|
|
|
|
INSERT INTO `purchase` (`purchase_id`, `customer_id`, `product_id`, `date_add`, `purchase_sum`, `currency`) VALUES
|
|
|
|
|
REPLACE INTO `purchase` (`purchase_id`, `customer_id`, `product_id`, `date_add`, `purchase_sum`, `currency`) VALUES
|
|
|
|
|
(1, 62, 1, '2020-10-03 00:00:00', 1000, 'HUF'),
|
|
|
|
|
(2, 62, 1, '2020-11-05 15:45:08', 1000, 'HUF'),
|
|
|
|
|
(3, 2, 1, '2020-11-05 15:45:30', 1000, 'HUF'),
|
|
|
|
|