Browse Source

Rename database tables

Vova Tkach 5 years ago
parent
commit
26e888665a
44 changed files with 796 additions and 796 deletions
  1. 43 43
      engine/basket/session.go
  2. 63 63
      engine/fetdata/blog.go
  3. 73 73
      engine/fetdata/shop.go
  4. 8 8
      engine/fetdata/shop_category.go
  5. 28 28
      engine/fetdata/shop_product.go
  6. 1 1
      engine/fetdata/user.go
  7. 3 3
      engine/wrapper/wrapper.go
  8. 37 37
      modules/module_blog.go
  9. 4 4
      modules/module_blog_act_delete.go
  10. 10 10
      modules/module_blog_act_modify.go
  11. 4 4
      modules/module_blog_categories.go
  12. 10 10
      modules/module_blog_categories_act_delete.go
  13. 20 20
      modules/module_blog_categories_act_modify.go
  14. 22 22
      modules/module_index.go
  15. 37 37
      modules/module_index_act_cypress.go
  16. 2 2
      modules/module_index_act_first_user.go
  17. 2 2
      modules/module_index_act_modify.go
  18. 132 132
      modules/module_index_act_mysql_setup.go
  19. 1 1
      modules/module_index_act_signin.go
  20. 2 2
      modules/module_index_act_update_profile.go
  21. 13 13
      modules/module_notify_mail.go
  22. 140 140
      modules/module_shop.go
  23. 1 1
      modules/module_shop_act_attach_product_search.go
  24. 3 3
      modules/module_shop_act_attach_product_to.go
  25. 8 8
      modules/module_shop_act_delete.go
  26. 1 1
      modules/module_shop_act_detach.go
  27. 10 10
      modules/module_shop_act_duplicate.go
  28. 1 1
      modules/module_shop_act_get_attribute_values.go
  29. 1 1
      modules/module_shop_act_images_reorder.go
  30. 17 17
      modules/module_shop_act_modify.go
  31. 2 2
      modules/module_shop_act_order.go
  32. 1 1
      modules/module_shop_act_order_set_status.go
  33. 3 3
      modules/module_shop_act_upload_delete.go
  34. 2 2
      modules/module_shop_act_upload_image.go
  35. 14 14
      modules/module_shop_attributes_act_delete.go
  36. 26 26
      modules/module_shop_attributes_act_modify.go
  37. 4 4
      modules/module_shop_categories.go
  38. 10 10
      modules/module_shop_categories_act_delete.go
  39. 20 20
      modules/module_shop_categories_act_modify.go
  40. 1 1
      modules/module_shop_currencies_act_delete.go
  41. 3 3
      modules/module_shop_currencies_act_modify.go
  42. 2 2
      modules/module_users.go
  43. 8 8
      modules/module_users_act_delete.go
  44. 3 3
      modules/module_users_act_modify.go

+ 43 - 43
engine/basket/session.go

@@ -47,60 +47,60 @@ func (this *session) updateProducts(ctx context.Context, db *sqlw.DB) {
 		if rows, err := db.Query(
 		if rows, err := db.Query(
 			ctx,
 			ctx,
 			`SELECT
 			`SELECT
-				shop_products.id,
-				shop_products.name,
-				shop_products.price,
-				shop_products.alias,
-				shop_products.quantity,
-				shop_currencies.id,
-				shop_currencies.name,
-				shop_currencies.coefficient,
-				shop_currencies.code,
-				shop_currencies.symbol,
-				IF(image_this.filename IS NULL, IFNULL(shop_products.parent_id, shop_products.id), shop_products.id) as imgid,
+				fave_shop_products.id,
+				fave_shop_products.name,
+				fave_shop_products.price,
+				fave_shop_products.alias,
+				fave_shop_products.quantity,
+				fave_shop_currencies.id,
+				fave_shop_currencies.name,
+				fave_shop_currencies.coefficient,
+				fave_shop_currencies.code,
+				fave_shop_currencies.symbol,
+				IF(image_this.filename IS NULL, IFNULL(fave_shop_products.parent_id, fave_shop_products.id), fave_shop_products.id) as imgid,
 				IFNULL(IFNULL(image_this.filename, image_parent.filename), '') as filename
 				IFNULL(IFNULL(image_this.filename, image_parent.filename), '') as filename
 			FROM
 			FROM
-				shop_products
-				LEFT JOIN shop_currencies ON shop_currencies.id = shop_products.currency
+				fave_shop_products
+				LEFT JOIN fave_shop_currencies ON fave_shop_currencies.id = fave_shop_products.currency
 				LEFT JOIN (
 				LEFT JOIN (
 					SELECT
 					SELECT
 						m.product_id,
 						m.product_id,
 						m.filename
 						m.filename
 					FROM
 					FROM
-						shop_product_images as m
+						fave_shop_product_images as m
 						LEFT JOIN (
 						LEFT JOIN (
 							SELECT
 							SELECT
 								t.product_id,
 								t.product_id,
 								MIN(t.ord) as ordmin
 								MIN(t.ord) as ordmin
 							FROM
 							FROM
-								shop_product_images as t
+								fave_shop_product_images as t
 							GROUP BY
 							GROUP BY
 								t.product_id
 								t.product_id
 						) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 						) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 					WHERE
 					WHERE
 						u.product_id IS NOT NULL
 						u.product_id IS NOT NULL
-				) as image_this ON image_this.product_id = shop_products.id
+				) as image_this ON image_this.product_id = fave_shop_products.id
 				LEFT JOIN (
 				LEFT JOIN (
 					SELECT
 					SELECT
 						m.product_id,
 						m.product_id,
 						m.filename
 						m.filename
 					FROM
 					FROM
-						shop_product_images as m
+						fave_shop_product_images as m
 						LEFT JOIN (
 						LEFT JOIN (
 							SELECT
 							SELECT
 								t.product_id,
 								t.product_id,
 								MIN(t.ord) as ordmin
 								MIN(t.ord) as ordmin
 							FROM
 							FROM
-								shop_product_images as t
+								fave_shop_product_images as t
 							GROUP BY
 							GROUP BY
 								t.product_id
 								t.product_id
 						) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 						) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 					WHERE
 					WHERE
 						u.product_id IS NOT NULL
 						u.product_id IS NOT NULL
-				) as image_parent ON image_parent.product_id = shop_products.parent_id
+				) as image_parent ON image_parent.product_id = fave_shop_products.parent_id
 			WHERE
 			WHERE
-				shop_products.active = 1 AND
-				shop_products.id IN (`+strings.Join(utils.ArrayOfIntToArrayOfString(products_ids), ",")+`)
+				fave_shop_products.active = 1 AND
+				fave_shop_products.id IN (`+strings.Join(utils.ArrayOfIntToArrayOfString(products_ids), ",")+`)
 			;`,
 			;`,
 		); err == nil {
 		); err == nil {
 			defer rows.Close()
 			defer rows.Close()
@@ -185,7 +185,7 @@ func (this *session) Preload(p *SBParam) {
 			code,
 			code,
 			symbol
 			symbol
 		FROM
 		FROM
-			shop_currencies
+			fave_shop_currencies
 		ORDER BY
 		ORDER BY
 			id ASC
 			id ASC
 		;`,
 		;`,
@@ -255,60 +255,60 @@ func (this *session) Plus(p *SBParam, product_id int) {
 		p.R.Context(),
 		p.R.Context(),
 		`
 		`
 		SELECT
 		SELECT
-			shop_products.id,
-			shop_products.name,
-			shop_products.price,
-			shop_products.alias,
-			shop_currencies.id,
-			shop_currencies.name,
-			shop_currencies.coefficient,
-			shop_currencies.code,
-			shop_currencies.symbol,
-			IF(image_this.filename IS NULL, IFNULL(shop_products.parent_id, shop_products.id), shop_products.id) as imgid,
+			fave_shop_products.id,
+			fave_shop_products.name,
+			fave_shop_products.price,
+			fave_shop_products.alias,
+			fave_shop_currencies.id,
+			fave_shop_currencies.name,
+			fave_shop_currencies.coefficient,
+			fave_shop_currencies.code,
+			fave_shop_currencies.symbol,
+			IF(image_this.filename IS NULL, IFNULL(fave_shop_products.parent_id, fave_shop_products.id), fave_shop_products.id) as imgid,
 			IFNULL(IFNULL(image_this.filename, image_parent.filename), '') as filename
 			IFNULL(IFNULL(image_this.filename, image_parent.filename), '') as filename
 		FROM
 		FROM
-			shop_products
-			LEFT JOIN shop_currencies ON shop_currencies.id = shop_products.currency
+			fave_shop_products
+			LEFT JOIN fave_shop_currencies ON fave_shop_currencies.id = fave_shop_products.currency
 			LEFT JOIN (
 			LEFT JOIN (
 				SELECT
 				SELECT
 					m.product_id,
 					m.product_id,
 					m.filename
 					m.filename
 				FROM
 				FROM
-					shop_product_images as m
+					fave_shop_product_images as m
 					LEFT JOIN (
 					LEFT JOIN (
 						SELECT
 						SELECT
 							t.product_id,
 							t.product_id,
 							MIN(t.ord) as ordmin
 							MIN(t.ord) as ordmin
 						FROM
 						FROM
-							shop_product_images as t
+							fave_shop_product_images as t
 						GROUP BY
 						GROUP BY
 							t.product_id
 							t.product_id
 					) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 					) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 				WHERE
 				WHERE
 					u.product_id IS NOT NULL
 					u.product_id IS NOT NULL
-			) as image_this ON image_this.product_id = shop_products.id
+			) as image_this ON image_this.product_id = fave_shop_products.id
 			LEFT JOIN (
 			LEFT JOIN (
 				SELECT
 				SELECT
 					m.product_id,
 					m.product_id,
 					m.filename
 					m.filename
 				FROM
 				FROM
-					shop_product_images as m
+					fave_shop_product_images as m
 					LEFT JOIN (
 					LEFT JOIN (
 						SELECT
 						SELECT
 							t.product_id,
 							t.product_id,
 							MIN(t.ord) as ordmin
 							MIN(t.ord) as ordmin
 						FROM
 						FROM
-							shop_product_images as t
+							fave_shop_product_images as t
 						GROUP BY
 						GROUP BY
 							t.product_id
 							t.product_id
 					) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 					) as u ON u.product_id = m.product_id AND u.ordmin = m.ord
 				WHERE
 				WHERE
 					u.product_id IS NOT NULL
 					u.product_id IS NOT NULL
-			) as image_parent ON image_parent.product_id = shop_products.parent_id
+			) as image_parent ON image_parent.product_id = fave_shop_products.parent_id
 		WHERE
 		WHERE
-			shop_products.active = 1 AND
-			shop_products.quantity > 0 AND
-			shop_products.id = ?
+			fave_shop_products.active = 1 AND
+			fave_shop_products.quantity > 0 AND
+			fave_shop_products.id = ?
 		LIMIT 1;`,
 		LIMIT 1;`,
 		product_id,
 		product_id,
 	).Scan(
 	).Scan(

+ 63 - 63
engine/fetdata/blog.go

@@ -41,28 +41,28 @@ func (this *Blog) load() *Blog {
 		SELECT
 		SELECT
 			COUNT(*)
 			COUNT(*)
 		FROM
 		FROM
-			blog_posts
+			fave_blog_posts
 		WHERE
 		WHERE
 			active = 1
 			active = 1
 		;
 		;
 	`
 	`
 	sql_rows := `
 	sql_rows := `
 		SELECT
 		SELECT
-			blog_posts.id,
-			blog_posts.user,
-			blog_posts.name,
-			blog_posts.alias,
-			blog_posts.category,
-			blog_posts.briefly,
-			blog_posts.content,
-			UNIX_TIMESTAMP(blog_posts.datetime) as datetime,
-			blog_posts.active,
-			users.id,
-			users.first_name,
-			users.last_name,
-			users.email,
-			users.admin,
-			users.active,
+			fave_blog_posts.id,
+			fave_blog_posts.user,
+			fave_blog_posts.name,
+			fave_blog_posts.alias,
+			fave_blog_posts.category,
+			fave_blog_posts.briefly,
+			fave_blog_posts.content,
+			UNIX_TIMESTAMP(fave_blog_posts.datetime) as datetime,
+			fave_blog_posts.active,
+			fave_users.id,
+			fave_users.first_name,
+			fave_users.last_name,
+			fave_users.email,
+			fave_users.admin,
+			fave_users.active,
 			cats.id,
 			cats.id,
 			cats.user,
 			cats.user,
 			cats.name,
 			cats.name,
@@ -72,8 +72,8 @@ func (this *Blog) load() *Blog {
 			cats.depth,
 			cats.depth,
 			cats.parent_id
 			cats.parent_id
 		FROM
 		FROM
-			blog_posts
-			LEFT JOIN users ON users.id = blog_posts.user
+			fave_blog_posts
+			LEFT JOIN fave_users ON fave_users.id = fave_blog_posts.user
 			LEFT JOIN (
 			LEFT JOIN (
 				SELECT
 				SELECT
 					main.id,
 					main.id,
@@ -95,8 +95,8 @@ func (this *Blog) load() *Blog {
 							node.rgt,
 							node.rgt,
 							(COUNT(parent.id) - 1) AS depth
 							(COUNT(parent.id) - 1) AS depth
 						FROM
 						FROM
-							blog_cats AS node,
-							blog_cats AS parent
+							fave_blog_cats AS node,
+							fave_blog_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt
 							node.lft BETWEEN parent.lft AND parent.rgt
 						GROUP BY
 						GROUP BY
@@ -114,8 +114,8 @@ func (this *Blog) load() *Blog {
 							node.rgt,
 							node.rgt,
 							(COUNT(parent.id) - 0) AS depth
 							(COUNT(parent.id) - 0) AS depth
 						FROM
 						FROM
-							blog_cats AS node,
-							blog_cats AS parent
+							fave_blog_cats AS node,
+							fave_blog_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt
 							node.lft BETWEEN parent.lft AND parent.rgt
 						GROUP BY
 						GROUP BY
@@ -130,11 +130,11 @@ func (this *Blog) load() *Blog {
 					main.id > 1
 					main.id > 1
 				ORDER BY
 				ORDER BY
 					main.lft ASC
 					main.lft ASC
-			) AS cats ON cats.id = blog_posts.category
+			) AS cats ON cats.id = fave_blog_posts.category
 		WHERE
 		WHERE
-			blog_posts.active = 1
+			fave_blog_posts.active = 1
 		ORDER BY
 		ORDER BY
-			blog_posts.id DESC
+			fave_blog_posts.id DESC
 		LIMIT ?, ?;
 		LIMIT ?, ?;
 	`
 	`
 
 
@@ -146,8 +146,8 @@ func (this *Blog) load() *Blog {
 			`SELECT
 			`SELECT
 				node.id
 				node.id
 			FROM
 			FROM
-				blog_cats AS node,
-				blog_cats AS parent
+				fave_blog_cats AS node,
+				fave_blog_cats AS parent
 			WHERE
 			WHERE
 				node.lft BETWEEN parent.lft AND parent.rgt AND
 				node.lft BETWEEN parent.lft AND parent.rgt AND
 				node.id > 1 AND
 				node.id > 1 AND
@@ -175,33 +175,33 @@ func (this *Blog) load() *Blog {
 					SELECT
 					SELECT
 						COUNT(*)
 						COUNT(*)
 					FROM
 					FROM
-						blog_posts
-						LEFT JOIN blog_cat_post_rel ON blog_cat_post_rel.post_id = blog_posts.id
+						fave_blog_posts
+						LEFT JOIN fave_blog_cat_post_rel ON fave_blog_cat_post_rel.post_id = fave_blog_posts.id
 					WHERE
 					WHERE
-						blog_posts.active = 1 AND
-						blog_cat_post_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
+						fave_blog_posts.active = 1 AND
+						fave_blog_cat_post_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
 					GROUP BY
 					GROUP BY
-						blog_posts.id
+						fave_blog_posts.id
 				) AS tbl
 				) AS tbl
 			;
 			;
 		`
 		`
 		sql_rows = `
 		sql_rows = `
 			SELECT
 			SELECT
-				blog_posts.id,
-				blog_posts.user,
-				blog_posts.name,
-				blog_posts.alias,
-				blog_posts.category,
-				blog_posts.briefly,
-				blog_posts.content,
-				UNIX_TIMESTAMP(blog_posts.datetime) AS datetime,
-				blog_posts.active,
-				users.id,
-				users.first_name,
-				users.last_name,
-				users.email,
-				users.admin,
-				users.active,
+				fave_blog_posts.id,
+				fave_blog_posts.user,
+				fave_blog_posts.name,
+				fave_blog_posts.alias,
+				fave_blog_posts.category,
+				fave_blog_posts.briefly,
+				fave_blog_posts.content,
+				UNIX_TIMESTAMP(fave_blog_posts.datetime) AS datetime,
+				fave_blog_posts.active,
+				fave_users.id,
+				fave_users.first_name,
+				fave_users.last_name,
+				fave_users.email,
+				fave_users.admin,
+				fave_users.active,
 				cats.id,
 				cats.id,
 				cats.user,
 				cats.user,
 				cats.name,
 				cats.name,
@@ -211,9 +211,9 @@ func (this *Blog) load() *Blog {
 				cats.depth,
 				cats.depth,
 				cats.parent_id
 				cats.parent_id
 			FROM
 			FROM
-				blog_posts
-				LEFT JOIN blog_cat_post_rel ON blog_cat_post_rel.post_id = blog_posts.id
-				LEFT JOIN users ON users.id = blog_posts.user
+				fave_blog_posts
+				LEFT JOIN fave_blog_cat_post_rel ON fave_blog_cat_post_rel.post_id = fave_blog_posts.id
+				LEFT JOIN fave_users ON fave_users.id = fave_blog_posts.user
 				LEFT JOIN (
 				LEFT JOIN (
 					SELECT
 					SELECT
 						main.id,
 						main.id,
@@ -235,8 +235,8 @@ func (this *Blog) load() *Blog {
 								node.rgt,
 								node.rgt,
 								(COUNT(parent.id) - 1) AS depth
 								(COUNT(parent.id) - 1) AS depth
 							FROM
 							FROM
-								blog_cats AS node,
-								blog_cats AS parent
+								fave_blog_cats AS node,
+								fave_blog_cats AS parent
 							WHERE
 							WHERE
 								node.lft BETWEEN parent.lft AND parent.rgt
 								node.lft BETWEEN parent.lft AND parent.rgt
 							GROUP BY
 							GROUP BY
@@ -254,8 +254,8 @@ func (this *Blog) load() *Blog {
 								node.rgt,
 								node.rgt,
 								(COUNT(parent.id) - 0) AS depth
 								(COUNT(parent.id) - 0) AS depth
 							FROM
 							FROM
-								blog_cats AS node,
-								blog_cats AS parent
+								fave_blog_cats AS node,
+								fave_blog_cats AS parent
 							WHERE
 							WHERE
 								node.lft BETWEEN parent.lft AND parent.rgt
 								node.lft BETWEEN parent.lft AND parent.rgt
 							GROUP BY
 							GROUP BY
@@ -270,15 +270,15 @@ func (this *Blog) load() *Blog {
 						main.id > 1
 						main.id > 1
 					ORDER BY
 					ORDER BY
 						main.lft ASC
 						main.lft ASC
-				) AS cats ON cats.id = blog_posts.category
+				) AS cats ON cats.id = fave_blog_posts.category
 			WHERE
 			WHERE
-				blog_posts.active = 1 AND
-				blog_cat_post_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
+				fave_blog_posts.active = 1 AND
+				fave_blog_cat_post_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
 			GROUP BY
 			GROUP BY
-				blog_posts.id,
+				fave_blog_posts.id,
 				cats.parent_id
 				cats.parent_id
 			ORDER BY
 			ORDER BY
-				blog_posts.id DESC
+				fave_blog_posts.id DESC
 			LIMIT ?, ?;
 			LIMIT ?, ?;
 		`
 		`
 	}
 	}
@@ -451,8 +451,8 @@ func (this *Blog) preload_cats() {
 						node.rgt,
 						node.rgt,
 						(COUNT(parent.id) - 1) AS depth
 						(COUNT(parent.id) - 1) AS depth
 					FROM
 					FROM
-						blog_cats AS node,
-						blog_cats AS parent
+						fave_blog_cats AS node,
+						fave_blog_cats AS parent
 					WHERE
 					WHERE
 						node.lft BETWEEN parent.lft AND parent.rgt
 						node.lft BETWEEN parent.lft AND parent.rgt
 					GROUP BY
 					GROUP BY
@@ -470,8 +470,8 @@ func (this *Blog) preload_cats() {
 						node.rgt,
 						node.rgt,
 						(COUNT(parent.id) - 0) AS depth
 						(COUNT(parent.id) - 0) AS depth
 					FROM
 					FROM
-						blog_cats AS node,
-						blog_cats AS parent
+						fave_blog_cats AS node,
+						fave_blog_cats AS parent
 					WHERE
 					WHERE
 						node.lft BETWEEN parent.lft AND parent.rgt
 						node.lft BETWEEN parent.lft AND parent.rgt
 					GROUP BY
 					GROUP BY

+ 73 - 73
engine/fetdata/shop.go

@@ -41,7 +41,7 @@ func (this *Shop) load() *Shop {
 		SELECT
 		SELECT
 			COUNT(*)
 			COUNT(*)
 		FROM
 		FROM
-			shop_products
+			fave_shop_products
 		WHERE
 		WHERE
 			active = 1 AND
 			active = 1 AND
 			parent_id IS NULL
 			parent_id IS NULL
@@ -49,27 +49,27 @@ func (this *Shop) load() *Shop {
 	`
 	`
 	sql_rows := `
 	sql_rows := `
 		SELECT
 		SELECT
-			shop_products.id,
-			shop_products.user,
-			shop_products.currency,
-			shop_products.price,
-			shop_products.price_old,
-			shop_products.gname,
-			shop_products.name,
-			shop_products.alias,
-			shop_products.vendor,
-			shop_products.quantity,
-			shop_products.category,
-			shop_products.briefly,
-			shop_products.content,
-			UNIX_TIMESTAMP(shop_products.datetime) as datetime,
-			shop_products.active,
-			users.id,
-			users.first_name,
-			users.last_name,
-			users.email,
-			users.admin,
-			users.active,
+			fave_shop_products.id,
+			fave_shop_products.user,
+			fave_shop_products.currency,
+			fave_shop_products.price,
+			fave_shop_products.price_old,
+			fave_shop_products.gname,
+			fave_shop_products.name,
+			fave_shop_products.alias,
+			fave_shop_products.vendor,
+			fave_shop_products.quantity,
+			fave_shop_products.category,
+			fave_shop_products.briefly,
+			fave_shop_products.content,
+			UNIX_TIMESTAMP(fave_shop_products.datetime) as datetime,
+			fave_shop_products.active,
+			fave_users.id,
+			fave_users.first_name,
+			fave_users.last_name,
+			fave_users.email,
+			fave_users.admin,
+			fave_users.active,
 			shop_currencies.id,
 			shop_currencies.id,
 			shop_currencies.name,
 			shop_currencies.name,
 			shop_currencies.coefficient,
 			shop_currencies.coefficient,
@@ -84,9 +84,9 @@ func (this *Shop) load() *Shop {
 			cats.depth,
 			cats.depth,
 			cats.parent_id
 			cats.parent_id
 		FROM
 		FROM
-			shop_products
-			LEFT JOIN users ON users.id = shop_products.user
-			LEFT JOIN shop_currencies ON shop_currencies.id = shop_products.currency
+			fave_shop_products
+			LEFT JOIN fave_users ON fave_users.id = fave_shop_products.user
+			LEFT JOIN shop_currencies ON shop_currencies.id = fave_shop_products.currency
 			LEFT JOIN (
 			LEFT JOIN (
 				SELECT
 				SELECT
 					main.id,
 					main.id,
@@ -143,13 +143,13 @@ func (this *Shop) load() *Shop {
 					main.id > 1
 					main.id > 1
 				ORDER BY
 				ORDER BY
 					main.lft ASC
 					main.lft ASC
-			) AS cats ON cats.id = shop_products.category
+			) AS cats ON cats.id = fave_shop_products.category
 		WHERE
 		WHERE
-			shop_products.active = 1 AND
-			shop_products.parent_id IS NULL
+			fave_shop_products.active = 1 AND
+			fave_shop_products.parent_id IS NULL
 		ORDER BY
 		ORDER BY
-			shop_products.quantity DESC,
-			shop_products.id DESC
+			fave_shop_products.quantity DESC,
+			fave_shop_products.id DESC
 		LIMIT ?, ?;
 		LIMIT ?, ?;
 	`
 	`
 
 
@@ -190,40 +190,40 @@ func (this *Shop) load() *Shop {
 					SELECT
 					SELECT
 						COUNT(*)
 						COUNT(*)
 					FROM
 					FROM
-						shop_products
-						LEFT JOIN shop_cat_product_rel ON shop_cat_product_rel.product_id = shop_products.id
+						fave_shop_products
+						LEFT JOIN fave_shop_cat_product_rel ON fave_shop_cat_product_rel.product_id = fave_shop_products.id
 					WHERE
 					WHERE
-						shop_products.active = 1 AND
-						shop_products.parent_id IS NULL AND
-						shop_cat_product_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
+						fave_shop_products.active = 1 AND
+						fave_shop_products.parent_id IS NULL AND
+						fave_shop_cat_product_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
 					GROUP BY
 					GROUP BY
-						shop_products.id
+						fave_shop_products.id
 				) AS tbl
 				) AS tbl
 			;
 			;
 		`
 		`
 		sql_rows = `
 		sql_rows = `
 			SELECT
 			SELECT
-				shop_products.id,
-				shop_products.user,
-				shop_products.currency,
-				shop_products.price,
-				shop_products.price_old,
-				shop_products.gname,
-				shop_products.name,
-				shop_products.alias,
-				shop_products.vendor,
-				shop_products.quantity,
-				shop_products.category,
-				shop_products.briefly,
-				shop_products.content,
-				UNIX_TIMESTAMP(shop_products.datetime) AS datetime,
-				shop_products.active,
-				users.id,
-				users.first_name,
-				users.last_name,
-				users.email,
-				users.admin,
-				users.active,
+				fave_shop_products.id,
+				fave_shop_products.user,
+				fave_shop_products.currency,
+				fave_shop_products.price,
+				fave_shop_products.price_old,
+				fave_shop_products.gname,
+				fave_shop_products.name,
+				fave_shop_products.alias,
+				fave_shop_products.vendor,
+				fave_shop_products.quantity,
+				fave_shop_products.category,
+				fave_shop_products.briefly,
+				fave_shop_products.content,
+				UNIX_TIMESTAMP(fave_shop_products.datetime) AS datetime,
+				fave_shop_products.active,
+				fave_users.id,
+				fave_users.first_name,
+				fave_users.last_name,
+				fave_users.email,
+				fave_users.admin,
+				fave_users.active,
 				shop_currencies.id,
 				shop_currencies.id,
 				shop_currencies.name,
 				shop_currencies.name,
 				shop_currencies.coefficient,
 				shop_currencies.coefficient,
@@ -238,10 +238,10 @@ func (this *Shop) load() *Shop {
 				cats.depth,
 				cats.depth,
 				cats.parent_id
 				cats.parent_id
 			FROM
 			FROM
-				shop_products
-				LEFT JOIN shop_cat_product_rel ON shop_cat_product_rel.product_id = shop_products.id
-				LEFT JOIN users ON users.id = shop_products.user
-				LEFT JOIN shop_currencies ON shop_currencies.id = shop_products.currency
+				fave_shop_products
+				LEFT JOIN fave_shop_cat_product_rel ON fave_shop_cat_product_rel.product_id = fave_shop_products.id
+				LEFT JOIN fave_users ON fave_users.id = fave_shop_products.user
+				LEFT JOIN shop_currencies ON shop_currencies.id = fave_shop_products.currency
 				LEFT JOIN (
 				LEFT JOIN (
 					SELECT
 					SELECT
 						main.id,
 						main.id,
@@ -298,17 +298,17 @@ func (this *Shop) load() *Shop {
 						main.id > 1
 						main.id > 1
 					ORDER BY
 					ORDER BY
 						main.lft ASC
 						main.lft ASC
-				) AS cats ON cats.id = shop_products.category
+				) AS cats ON cats.id = fave_shop_products.category
 			WHERE
 			WHERE
-				shop_products.active = 1 AND
-				shop_products.parent_id IS NULL AND
-				shop_cat_product_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
+				fave_shop_products.active = 1 AND
+				fave_shop_products.parent_id IS NULL AND
+				fave_shop_cat_product_rel.category_id IN (` + strings.Join(cat_ids, ", ") + `)
 			GROUP BY
 			GROUP BY
-				shop_products.id,
+				fave_shop_products.id,
 				cats.parent_id
 				cats.parent_id
 			ORDER BY
 			ORDER BY
-				shop_products.quantity DESC,
-				shop_products.id DESC
+				fave_shop_products.quantity DESC,
+				fave_shop_products.id DESC
 			LIMIT ?, ?;
 			LIMIT ?, ?;
 		`
 		`
 	}
 	}
@@ -386,14 +386,14 @@ func (this *Shop) load() *Shop {
 		if rows, err := this.wrap.DB.Query(
 		if rows, err := this.wrap.DB.Query(
 			this.wrap.R.Context(),
 			this.wrap.R.Context(),
 			`SELECT
 			`SELECT
-				shop_product_images.product_id,
-				shop_product_images.filename
+				fave_shop_product_images.product_id,
+				fave_shop_product_images.filename
 			FROM
 			FROM
-				shop_product_images
+				fave_shop_product_images
 			WHERE
 			WHERE
-				shop_product_images.product_id IN (`+strings.Join(product_ids, ", ")+`)
+				fave_shop_product_images.product_id IN (`+strings.Join(product_ids, ", ")+`)
 			ORDER BY
 			ORDER BY
-				shop_product_images.ord ASC
+				fave_shop_product_images.ord ASC
 			;`,
 			;`,
 		); err == nil {
 		); err == nil {
 			defer rows.Close()
 			defer rows.Close()

+ 8 - 8
engine/fetdata/shop_category.go

@@ -47,8 +47,8 @@ func (this *ShopCategory) load(cache *map[int]*utils.MySql_shop_category) *ShopC
 					node.rgt,
 					node.rgt,
 					(COUNT(parent.id) - 1) AS depth
 					(COUNT(parent.id) - 1) AS depth
 				FROM
 				FROM
-					shop_cats AS node,
-					shop_cats AS parent
+					fave_shop_cats AS node,
+					fave_shop_cats AS parent
 				WHERE
 				WHERE
 					node.lft BETWEEN parent.lft AND parent.rgt
 					node.lft BETWEEN parent.lft AND parent.rgt
 				GROUP BY
 				GROUP BY
@@ -66,8 +66,8 @@ func (this *ShopCategory) load(cache *map[int]*utils.MySql_shop_category) *ShopC
 					node.rgt,
 					node.rgt,
 					(COUNT(parent.id) - 0) AS depth
 					(COUNT(parent.id) - 0) AS depth
 				FROM
 				FROM
-					shop_cats AS node,
-					shop_cats AS parent
+					fave_shop_cats AS node,
+					fave_shop_cats AS parent
 				WHERE
 				WHERE
 					node.lft BETWEEN parent.lft AND parent.rgt
 					node.lft BETWEEN parent.lft AND parent.rgt
 				GROUP BY
 				GROUP BY
@@ -137,8 +137,8 @@ func (this *ShopCategory) loadById(id int) {
 					node.rgt,
 					node.rgt,
 					(COUNT(parent.id) - 1) AS depth
 					(COUNT(parent.id) - 1) AS depth
 				FROM
 				FROM
-					shop_cats AS node,
-					shop_cats AS parent
+					fave_shop_cats AS node,
+					fave_shop_cats AS parent
 				WHERE
 				WHERE
 					node.lft BETWEEN parent.lft AND parent.rgt
 					node.lft BETWEEN parent.lft AND parent.rgt
 				GROUP BY
 				GROUP BY
@@ -156,8 +156,8 @@ func (this *ShopCategory) loadById(id int) {
 					node.rgt,
 					node.rgt,
 					(COUNT(parent.id) - 0) AS depth
 					(COUNT(parent.id) - 0) AS depth
 				FROM
 				FROM
-					shop_cats AS node,
-					shop_cats AS parent
+					fave_shop_cats AS node,
+					fave_shop_cats AS parent
 				WHERE
 				WHERE
 					node.lft BETWEEN parent.lft AND parent.rgt
 					node.lft BETWEEN parent.lft AND parent.rgt
 				GROUP BY
 				GROUP BY

+ 28 - 28
engine/fetdata/shop_product.go

@@ -35,14 +35,14 @@ func (this *ShopProduct) load() *ShopProduct {
 	if rows, err := this.wrap.DB.Query(
 	if rows, err := this.wrap.DB.Query(
 		this.wrap.R.Context(),
 		this.wrap.R.Context(),
 		`SELECT
 		`SELECT
-			shop_product_images.product_id,
-			shop_product_images.filename
+			fave_shop_product_images.product_id,
+			fave_shop_product_images.filename
 		FROM
 		FROM
-			shop_product_images
+			fave_shop_product_images
 		WHERE
 		WHERE
-			shop_product_images.product_id = ?
+			fave_shop_product_images.product_id = ?
 		ORDER BY
 		ORDER BY
-			shop_product_images.ord ASC
+			fave_shop_product_images.ord ASC
 		;`,
 		;`,
 		this.object.A_id,
 		this.object.A_id,
 	); err == nil {
 	); err == nil {
@@ -63,14 +63,14 @@ func (this *ShopProduct) load() *ShopProduct {
 		if rows, err := this.wrap.DB.Query(
 		if rows, err := this.wrap.DB.Query(
 			this.wrap.R.Context(),
 			this.wrap.R.Context(),
 			`SELECT
 			`SELECT
-				shop_product_images.product_id,
-				shop_product_images.filename
+				fave_shop_product_images.product_id,
+				fave_shop_product_images.filename
 			FROM
 			FROM
-				shop_product_images
+				fave_shop_product_images
 			WHERE
 			WHERE
-				shop_product_images.product_id = ?
+				fave_shop_product_images.product_id = ?
 			ORDER BY
 			ORDER BY
-				shop_product_images.ord ASC
+				fave_shop_product_images.ord ASC
 			;`,
 			;`,
 			this.object.A_parent_id(),
 			this.object.A_parent_id(),
 		); err == nil {
 		); err == nil {
@@ -93,18 +93,18 @@ func (this *ShopProduct) load() *ShopProduct {
 	if rows, err := this.wrap.DB.Query(
 	if rows, err := this.wrap.DB.Query(
 		this.wrap.R.Context(),
 		this.wrap.R.Context(),
 		`SELECT
 		`SELECT
-			shop_filters.id,
-			shop_filters.filter,
-			shop_filters_values.name
+			fave_shop_filters.id,
+			fave_shop_filters.filter,
+			fave_shop_filters_values.name
 		FROM
 		FROM
-			shop_filter_product_values
-			LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id
-			LEFT JOIN shop_filters ON shop_filters.id = shop_filters_values.filter_id
+			fave_shop_filter_product_values
+			LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id
+			LEFT JOIN fave_shop_filters ON fave_shop_filters.id = fave_shop_filters_values.filter_id
 		WHERE
 		WHERE
-			shop_filter_product_values.product_id = ?
+			fave_shop_filter_product_values.product_id = ?
 		ORDER BY
 		ORDER BY
-			shop_filters.filter ASC,
-			shop_filters_values.name ASC
+			fave_shop_filters.filter ASC,
+			fave_shop_filters_values.name ASC
 		;`,
 		;`,
 		this.object.A_id,
 		this.object.A_id,
 	); err == nil {
 	); err == nil {
@@ -138,22 +138,22 @@ func (this *ShopProduct) load() *ShopProduct {
 	if rows, err := this.wrap.DB.Query(
 	if rows, err := this.wrap.DB.Query(
 		this.wrap.R.Context(),
 		this.wrap.R.Context(),
 		`SELECT
 		`SELECT
-			shop_products.id,
-			shop_products.name,
-			shop_products.alias
+			fave_shop_products.id,
+			fave_shop_products.name,
+			fave_shop_products.alias
 		FROM
 		FROM
-			shop_products
+			fave_shop_products
 		WHERE
 		WHERE
-			shop_products.active = 1 AND
+			fave_shop_products.active = 1 AND
 			(
 			(
-				(shop_products.id = ? OR shop_products.parent_id = ?) OR
+				(fave_shop_products.id = ? OR fave_shop_products.parent_id = ?) OR
 				(
 				(
-					(shop_products.id = ?) OR
-					(shop_products.parent_id IS NOT NULL AND shop_products.parent_id = ?)
+					(fave_shop_products.id = ?) OR
+					(fave_shop_products.parent_id IS NOT NULL AND fave_shop_products.parent_id = ?)
 				)
 				)
 			)
 			)
 		ORDER BY
 		ORDER BY
-			shop_products.name ASC
+			fave_shop_products.name ASC
 		;`,
 		;`,
 		this.object.A_id,
 		this.object.A_id,
 		this.object.A_id,
 		this.object.A_id,

+ 1 - 1
engine/fetdata/user.go

@@ -32,7 +32,7 @@ func (this *User) loadById(id int) {
 			admin,
 			admin,
 			active
 			active
 		FROM
 		FROM
-			users
+			fave_users
 		WHERE
 		WHERE
 			id = ?
 			id = ?
 		LIMIT 1;`,
 		LIMIT 1;`,

+ 3 - 3
engine/wrapper/wrapper.go

@@ -166,7 +166,7 @@ func (this *Wrapper) LoadSessionUser() bool {
 			admin,
 			admin,
 			active
 			active
 		FROM
 		FROM
-			users
+			fave_users
 		WHERE
 		WHERE
 			id = ?
 			id = ?
 		LIMIT 1;`,
 		LIMIT 1;`,
@@ -313,7 +313,7 @@ func (this *Wrapper) SendEmailUsual(email, subject, message string) error {
 
 
 	if _, err := this.DB.Exec(
 	if _, err := this.DB.Exec(
 		this.R.Context(),
 		this.R.Context(),
-		`INSERT INTO notify_mail SET
+		`INSERT INTO fave_notify_mail SET
 			id = NULL,
 			id = NULL,
 			email = ?,
 			email = ?,
 			subject = ?,
 			subject = ?,
@@ -346,7 +346,7 @@ func (this *Wrapper) SendEmailFast(email, subject, message string) error {
 
 
 	if _, err := this.DB.Exec(
 	if _, err := this.DB.Exec(
 		this.R.Context(),
 		this.R.Context(),
-		`INSERT INTO notify_mail SET
+		`INSERT INTO fave_notify_mail SET
 			id = NULL,
 			id = NULL,
 			email = ?,
 			email = ?,
 			subject = ?,
 			subject = ?,

+ 37 - 37
modules/module_blog.go

@@ -47,12 +47,12 @@ func (this *Modules) RegisterModule_Blog() *Module {
 					main.rgt,
 					main.rgt,
 					main.depth,
 					main.depth,
 					parent.id AS parent_id,
 					parent.id AS parent_id,
-					users.id,
-					users.first_name,
-					users.last_name,
-					users.email,
-					users.admin,
-					users.active
+					fave_users.id,
+					fave_users.first_name,
+					fave_users.last_name,
+					fave_users.email,
+					fave_users.admin,
+					fave_users.active
 				FROM
 				FROM
 					(
 					(
 						SELECT
 						SELECT
@@ -64,8 +64,8 @@ func (this *Modules) RegisterModule_Blog() *Module {
 							node.rgt,
 							node.rgt,
 							(COUNT(parent.id) - 1) AS depth
 							(COUNT(parent.id) - 1) AS depth
 						FROM
 						FROM
-							blog_cats AS node,
-							blog_cats AS parent
+							fave_blog_cats AS node,
+							fave_blog_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt
 							node.lft BETWEEN parent.lft AND parent.rgt
 						GROUP BY
 						GROUP BY
@@ -83,8 +83,8 @@ func (this *Modules) RegisterModule_Blog() *Module {
 							node.rgt,
 							node.rgt,
 							(COUNT(parent.id) - 0) AS depth
 							(COUNT(parent.id) - 0) AS depth
 						FROM
 						FROM
-							blog_cats AS node,
-							blog_cats AS parent
+							fave_blog_cats AS node,
+							fave_blog_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt
 							node.lft BETWEEN parent.lft AND parent.rgt
 						GROUP BY
 						GROUP BY
@@ -95,7 +95,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 					parent.depth = main.depth AND
 					parent.depth = main.depth AND
 					main.lft > parent.lft AND
 					main.lft > parent.lft AND
 					main.rgt < parent.rgt
 					main.rgt < parent.rgt
-					LEFT JOIN users ON users.id = main.user
+					LEFT JOIN fave_users ON fave_users.id = main.user
 				WHERE
 				WHERE
 					main.id > 1 AND
 					main.id > 1 AND
 					main.alias = ?
 					main.alias = ?
@@ -147,27 +147,27 @@ func (this *Modules) RegisterModule_Blog() *Module {
 			err := wrap.DB.QueryRow(
 			err := wrap.DB.QueryRow(
 				wrap.R.Context(),
 				wrap.R.Context(),
 				`SELECT
 				`SELECT
-					blog_posts.id,
-					blog_posts.user,
-					blog_posts.name,
-					blog_posts.alias,
-					blog_posts.category,
-					blog_posts.briefly,
-					blog_posts.content,
-					UNIX_TIMESTAMP(blog_posts.datetime) as datetime,
-					blog_posts.active,
-					users.id,
-					users.first_name,
-					users.last_name,
-					users.email,
-					users.admin,
-					users.active
+					fave_blog_posts.id,
+					fave_blog_posts.user,
+					fave_blog_posts.name,
+					fave_blog_posts.alias,
+					fave_blog_posts.category,
+					fave_blog_posts.briefly,
+					fave_blog_posts.content,
+					UNIX_TIMESTAMP(fave_blog_posts.datetime) as datetime,
+					fave_blog_posts.active,
+					fave_users.id,
+					fave_users.first_name,
+					fave_users.last_name,
+					fave_users.email,
+					fave_users.admin,
+					fave_users.active
 				FROM
 				FROM
-					blog_posts
-					LEFT JOIN users ON users.id = blog_posts.user
+					fave_blog_posts
+					LEFT JOIN fave_users ON fave_users.id = fave_blog_posts.user
 				WHERE
 				WHERE
-					blog_posts.active = 1 and
-					blog_posts.alias = ?
+					fave_blog_posts.active = 1 and
+					fave_blog_posts.alias = ?
 				LIMIT 1;`,
 				LIMIT 1;`,
 				wrap.UrlArgs[1],
 				wrap.UrlArgs[1],
 			).Scan(
 			).Scan(
@@ -237,7 +237,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"blog_posts",
+				"fave_blog_posts",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -310,7 +310,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"blog_cats",
+				"fave_blog_cats",
 				"id",
 				"id",
 				"ASC",
 				"ASC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -374,8 +374,8 @@ func (this *Modules) RegisterModule_Blog() *Module {
 							node.alias,
 							node.alias,
 							(COUNT(parent.id) - 1) AS depth
 							(COUNT(parent.id) - 1) AS depth
 						FROM
 						FROM
-							blog_cats AS node,
-							blog_cats AS parent
+							fave_blog_cats AS node,
+							fave_blog_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt AND
 							node.lft BETWEEN parent.lft AND parent.rgt AND
 							node.id > 1
 							node.id > 1
@@ -429,7 +429,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 						content,
 						content,
 						active
 						active
 					FROM
 					FROM
-						blog_posts
+						fave_blog_posts
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,
@@ -452,7 +452,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 			// All post current categories
 			// All post current categories
 			var selids []int
 			var selids []int
 			if data.A_id > 0 {
 			if data.A_id > 0 {
-				rows, err := wrap.DB.Query(wrap.R.Context(), "SELECT category_id FROM blog_cat_post_rel WHERE post_id = ?;", data.A_id)
+				rows, err := wrap.DB.Query(wrap.R.Context(), "SELECT category_id FROM fave_blog_cat_post_rel WHERE post_id = ?;", data.A_id)
 				if err == nil {
 				if err == nil {
 					defer rows.Close()
 					defer rows.Close()
 					values := make([]int, 1)
 					values := make([]int, 1)
@@ -618,7 +618,7 @@ func (this *Modules) RegisterModule_Blog() *Module {
 						lft,
 						lft,
 						rgt
 						rgt
 					FROM
 					FROM
-						blog_cats
+						fave_blog_cats
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,

+ 4 - 4
modules/module_blog_act_delete.go

@@ -22,18 +22,18 @@ func (this *Modules) RegisterAction_BlogDelete() *Action {
 
 
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM blog_posts WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_posts WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT post_id FROM blog_cat_post_rel WHERE post_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT post_id FROM fave_blog_cat_post_rel WHERE post_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Delete target post with category connection data
 			// Delete target post with category connection data
-			if _, err := tx.Exec(ctx, "DELETE FROM blog_cat_post_rel WHERE post_id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_blog_cat_post_rel WHERE post_id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "DELETE FROM blog_posts WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_blog_posts WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 			return nil
 			return nil

+ 10 - 10
modules/module_blog_act_modify.go

@@ -62,7 +62,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 				// Insert row
 				// Insert row
 				res, err := tx.Exec(
 				res, err := tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO blog_posts SET
+					`INSERT INTO fave_blog_posts SET
 						user = ?,
 						user = ?,
 						name = ?,
 						name = ?,
 						alias = ?,
 						alias = ?,
@@ -92,7 +92,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 				}
 				}
 
 
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM blog_posts WHERE id = ? FOR UPDATE;", lastID); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_posts WHERE id = ? FOR UPDATE;", lastID); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -105,7 +105,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 						`SELECT
 						`SELECT
 							COUNT(*)
 							COUNT(*)
 						FROM
 						FROM
-							blog_cats
+							fave_blog_cats
 						WHERE
 						WHERE
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 						FOR UPDATE;`,
 						FOR UPDATE;`,
@@ -124,7 +124,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 					}
 					}
 					if _, err = tx.Exec(
 					if _, err = tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO blog_cat_post_rel (post_id,category_id) VALUES `+strings.Join(balkInsertArr, ",")+`;`,
+						`INSERT INTO fave_blog_cat_post_rel (post_id,category_id) VALUES `+strings.Join(balkInsertArr, ",")+`;`,
 					); err != nil {
 					); err != nil {
 						return err
 						return err
 					}
 					}
@@ -139,17 +139,17 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 		} else {
 		} else {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM blog_posts WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_posts WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "SELECT post_id FROM blog_cat_post_rel WHERE post_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT post_id FROM fave_blog_cat_post_rel WHERE post_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
 				// Update row
 				// Update row
 				if _, err := tx.Exec(
 				if _, err := tx.Exec(
 					ctx,
 					ctx,
-					`UPDATE blog_posts SET
+					`UPDATE fave_blog_posts SET
 						name = ?,
 						name = ?,
 						alias = ?,
 						alias = ?,
 						category = ?,
 						category = ?,
@@ -171,7 +171,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 				}
 				}
 
 
 				// Delete post and categories relations
 				// Delete post and categories relations
-				if _, err := tx.Exec(ctx, "DELETE FROM blog_cat_post_rel WHERE post_id = ?;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "DELETE FROM fave_blog_cat_post_rel WHERE post_id = ?;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -184,7 +184,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 						`SELECT
 						`SELECT
 							COUNT(*)
 							COUNT(*)
 						FROM
 						FROM
-							blog_cats
+							fave_blog_cats
 						WHERE
 						WHERE
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 						FOR UPDATE;`,
 						FOR UPDATE;`,
@@ -203,7 +203,7 @@ func (this *Modules) RegisterAction_BlogModify() *Action {
 					}
 					}
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO blog_cat_post_rel (post_id,category_id) VALUES `+strings.Join(balkInsertArr, ",")+`;`,
+						`INSERT INTO fave_blog_cat_post_rel (post_id,category_id) VALUES `+strings.Join(balkInsertArr, ",")+`;`,
 					); err != nil {
 					); err != nil {
 						return err
 						return err
 					}
 					}

+ 4 - 4
modules/module_blog_categories.go

@@ -19,8 +19,8 @@ func (this *Modules) blog_GetCategorySelectOptions(wrap *wrapper.Wrapper, id int
 			node.alias,
 			node.alias,
 			(COUNT(parent.id) - 1) AS depth
 			(COUNT(parent.id) - 1) AS depth
 		FROM
 		FROM
-			blog_cats AS node,
-			blog_cats AS parent
+			fave_blog_cats AS node,
+			fave_blog_cats AS parent
 		WHERE
 		WHERE
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.id > 1
 			node.id > 1
@@ -72,8 +72,8 @@ func (this *Modules) blog_GetCategoryParentId(wrap *wrapper.Wrapper, id int) int
 		`SELECT
 		`SELECT
 			parent.id
 			parent.id
 		FROM
 		FROM
-			blog_cats AS node,
-			blog_cats AS parent
+			fave_blog_cats AS node,
+			fave_blog_cats AS parent
 		WHERE
 		WHERE
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.id = ? AND
 			node.id = ? AND

+ 10 - 10
modules/module_blog_categories_act_delete.go

@@ -22,38 +22,38 @@ func (this *Modules) RegisterAction_BlogCategoriesDelete() *Action {
 
 
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM blog_cats FOR UPDATE;"); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_cats FOR UPDATE;"); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT category_id FROM blog_cat_post_rel WHERE category_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT category_id FROM fave_blog_cat_post_rel WHERE category_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT id FROM blog_posts WHERE category = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_posts WHERE category = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Set root category
 			// Set root category
-			if _, err := tx.Exec(ctx, "UPDATE blog_posts SET category = 1 WHERE category = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_blog_posts SET category = 1 WHERE category = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Process
 			// Process
-			if _, err := tx.Exec(ctx, "DELETE FROM blog_cat_post_rel WHERE category_id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_blog_cat_post_rel WHERE category_id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT @ml := lft, @mr := rgt FROM blog_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT @ml := lft, @mr := rgt FROM fave_blog_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "DELETE FROM blog_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_blog_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = lft - 1, rgt = rgt - 1 WHERE lft > @ml AND rgt < @mr;"); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = lft - 1, rgt = rgt - 1 WHERE lft > @ml AND rgt < @mr;"); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = lft - 2 WHERE lft > @mr;"); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = lft - 2 WHERE lft > @mr;"); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE blog_cats SET rgt = rgt - 2 WHERE rgt > @mr;"); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET rgt = rgt - 2 WHERE rgt > @mr;"); err != nil {
 				return err
 				return err
 			}
 			}
 			return nil
 			return nil

+ 20 - 20
modules/module_blog_categories_act_modify.go

@@ -12,24 +12,24 @@ func (this *Modules) blog_ActionCategoryAdd(wrap *wrapper.Wrapper, pf_id, pf_nam
 	var lastID int64 = 0
 	var lastID int64 = 0
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		// Block rows
 		// Block rows
-		if _, err := tx.Exec(ctx, "SELECT id FROM blog_cats FOR UPDATE;"); err != nil {
+		if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_cats FOR UPDATE;"); err != nil {
 			return err
 			return err
 		}
 		}
 
 
 		// Process
 		// Process
-		if _, err := tx.Exec(ctx, "SELECT @mr := rgt FROM blog_cats WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
+		if _, err := tx.Exec(ctx, "SELECT @mr := rgt FROM fave_blog_cats WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
 			return err
 			return err
 		}
 		}
-		if _, err := tx.Exec(ctx, "UPDATE blog_cats SET rgt = rgt + 2 WHERE rgt > @mr;"); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET rgt = rgt + 2 WHERE rgt > @mr;"); err != nil {
 			return err
 			return err
 		}
 		}
-		if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = lft + 2 WHERE lft > @mr;"); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = lft + 2 WHERE lft > @mr;"); err != nil {
 			return err
 			return err
 		}
 		}
-		if _, err := tx.Exec(ctx, "UPDATE blog_cats SET rgt = rgt + 2 WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET rgt = rgt + 2 WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
 			return err
 			return err
 		}
 		}
-		res, err := tx.Exec(ctx, "INSERT INTO blog_cats (id, user, name, alias, lft, rgt) VALUES (NULL, ?, ?, ?, @mr, @mr + 1);", wrap.User.A_id, pf_name, pf_alias)
+		res, err := tx.Exec(ctx, "INSERT INTO fave_blog_cats (id, user, name, alias, lft, rgt) VALUES (NULL, ?, ?, ?, @mr, @mr + 1);", wrap.User.A_id, pf_name, pf_alias)
 		if err != nil {
 		if err != nil {
 			return err
 			return err
 		}
 		}
@@ -50,7 +50,7 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 			// Process
 			// Process
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`UPDATE blog_cats SET
+				`UPDATE fave_blog_cats SET
 					name = ?,
 					name = ?,
 					alias = ?
 					alias = ?
 				WHERE
 				WHERE
@@ -72,25 +72,25 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 	// Parent is changed, move category to new parent
 	// Parent is changed, move category to new parent
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		// Block all rows
 		// Block all rows
-		if _, err := tx.Exec(ctx, "SELECT id FROM blog_cats FOR UPDATE;"); err != nil {
+		if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_cats FOR UPDATE;"); err != nil {
 			return err
 			return err
 		}
 		}
 
 
 		var parentL int
 		var parentL int
 		var parentR int
 		var parentR int
-		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM blog_cats WHERE id = ?;`, utils.StrToInt(pf_parent)).Scan(&parentL, &parentR); *wrap.LogCpError(&err) != nil {
+		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM fave_blog_cats WHERE id = ?;`, utils.StrToInt(pf_parent)).Scan(&parentL, &parentR); *wrap.LogCpError(&err) != nil {
 			return err
 			return err
 		}
 		}
 
 
 		var targetL int
 		var targetL int
 		var targetR int
 		var targetR int
-		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM blog_cats WHERE id = ?;`, utils.StrToInt(pf_id)).Scan(&targetL, &targetR); *wrap.LogCpError(&err) != nil {
+		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM fave_blog_cats WHERE id = ?;`, utils.StrToInt(pf_id)).Scan(&targetL, &targetR); *wrap.LogCpError(&err) != nil {
 			return err
 			return err
 		}
 		}
 
 
 		if !(targetL < parentL && targetR > parentR) {
 		if !(targetL < parentL && targetR > parentR) {
 			// Select data
 			// Select data
-			rows, err := tx.Query(ctx, "SELECT id, lft, rgt FROM blog_cats WHERE lft >= ? and rgt <= ? ORDER BY lft ASC", targetL, targetR)
+			rows, err := tx.Query(ctx, "SELECT id, lft, rgt FROM fave_blog_cats WHERE lft >= ? and rgt <= ? ORDER BY lft ASC", targetL, targetR)
 			if err != nil {
 			if err != nil {
 				return err
 				return err
 			}
 			}
@@ -113,13 +113,13 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				// From right to left
 				// From right to left
 				// Shift
 				// Shift
 				step := targetR - targetL + 1
 				step := targetR - targetL + 1
-				if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = lft + ? WHERE lft > ? and lft < ?;", step, parentR, targetL); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = lft + ? WHERE lft > ? and lft < ?;", step, parentR, targetL); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "UPDATE blog_cats SET rgt = rgt + ? WHERE rgt > ? and rgt < ?;", step, parentR, targetL); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET rgt = rgt + ? WHERE rgt > ? and rgt < ?;", step, parentR, targetL); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "UPDATE blog_cats SET rgt = rgt + ? WHERE id = ?;", step, utils.StrToInt(pf_parent)); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET rgt = rgt + ? WHERE id = ?;", step, utils.StrToInt(pf_parent)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -127,7 +127,7 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				for i, _ := range rows_id {
 				for i, _ := range rows_id {
 					new_lft := rows_lft[i] - (targetL - parentR)
 					new_lft := rows_lft[i] - (targetL - parentR)
 					new_rgt := rows_rgt[i] - (targetL - parentR)
 					new_rgt := rows_rgt[i] - (targetL - parentR)
-					if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
+					if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
 						return err
 						return err
 					}
 					}
 				}
 				}
@@ -135,10 +135,10 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				// From left to right
 				// From left to right
 				// Shift
 				// Shift
 				step := targetR - targetL + 1
 				step := targetR - targetL + 1
-				if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = lft - ? WHERE lft > ? and lft < ?;", step, targetR, parentR); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = lft - ? WHERE lft > ? and lft < ?;", step, targetR, parentR); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "UPDATE blog_cats SET rgt = rgt - ? WHERE rgt > ? and rgt < ?;", step, targetR, parentR); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET rgt = rgt - ? WHERE rgt > ? and rgt < ?;", step, targetR, parentR); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -146,7 +146,7 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				for i, _ := range rows_id {
 				for i, _ := range rows_id {
 					new_lft := rows_lft[i] + (parentR - targetL - step)
 					new_lft := rows_lft[i] + (parentR - targetL - step)
 					new_rgt := rows_rgt[i] + (parentR - targetL - step)
 					new_rgt := rows_rgt[i] + (parentR - targetL - step)
-					if _, err := tx.Exec(ctx, "UPDATE blog_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
+					if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
 						return err
 						return err
 					}
 					}
 				}
 				}
@@ -157,7 +157,7 @@ func (this *Modules) blog_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 		}
 		}
 
 
 		// Update target cat data
 		// Update target cat data
-		if _, err := tx.Exec(ctx, "UPDATE blog_cats SET name = ?, alias = ? WHERE id = ?;", pf_name, pf_alias, utils.StrToInt(pf_id)); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET name = ?, alias = ? WHERE id = ?;", pf_name, pf_alias, utils.StrToInt(pf_id)); err != nil {
 			return err
 			return err
 		}
 		}
 
 
@@ -206,7 +206,7 @@ func (this *Modules) RegisterAction_BlogCategoriesModify() *Action {
 				`SELECT
 				`SELECT
 					id
 					id
 				FROM
 				FROM
-					blog_cats
+					fave_blog_cats
 				WHERE
 				WHERE
 					id > 1 AND
 					id > 1 AND
 					id = ?
 					id = ?

+ 22 - 22
modules/module_index.go

@@ -31,28 +31,28 @@ func (this *Modules) RegisterModule_Index() *Module {
 		err := wrap.DB.QueryRow(
 		err := wrap.DB.QueryRow(
 			wrap.R.Context(),
 			wrap.R.Context(),
 			`SELECT
 			`SELECT
-				pages.id,
-				pages.user,
-				pages.name,
-				pages.alias,
-				pages.content,
-				pages.meta_title,
-				pages.meta_keywords,
-				pages.meta_description,
-				UNIX_TIMESTAMP(pages.datetime) as datetime,
-				pages.active,
-				users.id,
-				users.first_name,
-				users.last_name,
-				users.email,
-				users.admin,
-				users.active
+				fave_pages.id,
+				fave_pages.user,
+				fave_pages.name,
+				fave_pages.alias,
+				fave_pages.content,
+				fave_pages.meta_title,
+				fave_pages.meta_keywords,
+				fave_pages.meta_description,
+				UNIX_TIMESTAMP(fave_pages.datetime) as datetime,
+				fave_pages.active,
+				fave_users.id,
+				fave_users.first_name,
+				fave_users.last_name,
+				fave_users.email,
+				fave_users.admin,
+				fave_users.active
 			FROM
 			FROM
-				pages
-				LEFT JOIN users ON users.id = pages.user
+				fave_pages
+				LEFT JOIN fave_users ON fave_users.id = fave_pages.user
 			WHERE
 			WHERE
-				pages.active = 1 and
-				pages.alias = ?
+				fave_pages.active = 1 and
+				fave_pages.alias = ?
 			LIMIT 1;`,
 			LIMIT 1;`,
 			wrap.R.URL.Path,
 			wrap.R.URL.Path,
 		).Scan(
 		).Scan(
@@ -101,7 +101,7 @@ func (this *Modules) RegisterModule_Index() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"pages",
+				"fave_pages",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -211,7 +211,7 @@ func (this *Modules) RegisterModule_Index() *Module {
 						meta_description,
 						meta_description,
 						active
 						active
 					FROM
 					FROM
-						pages
+						fave_pages
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,

+ 37 - 37
modules/module_index_act_cypress.go

@@ -34,44 +34,44 @@ func (this *Modules) RegisterAction_IndexCypressReset() *Action {
 		os.Remove(wrap.DConfig + string(os.PathSeparator) + "config.json")
 		os.Remove(wrap.DConfig + string(os.PathSeparator) + "config.json")
 		wrap.RemoveProductImageThumbnails("*", "*")
 		wrap.RemoveProductImageThumbnails("*", "*")
 
 
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE blog_cat_post_rel DROP FOREIGN KEY FK_blog_cat_post_rel_post_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE blog_cat_post_rel DROP FOREIGN KEY FK_blog_cat_post_rel_category_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE blog_cats DROP FOREIGN KEY FK_blog_cats_user;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE blog_posts DROP FOREIGN KEY FK_blog_posts_user;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE blog_posts DROP FOREIGN KEY FK_blog_posts_category;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE pages DROP FOREIGN KEY FK_pages_user;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_cat_product_rel DROP FOREIGN KEY FK_shop_cat_product_rel_product_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_cat_product_rel DROP FOREIGN KEY FK_shop_cat_product_rel_category_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_cats DROP FOREIGN KEY FK_shop_cats_user;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_filter_product_values DROP FOREIGN KEY FK_shop_filter_product_values_product_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_filter_product_values DROP FOREIGN KEY FK_shop_filter_product_values_filter_value_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_filters_values DROP FOREIGN KEY FK_shop_filters_values_filter_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_orders DROP FOREIGN KEY FK_shop_orders_currency_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_order_products DROP FOREIGN KEY FK_shop_order_products_order_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_order_products DROP FOREIGN KEY FK_shop_order_products_product_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_product_images DROP FOREIGN KEY FK_shop_product_images_product_id;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_products DROP FOREIGN KEY FK_shop_products_user;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_products DROP FOREIGN KEY FK_shop_products_currency;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_products DROP FOREIGN KEY FK_shop_products_category;`)
-		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE shop_products DROP FOREIGN KEY FK_shop_products_parent_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_blog_cat_post_rel DROP FOREIGN KEY FK_blog_cat_post_rel_post_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_blog_cat_post_rel DROP FOREIGN KEY FK_blog_cat_post_rel_category_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_blog_cats DROP FOREIGN KEY FK_blog_cats_user;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_blog_posts DROP FOREIGN KEY FK_blog_posts_user;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_blog_posts DROP FOREIGN KEY FK_blog_posts_category;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_pages DROP FOREIGN KEY FK_pages_user;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_cat_product_rel DROP FOREIGN KEY FK_shop_cat_product_rel_product_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_cat_product_rel DROP FOREIGN KEY FK_shop_cat_product_rel_category_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_cats DROP FOREIGN KEY FK_shop_cats_user;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_filter_product_values DROP FOREIGN KEY FK_shop_filter_product_values_product_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_filter_product_values DROP FOREIGN KEY FK_shop_filter_product_values_filter_value_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_filters_values DROP FOREIGN KEY FK_shop_filters_values_filter_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_orders DROP FOREIGN KEY FK_shop_orders_currency_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_order_products DROP FOREIGN KEY FK_shop_order_products_order_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_order_products DROP FOREIGN KEY FK_shop_order_products_product_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_product_images DROP FOREIGN KEY FK_shop_product_images_product_id;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_products DROP FOREIGN KEY FK_shop_products_user;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_products DROP FOREIGN KEY FK_shop_products_currency;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_products DROP FOREIGN KEY FK_shop_products_category;`)
+		_, _ = db.Exec(wrap.R.Context(), `ALTER TABLE fave_shop_products DROP FOREIGN KEY FK_shop_products_parent_id;`)
 
 
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE blog_cat_post_rel;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE blog_cats;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE blog_posts;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE notify_mail;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE pages;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE settings;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_cat_product_rel;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_cats;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_currencies;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_filter_product_values;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_filters_values;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_filters;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_order_products;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_orders;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_product_images;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE shop_products;`)
-		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE users;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_blog_cat_post_rel;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_blog_cats;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_blog_posts;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_notify_mail;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_pages;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_settings;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_cat_product_rel;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_cats;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_currencies;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_filter_product_values;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_filters_values;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_filters;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_order_products;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_orders;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_product_images;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_shop_products;`)
+		_, _ = db.Exec(wrap.R.Context(), `DROP TABLE fave_users;`)
 
 
 		wrap.ResetCacheBlocks()
 		wrap.ResetCacheBlocks()
 
 

+ 2 - 2
modules/module_index_act_first_user.go

@@ -37,7 +37,7 @@ func (this *Modules) RegisterAction_IndexFirstUser() *Action {
 			`SELECT
 			`SELECT
 				COUNT(*)
 				COUNT(*)
 			FROM
 			FROM
-				users
+				fave_users
 			;`,
 			;`,
 		).Scan(
 		).Scan(
 			&count,
 			&count,
@@ -53,7 +53,7 @@ func (this *Modules) RegisterAction_IndexFirstUser() *Action {
 
 
 		_, err = wrap.DB.Exec(
 		_, err = wrap.DB.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO users SET
+			`INSERT INTO fave_users SET
 				id = 1,
 				id = 1,
 				first_name = ?,
 				first_name = ?,
 				last_name = ?,
 				last_name = ?,

+ 2 - 2
modules/module_index_act_modify.go

@@ -51,7 +51,7 @@ func (this *Modules) RegisterAction_IndexModify() *Action {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				res, err := tx.Exec(
 				res, err := tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO pages SET
+					`INSERT INTO fave_pages SET
 						user = ?,
 						user = ?,
 						name = ?,
 						name = ?,
 						alias = ?,
 						alias = ?,
@@ -92,7 +92,7 @@ func (this *Modules) RegisterAction_IndexModify() *Action {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				_, err := tx.Exec(
 				_, err := tx.Exec(
 					ctx,
 					ctx,
-					`UPDATE pages SET
+					`UPDATE fave_pages SET
 						name = ?,
 						name = ?,
 						alias = ?,
 						alias = ?,
 						content = ?,
 						content = ?,

+ 132 - 132
modules/module_index_act_mysql_setup.go

@@ -71,10 +71,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: blog_cats
+		// Table: fave_blog_cats
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE blog_cats (
+			`CREATE TABLE fave_blog_cats (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				user int(11) NOT NULL COMMENT 'User id',
 				user int(11) NOT NULL COMMENT 'User id',
 				name varchar(255) NOT NULL COMMENT 'Category name',
 				name varchar(255) NOT NULL COMMENT 'Category name',
@@ -89,10 +89,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: blog_cat_post_rel
+		// Table: fave_blog_cat_post_rel
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE blog_cat_post_rel (
+			`CREATE TABLE fave_blog_cat_post_rel (
 				post_id int(11) NOT NULL COMMENT 'Post id',
 				post_id int(11) NOT NULL COMMENT 'Post id',
 				category_id int(11) NOT NULL COMMENT 'Category id'
 				category_id int(11) NOT NULL COMMENT 'Category id'
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
@@ -102,10 +102,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: blog_posts
+		// Table: fave_blog_posts
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE blog_posts (
+			`CREATE TABLE fave_blog_posts (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				user int(11) NOT NULL COMMENT 'User id',
 				user int(11) NOT NULL COMMENT 'User id',
 				name varchar(255) NOT NULL COMMENT 'Post name',
 				name varchar(255) NOT NULL COMMENT 'Post name',
@@ -123,10 +123,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: notify_mail
+		// Table: fave_notify_mail
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE notify_mail (
+			`CREATE TABLE fave_notify_mail (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				email varchar(255) NOT NULL COMMENT 'Email address',
 				email varchar(255) NOT NULL COMMENT 'Email address',
 				subject varchar(800) NOT NULL COMMENT 'Email subject',
 				subject varchar(800) NOT NULL COMMENT 'Email subject',
@@ -142,10 +142,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: pages
+		// Table: fave_pages
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE pages (
+			`CREATE TABLE fave_pages (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				user int(11) NOT NULL COMMENT 'User id',
 				user int(11) NOT NULL COMMENT 'User id',
 				name varchar(255) NOT NULL COMMENT 'Page name',
 				name varchar(255) NOT NULL COMMENT 'Page name',
@@ -164,10 +164,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: settings
+		// Table: fave_settings
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE settings (
+			`CREATE TABLE fave_settings (
 				name varchar(255) NOT NULL COMMENT 'Setting name',
 				name varchar(255) NOT NULL COMMENT 'Setting name',
 				value text NOT NULL COMMENT 'Setting value'
 				value text NOT NULL COMMENT 'Setting value'
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
@@ -177,10 +177,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_cat_product_rel
+		// Table: fave_shop_cat_product_rel
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_cat_product_rel (
+			`CREATE TABLE fave_shop_cat_product_rel (
 				product_id int(11) NOT NULL COMMENT 'Product id',
 				product_id int(11) NOT NULL COMMENT 'Product id',
 				category_id int(11) NOT NULL COMMENT 'Category id'
 				category_id int(11) NOT NULL COMMENT 'Category id'
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
@@ -190,10 +190,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_cats
+		// Table: fave_shop_cats
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_cats (
+			`CREATE TABLE fave_shop_cats (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				user int(11) NOT NULL COMMENT 'User id',
 				user int(11) NOT NULL COMMENT 'User id',
 				name varchar(255) NOT NULL COMMENT 'Category name',
 				name varchar(255) NOT NULL COMMENT 'Category name',
@@ -208,10 +208,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_currencies
+		// Table: fave_shop_currencies
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_currencies (
+			`CREATE TABLE fave_shop_currencies (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				name varchar(255) NOT NULL COMMENT 'Currency name',
 				name varchar(255) NOT NULL COMMENT 'Currency name',
 				coefficient float(8,4) NOT NULL DEFAULT '1.0000' COMMENT 'Currency coefficient',
 				coefficient float(8,4) NOT NULL DEFAULT '1.0000' COMMENT 'Currency coefficient',
@@ -225,10 +225,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_filter_product_values
+		// Table: fave_shop_filter_product_values
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_filter_product_values (
+			`CREATE TABLE fave_shop_filter_product_values (
 				product_id int(11) NOT NULL COMMENT 'Product id',
 				product_id int(11) NOT NULL COMMENT 'Product id',
 				filter_value_id int(11) NOT NULL COMMENT 'Filter value id'
 				filter_value_id int(11) NOT NULL COMMENT 'Filter value id'
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
 			) ENGINE=InnoDB DEFAULT CHARSET=utf8;`,
@@ -238,10 +238,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_filters
+		// Table: fave_shop_filters
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_filters (
+			`CREATE TABLE fave_shop_filters (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				name varchar(255) NOT NULL COMMENT 'Filter name in CP',
 				name varchar(255) NOT NULL COMMENT 'Filter name in CP',
 				filter varchar(255) NOT NULL COMMENT 'Filter name in site',
 				filter varchar(255) NOT NULL COMMENT 'Filter name in site',
@@ -253,10 +253,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_filters_values
+		// Table: fave_shop_filters_values
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_filters_values (
+			`CREATE TABLE fave_shop_filters_values (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				filter_id int(11) NOT NULL COMMENT 'Filter id',
 				filter_id int(11) NOT NULL COMMENT 'Filter id',
 				name varchar(255) NOT NULL COMMENT 'Value name',
 				name varchar(255) NOT NULL COMMENT 'Value name',
@@ -268,10 +268,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_order_products
+		// Table: fave_shop_order_products
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_order_products (
+			`CREATE TABLE fave_shop_order_products (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				order_id int(11) NOT NULL COMMENT 'Order ID',
 				order_id int(11) NOT NULL COMMENT 'Order ID',
 				product_id int(11) NOT NULL COMMENT 'Product ID',
 				product_id int(11) NOT NULL COMMENT 'Product ID',
@@ -285,10 +285,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_orders
+		// Table: fave_shop_orders
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_orders (
+			`CREATE TABLE fave_shop_orders (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				create_datetime datetime NOT NULL COMMENT 'Create date/time',
 				create_datetime datetime NOT NULL COMMENT 'Create date/time',
 				update_datetime datetime NOT NULL COMMENT 'Update date/time',
 				update_datetime datetime NOT NULL COMMENT 'Update date/time',
@@ -313,10 +313,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_product_images
+		// Table: fave_shop_product_images
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_product_images (
+			`CREATE TABLE fave_shop_product_images (
 				id int(11) NOT NULL AUTO_INCREMENT,
 				id int(11) NOT NULL AUTO_INCREMENT,
 				product_id int(11) NOT NULL,
 				product_id int(11) NOT NULL,
 				filename varchar(255) NOT NULL,
 				filename varchar(255) NOT NULL,
@@ -329,10 +329,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: shop_products
+		// Table: fave_shop_products
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE shop_products (
+			`CREATE TABLE fave_shop_products (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				parent_id int(11) DEFAULT NULL,
 				parent_id int(11) DEFAULT NULL,
 				user int(11) NOT NULL COMMENT 'User id',
 				user int(11) NOT NULL COMMENT 'User id',
@@ -360,10 +360,10 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 			return
 			return
 		}
 		}
 
 
-		// Table: users
+		// Table: fave_users
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`CREATE TABLE users (
+			`CREATE TABLE fave_users (
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				id int(11) NOT NULL AUTO_INCREMENT COMMENT 'AI',
 				first_name varchar(64) NOT NULL DEFAULT '' COMMENT 'User first name',
 				first_name varchar(64) NOT NULL DEFAULT '' COMMENT 'User first name',
 				last_name varchar(64) NOT NULL DEFAULT '' COMMENT 'User last name',
 				last_name varchar(64) NOT NULL DEFAULT '' COMMENT 'User last name',
@@ -382,7 +382,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		// Demo datas
 		// Demo datas
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO blog_cats (id, user, name, alias, lft, rgt)
+			`INSERT INTO fave_blog_cats (id, user, name, alias, lft, rgt)
 				VALUES
 				VALUES
 			(1, 1, 'ROOT', 'ROOT', 1, 24),
 			(1, 1, 'ROOT', 'ROOT', 1, 24),
 			(2, 1, 'Health and food', 'health-and-food', 2, 15),
 			(2, 1, 'Health and food', 'health-and-food', 2, 15),
@@ -403,7 +403,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO blog_cat_post_rel (post_id, category_id) VALUES (1, 9), (2, 12), (3, 8);`,
+			`INSERT INTO fave_blog_cat_post_rel (post_id, category_id) VALUES (1, 9), (2, 12), (3, 8);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -411,7 +411,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO blog_posts SET
+			`INSERT INTO fave_blog_posts SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				name = ?,
 				name = ?,
@@ -438,7 +438,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO blog_posts SET
+			`INSERT INTO fave_blog_posts SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				name = ?,
 				name = ?,
@@ -465,7 +465,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO blog_posts SET
+			`INSERT INTO fave_blog_posts SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				name = ?,
 				name = ?,
@@ -492,7 +492,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO pages SET
+			`INSERT INTO fave_pages SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				name = ?,
 				name = ?,
@@ -515,7 +515,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO pages SET
+			`INSERT INTO fave_pages SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				name = ?,
 				name = ?,
@@ -538,7 +538,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO pages SET
+			`INSERT INTO fave_pages SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				name = ?,
 				name = ?,
@@ -561,7 +561,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO settings (name, value) VALUES ('database_version', '000000020');`,
+			`INSERT INTO fave_settings (name, value) VALUES ('database_version', '000000020');`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -569,7 +569,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_cat_product_rel (product_id, category_id)
+			`INSERT INTO fave_shop_cat_product_rel (product_id, category_id)
 				VALUES
 				VALUES
 			(1, 3),
 			(1, 3),
 			(2, 3),
 			(2, 3),
@@ -581,7 +581,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_cats (id, user, name, alias, lft, rgt)
+			`INSERT INTO fave_shop_cats (id, user, name, alias, lft, rgt)
 				VALUES
 				VALUES
 			(1, 1, 'ROOT', 'ROOT', 1, 6),
 			(1, 1, 'ROOT', 'ROOT', 1, 6),
 			(2, 1, 'Electronics', 'electronics', 2, 5),
 			(2, 1, 'Electronics', 'electronics', 2, 5),
@@ -593,7 +593,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_currencies (id, name, coefficient, code, symbol)
+			`INSERT INTO fave_shop_currencies (id, name, coefficient, code, symbol)
 				VALUES
 				VALUES
 			(1, 'US Dollar', 1.0000, 'USD', '$'),
 			(1, 'US Dollar', 1.0000, 'USD', '$'),
 			(2, 'UA Grivna', 25.0000, 'UAH', '₴');`,
 			(2, 'UA Grivna', 25.0000, 'UAH', '₴');`,
@@ -604,7 +604,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_filter_product_values (product_id, filter_value_id)
+			`INSERT INTO fave_shop_filter_product_values (product_id, filter_value_id)
 				VALUES
 				VALUES
 			(1, 3),
 			(1, 3),
 			(1, 7),
 			(1, 7),
@@ -628,7 +628,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_filters (id, name, filter)
+			`INSERT INTO fave_shop_filters (id, name, filter)
 				VALUES
 				VALUES
 			(1, 'Mobile phones manufacturer', 'Manufacturer'),
 			(1, 'Mobile phones manufacturer', 'Manufacturer'),
 			(2, 'Mobile phones memory', 'Memory'),
 			(2, 'Mobile phones memory', 'Memory'),
@@ -640,7 +640,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_filters_values (id, filter_id, name)
+			`INSERT INTO fave_shop_filters_values (id, filter_id, name)
 				VALUES
 				VALUES
 			(1, 1, 'Apple'),
 			(1, 1, 'Apple'),
 			(2, 1, 'Asus'),
 			(2, 1, 'Asus'),
@@ -661,7 +661,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_products SET
+			`INSERT INTO fave_shop_products SET
 				id = ?,
 				id = ?,
 				user = ?,
 				user = ?,
 				currency = ?,
 				currency = ?,
@@ -700,7 +700,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_products SET
+			`INSERT INTO fave_shop_products SET
 				id = ?,
 				id = ?,
 				parent_id = ?,
 				parent_id = ?,
 				user = ?,
 				user = ?,
@@ -741,7 +741,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO shop_products SET
+			`INSERT INTO fave_shop_products SET
 				id = ?,
 				id = ?,
 				parent_id = ?,
 				parent_id = ?,
 				user = ?,
 				user = ?,
@@ -782,7 +782,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`INSERT INTO users (id, first_name, last_name, email, password, admin, active) VALUES (1, 'First Name', 'Last Name', 'example@example.com', '23463b99b62a72f26ed677cc556c44e8', 1, 1);`,
+			`INSERT INTO fave_users (id, first_name, last_name, email, password, admin, active) VALUES (1, 'First Name', 'Last Name', 'example@example.com', '23463b99b62a72f26ed677cc556c44e8', 1, 1);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -792,7 +792,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		// Indexes
 		// Indexes
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cat_post_rel ADD UNIQUE KEY post_category (post_id,category_id) USING BTREE;`,
+			`ALTER TABLE fave_blog_cat_post_rel ADD UNIQUE KEY post_category (post_id,category_id) USING BTREE;`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -800,7 +800,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cat_post_rel ADD KEY FK_blog_cat_post_rel_post_id (post_id);`,
+			`ALTER TABLE fave_blog_cat_post_rel ADD KEY FK_blog_cat_post_rel_post_id (post_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -808,7 +808,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cat_post_rel ADD KEY FK_blog_cat_post_rel_category_id (category_id);`,
+			`ALTER TABLE fave_blog_cat_post_rel ADD KEY FK_blog_cat_post_rel_category_id (category_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -816,7 +816,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cats ADD UNIQUE KEY alias (alias);`,
+			`ALTER TABLE fave_blog_cats ADD UNIQUE KEY alias (alias);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -824,7 +824,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cats ADD KEY lft (lft), ADD KEY rgt (rgt);`,
+			`ALTER TABLE fave_blog_cats ADD KEY lft (lft), ADD KEY rgt (rgt);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -832,7 +832,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cats ADD KEY FK_blog_cats_user (user);`,
+			`ALTER TABLE fave_blog_cats ADD KEY FK_blog_cats_user (user);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -840,7 +840,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_posts ADD UNIQUE KEY alias (alias);`,
+			`ALTER TABLE fave_blog_posts ADD UNIQUE KEY alias (alias);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -848,7 +848,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_posts ADD KEY FK_blog_posts_user (user);`,
+			`ALTER TABLE fave_blog_posts ADD KEY FK_blog_posts_user (user);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -856,7 +856,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_posts ADD KEY FK_blog_posts_category (category);`,
+			`ALTER TABLE fave_blog_posts ADD KEY FK_blog_posts_category (category);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -864,7 +864,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE notify_mail ADD KEY status (status);`,
+			`ALTER TABLE fave_notify_mail ADD KEY status (status);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -872,7 +872,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE pages ADD UNIQUE KEY alias (alias);`,
+			`ALTER TABLE fave_pages ADD UNIQUE KEY alias (alias);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -880,7 +880,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE pages ADD KEY alias_active (alias,active) USING BTREE;`,
+			`ALTER TABLE fave_pages ADD KEY alias_active (alias,active) USING BTREE;`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -888,7 +888,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE pages ADD KEY FK_pages_user (user);`,
+			`ALTER TABLE fave_pages ADD KEY FK_pages_user (user);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -896,7 +896,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE settings ADD UNIQUE KEY name (name);`,
+			`ALTER TABLE fave_settings ADD UNIQUE KEY name (name);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -904,7 +904,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cat_product_rel ADD UNIQUE KEY product_category (product_id,category_id) USING BTREE;`,
+			`ALTER TABLE fave_shop_cat_product_rel ADD UNIQUE KEY product_category (product_id,category_id) USING BTREE;`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -912,7 +912,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cat_product_rel ADD KEY FK_shop_cat_product_rel_product_id (product_id);`,
+			`ALTER TABLE fave_shop_cat_product_rel ADD KEY FK_shop_cat_product_rel_product_id (product_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -920,7 +920,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cat_product_rel ADD KEY FK_shop_cat_product_rel_category_id (category_id);`,
+			`ALTER TABLE fave_shop_cat_product_rel ADD KEY FK_shop_cat_product_rel_category_id (category_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -928,7 +928,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cats ADD UNIQUE KEY alias (alias);`,
+			`ALTER TABLE fave_shop_cats ADD UNIQUE KEY alias (alias);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -936,7 +936,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cats ADD KEY lft (lft), ADD KEY rgt (rgt);`,
+			`ALTER TABLE fave_shop_cats ADD KEY lft (lft), ADD KEY rgt (rgt);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -944,7 +944,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cats ADD KEY FK_shop_cats_user (user);`,
+			`ALTER TABLE fave_shop_cats ADD KEY FK_shop_cats_user (user);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -952,7 +952,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filter_product_values ADD UNIQUE KEY product_filter_value (product_id,filter_value_id) USING BTREE;`,
+			`ALTER TABLE fave_shop_filter_product_values ADD UNIQUE KEY product_filter_value (product_id,filter_value_id) USING BTREE;`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -960,7 +960,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filter_product_values ADD KEY FK_shop_filter_product_values_product_id (product_id);`,
+			`ALTER TABLE fave_shop_filter_product_values ADD KEY FK_shop_filter_product_values_product_id (product_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -968,7 +968,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filter_product_values ADD KEY FK_shop_filter_product_values_filter_value_id (filter_value_id);`,
+			`ALTER TABLE fave_shop_filter_product_values ADD KEY FK_shop_filter_product_values_filter_value_id (filter_value_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -976,7 +976,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filters ADD KEY name (name);`,
+			`ALTER TABLE fave_shop_filters ADD KEY name (name);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -984,7 +984,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filters_values ADD KEY FK_shop_filters_values_filter_id (filter_id);`,
+			`ALTER TABLE fave_shop_filters_values ADD KEY FK_shop_filters_values_filter_id (filter_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -992,7 +992,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filters_values ADD KEY name (name);`,
+			`ALTER TABLE fave_shop_filters_values ADD KEY name (name);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1000,7 +1000,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_orders ADD KEY FK_shop_orders_currency_id (currency_id);`,
+			`ALTER TABLE fave_shop_orders ADD KEY FK_shop_orders_currency_id (currency_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1008,7 +1008,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_order_products ADD UNIQUE KEY order_product (order_id,product_id) USING BTREE;`,
+			`ALTER TABLE fave_shop_order_products ADD UNIQUE KEY order_product (order_id,product_id) USING BTREE;`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1016,7 +1016,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_order_products ADD KEY FK_shop_order_products_order_id (order_id);`,
+			`ALTER TABLE fave_shop_order_products ADD KEY FK_shop_order_products_order_id (order_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1024,7 +1024,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_order_products ADD KEY FK_shop_order_products_product_id (product_id);`,
+			`ALTER TABLE fave_shop_order_products ADD KEY FK_shop_order_products_product_id (product_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1032,7 +1032,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_product_images ADD UNIQUE KEY product_filename (product_id,filename) USING BTREE;`,
+			`ALTER TABLE fave_shop_product_images ADD UNIQUE KEY product_filename (product_id,filename) USING BTREE;`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1040,7 +1040,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_product_images ADD KEY FK_shop_product_images_product_id (product_id);`,
+			`ALTER TABLE fave_shop_product_images ADD KEY FK_shop_product_images_product_id (product_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1048,7 +1048,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD UNIQUE KEY alias (alias);`,
+			`ALTER TABLE fave_shop_products ADD UNIQUE KEY alias (alias);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1056,7 +1056,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD KEY FK_shop_products_user (user);`,
+			`ALTER TABLE fave_shop_products ADD KEY FK_shop_products_user (user);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1064,7 +1064,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD KEY FK_shop_products_currency (currency);`,
+			`ALTER TABLE fave_shop_products ADD KEY FK_shop_products_currency (currency);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1072,7 +1072,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD KEY FK_shop_products_category (category);`,
+			`ALTER TABLE fave_shop_products ADD KEY FK_shop_products_category (category);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1080,7 +1080,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD KEY FK_shop_products_parent_id (parent_id);`,
+			`ALTER TABLE fave_shop_products ADD KEY FK_shop_products_parent_id (parent_id);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1088,7 +1088,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD KEY name (name);`,
+			`ALTER TABLE fave_shop_products ADD KEY name (name);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1096,7 +1096,7 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE users ADD UNIQUE KEY email (email);`,
+			`ALTER TABLE fave_users ADD UNIQUE KEY email (email);`,
 		); err != nil {
 		); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1106,8 +1106,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		// References
 		// References
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cat_post_rel ADD CONSTRAINT FK_blog_cat_post_rel_post_id
-			FOREIGN KEY (post_id) REFERENCES blog_posts (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_blog_cat_post_rel ADD CONSTRAINT FK_blog_cat_post_rel_post_id
+			FOREIGN KEY (post_id) REFERENCES fave_blog_posts (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1115,8 +1115,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cat_post_rel ADD CONSTRAINT FK_blog_cat_post_rel_category_id
-			FOREIGN KEY (category_id) REFERENCES blog_cats (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_blog_cat_post_rel ADD CONSTRAINT FK_blog_cat_post_rel_category_id
+			FOREIGN KEY (category_id) REFERENCES fave_blog_cats (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1124,8 +1124,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_cats ADD CONSTRAINT FK_blog_cats_user
-			FOREIGN KEY (user) REFERENCES users (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_blog_cats ADD CONSTRAINT FK_blog_cats_user
+			FOREIGN KEY (user) REFERENCES fave_users (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1133,8 +1133,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_posts ADD CONSTRAINT FK_blog_posts_user
-			FOREIGN KEY (user) REFERENCES users (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_blog_posts ADD CONSTRAINT FK_blog_posts_user
+			FOREIGN KEY (user) REFERENCES fave_users (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1142,8 +1142,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE blog_posts ADD CONSTRAINT FK_blog_posts_category
-			FOREIGN KEY (category) REFERENCES blog_cats (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_blog_posts ADD CONSTRAINT FK_blog_posts_category
+			FOREIGN KEY (category) REFERENCES fave_blog_cats (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1151,8 +1151,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE pages ADD CONSTRAINT FK_pages_user
-			FOREIGN KEY (user) REFERENCES users (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_pages ADD CONSTRAINT FK_pages_user
+			FOREIGN KEY (user) REFERENCES fave_users (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1160,8 +1160,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cat_product_rel ADD CONSTRAINT FK_shop_cat_product_rel_product_id
-			FOREIGN KEY (product_id) REFERENCES shop_products (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_cat_product_rel ADD CONSTRAINT FK_shop_cat_product_rel_product_id
+			FOREIGN KEY (product_id) REFERENCES fave_shop_products (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1169,8 +1169,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cat_product_rel ADD CONSTRAINT FK_shop_cat_product_rel_category_id
-			FOREIGN KEY (category_id) REFERENCES shop_cats (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_cat_product_rel ADD CONSTRAINT FK_shop_cat_product_rel_category_id
+			FOREIGN KEY (category_id) REFERENCES fave_shop_cats (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1178,8 +1178,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_cats ADD CONSTRAINT FK_shop_cats_user
-			FOREIGN KEY (user) REFERENCES users (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_cats ADD CONSTRAINT FK_shop_cats_user
+			FOREIGN KEY (user) REFERENCES fave_users (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1187,8 +1187,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filter_product_values ADD CONSTRAINT FK_shop_filter_product_values_product_id
-			FOREIGN KEY (product_id) REFERENCES shop_products (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_filter_product_values ADD CONSTRAINT FK_shop_filter_product_values_product_id
+			FOREIGN KEY (product_id) REFERENCES fave_shop_products (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1196,8 +1196,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filter_product_values ADD CONSTRAINT FK_shop_filter_product_values_filter_value_id
-			FOREIGN KEY (filter_value_id) REFERENCES shop_filters_values (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_filter_product_values ADD CONSTRAINT FK_shop_filter_product_values_filter_value_id
+			FOREIGN KEY (filter_value_id) REFERENCES fave_shop_filters_values (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1205,8 +1205,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_filters_values ADD CONSTRAINT FK_shop_filters_values_filter_id
-			FOREIGN KEY (filter_id) REFERENCES shop_filters (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_filters_values ADD CONSTRAINT FK_shop_filters_values_filter_id
+			FOREIGN KEY (filter_id) REFERENCES fave_shop_filters (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1214,8 +1214,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_orders ADD CONSTRAINT FK_shop_orders_currency_id
-			FOREIGN KEY (currency_id) REFERENCES shop_currencies (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_orders ADD CONSTRAINT FK_shop_orders_currency_id
+			FOREIGN KEY (currency_id) REFERENCES fave_shop_currencies (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1223,8 +1223,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_order_products ADD CONSTRAINT FK_shop_order_products_order_id
-			FOREIGN KEY (order_id) REFERENCES shop_orders (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_order_products ADD CONSTRAINT FK_shop_order_products_order_id
+			FOREIGN KEY (order_id) REFERENCES fave_shop_orders (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1232,8 +1232,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_order_products ADD CONSTRAINT FK_shop_order_products_product_id
-			FOREIGN KEY (product_id) REFERENCES shop_products (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_order_products ADD CONSTRAINT FK_shop_order_products_product_id
+			FOREIGN KEY (product_id) REFERENCES fave_shop_products (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1241,8 +1241,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_product_images ADD CONSTRAINT FK_shop_product_images_product_id
-			FOREIGN KEY (product_id) REFERENCES shop_products (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_product_images ADD CONSTRAINT FK_shop_product_images_product_id
+			FOREIGN KEY (product_id) REFERENCES fave_shop_products (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1250,8 +1250,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD CONSTRAINT FK_shop_products_user
-			FOREIGN KEY (user) REFERENCES users (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_products ADD CONSTRAINT FK_shop_products_user
+			FOREIGN KEY (user) REFERENCES fave_users (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1259,8 +1259,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD CONSTRAINT FK_shop_products_currency
-			FOREIGN KEY (currency) REFERENCES shop_currencies (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_products ADD CONSTRAINT FK_shop_products_currency
+			FOREIGN KEY (currency) REFERENCES fave_shop_currencies (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1268,8 +1268,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD CONSTRAINT FK_shop_products_category
-			FOREIGN KEY (category) REFERENCES shop_cats (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_products ADD CONSTRAINT FK_shop_products_category
+			FOREIGN KEY (category) REFERENCES fave_shop_cats (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())
@@ -1277,8 +1277,8 @@ func (this *Modules) RegisterAction_IndexMysqlSetup() *Action {
 		}
 		}
 		if _, err = tx.Exec(
 		if _, err = tx.Exec(
 			wrap.R.Context(),
 			wrap.R.Context(),
-			`ALTER TABLE shop_products ADD CONSTRAINT FK_shop_products_parent_id
-			FOREIGN KEY (parent_id) REFERENCES shop_products (id) ON DELETE RESTRICT;
+			`ALTER TABLE fave_shop_products ADD CONSTRAINT FK_shop_products_parent_id
+			FOREIGN KEY (parent_id) REFERENCES fave_shop_products (id) ON DELETE RESTRICT;
 		`); err != nil {
 		`); err != nil {
 			tx.Rollback()
 			tx.Rollback()
 			wrap.MsgError(err.Error())
 			wrap.MsgError(err.Error())

+ 1 - 1
modules/module_index_act_signin.go

@@ -40,7 +40,7 @@ func (this *Modules) RegisterAction_IndexUserSignIn() *Action {
 			`SELECT
 			`SELECT
 				id
 				id
 			FROM
 			FROM
-				users
+				fave_users
 			WHERE
 			WHERE
 				email = ? and
 				email = ? and
 				password = MD5(?) and
 				password = MD5(?) and

+ 2 - 2
modules/module_index_act_update_profile.go

@@ -30,7 +30,7 @@ func (this *Modules) RegisterAction_IndexUserUpdateProfile() *Action {
 			// Update with password if set
 			// Update with password if set
 			_, err := wrap.DB.Exec(
 			_, err := wrap.DB.Exec(
 				wrap.R.Context(),
 				wrap.R.Context(),
-				`UPDATE users SET
+				`UPDATE fave_users SET
 					first_name = ?,
 					first_name = ?,
 					last_name = ?,
 					last_name = ?,
 					email = ?,
 					email = ?,
@@ -52,7 +52,7 @@ func (this *Modules) RegisterAction_IndexUserUpdateProfile() *Action {
 			// Update without password if not set
 			// Update without password if not set
 			_, err := wrap.DB.Exec(
 			_, err := wrap.DB.Exec(
 				wrap.R.Context(),
 				wrap.R.Context(),
-				`UPDATE users SET
+				`UPDATE fave_users SET
 					first_name = ?,
 					first_name = ?,
 					last_name = ?,
 					last_name = ?,
 					email = ?
 					email = ?

+ 13 - 13
modules/module_notify_mail.go

@@ -36,15 +36,15 @@ func (this *Modules) RegisterModule_NotifyMail() *Module {
 			if wrap.CurrSubModule == "success" {
 			if wrap.CurrSubModule == "success" {
 				ModuleName = "Success"
 				ModuleName = "Success"
 				ModulePagination = "/cp/" + wrap.CurrModule + "/success/"
 				ModulePagination = "/cp/" + wrap.CurrModule + "/success/"
-				ModuleSqlWhere = " WHERE notify_mail.status = 1"
+				ModuleSqlWhere = " WHERE fave_notify_mail.status = 1"
 			} else if wrap.CurrSubModule == "in-progress" {
 			} else if wrap.CurrSubModule == "in-progress" {
 				ModuleName = "In progress"
 				ModuleName = "In progress"
 				ModulePagination = "/cp/" + wrap.CurrModule + "/in-progress/"
 				ModulePagination = "/cp/" + wrap.CurrModule + "/in-progress/"
-				ModuleSqlWhere = " WHERE notify_mail.status = 2 OR notify_mail.status = 3"
+				ModuleSqlWhere = " WHERE fave_notify_mail.status = 2 OR fave_notify_mail.status = 3"
 			} else if wrap.CurrSubModule == "error" {
 			} else if wrap.CurrSubModule == "error" {
 				ModuleName = "Error"
 				ModuleName = "Error"
 				ModulePagination = "/cp/" + wrap.CurrModule + "/error/"
 				ModulePagination = "/cp/" + wrap.CurrModule + "/error/"
-				ModuleSqlWhere = " WHERE notify_mail.status = 0"
+				ModuleSqlWhere = " WHERE fave_notify_mail.status = 0"
 			}
 			}
 
 
 			content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
 			content += this.getBreadCrumbs(wrap, &[]consts.BreadCrumb{
@@ -52,7 +52,7 @@ func (this *Modules) RegisterModule_NotifyMail() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"notify_mail",
+				"fave_notify_mail",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -106,24 +106,24 @@ func (this *Modules) RegisterModule_NotifyMail() *Module {
 					var count int
 					var count int
 					return count, wrap.DB.QueryRow(
 					return count, wrap.DB.QueryRow(
 						wrap.R.Context(),
 						wrap.R.Context(),
-						"SELECT COUNT(*) FROM `notify_mail`"+ModuleSqlWhere+";",
+						"SELECT COUNT(*) FROM `fave_notify_mail`"+ModuleSqlWhere+";",
 					).Scan(&count)
 					).Scan(&count)
 				},
 				},
 				func(limit_offset int, pear_page int) (*sqlw.Rows, error) {
 				func(limit_offset int, pear_page int) (*sqlw.Rows, error) {
 					return wrap.DB.Query(
 					return wrap.DB.Query(
 						wrap.R.Context(),
 						wrap.R.Context(),
 						`SELECT
 						`SELECT
-							notify_mail.id,
-							notify_mail.email,
-							notify_mail.subject,
-							UNIX_TIMESTAMP(`+"`notify_mail`.`datetime`"+`) AS datetime,
-							notify_mail.status,
-							notify_mail.error
+							fave_notify_mail.id,
+							fave_notify_mail.email,
+							fave_notify_mail.subject,
+							UNIX_TIMESTAMP(`+"`fave_notify_mail`.`datetime`"+`) AS datetime,
+							fave_notify_mail.status,
+							fave_notify_mail.error
 						FROM
 						FROM
-							notify_mail
+							fave_notify_mail
 						`+ModuleSqlWhere+`
 						`+ModuleSqlWhere+`
 						ORDER BY
 						ORDER BY
-							notify_mail.id DESC
+							fave_notify_mail.id DESC
 						LIMIT ?, ?;`,
 						LIMIT ?, ?;`,
 						limit_offset,
 						limit_offset,
 						pear_page,
 						pear_page,

+ 140 - 140
modules/module_shop.go

@@ -24,7 +24,7 @@ func (this *Modules) shop_GetCurrencySelectOptions(wrap *wrapper.Wrapper, id int
 			id,
 			id,
 			code
 			code
 		FROM
 		FROM
-			shop_currencies
+			fave_shop_currencies
 		ORDER BY
 		ORDER BY
 			id ASC
 			id ASC
 		;`,
 		;`,
@@ -56,34 +56,34 @@ func (this *Modules) shop_GetProductValuesInputs(wrap *wrapper.Wrapper, product_
 	rows, err := wrap.DB.Query(
 	rows, err := wrap.DB.Query(
 		wrap.R.Context(),
 		wrap.R.Context(),
 		`SELECT
 		`SELECT
-			shop_filters.id,
-			shop_filters.name,
-			shop_filters_values.id,
-			shop_filters_values.name,
-			IF(shop_filter_product_values.filter_value_id > 0, 1, 0) as selected
+			fave_shop_filters.id,
+			fave_shop_filters.name,
+			fave_shop_filters_values.id,
+			fave_shop_filters_values.name,
+			IF(fave_shop_filter_product_values.filter_value_id > 0, 1, 0) as selected
 		FROM
 		FROM
-			shop_filters_values
-			LEFT JOIN shop_filters ON shop_filters.id = shop_filters_values.filter_id
-			LEFT JOIN shop_filter_product_values ON
-				shop_filter_product_values.filter_value_id = shop_filters_values.id AND
-				shop_filter_product_values.product_id = `+utils.IntToStr(product_id)+`
+			fave_shop_filters_values
+			LEFT JOIN fave_shop_filters ON fave_shop_filters.id = fave_shop_filters_values.filter_id
+			LEFT JOIN fave_shop_filter_product_values ON
+				fave_shop_filter_product_values.filter_value_id = fave_shop_filters_values.id AND
+				fave_shop_filter_product_values.product_id = `+utils.IntToStr(product_id)+`
 			LEFT JOIN (
 			LEFT JOIN (
 				SELECT
 				SELECT
-					shop_filters_values.filter_id,
-					shop_filter_product_values.product_id
+					fave_shop_filters_values.filter_id,
+					fave_shop_filter_product_values.product_id
 				FROM
 				FROM
-					shop_filter_product_values
-					LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id 
+					fave_shop_filter_product_values
+					LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id 
 				WHERE
 				WHERE
-					shop_filter_product_values.product_id = `+utils.IntToStr(product_id)+`
+					fave_shop_filter_product_values.product_id = `+utils.IntToStr(product_id)+`
 				GROUP BY
 				GROUP BY
-					shop_filters_values.filter_id
-			) as filter_used ON filter_used.filter_id = shop_filters.id
+					fave_shop_filters_values.filter_id
+			) as filter_used ON filter_used.filter_id = fave_shop_filters.id
 		WHERE
 		WHERE
 			filter_used.filter_id IS NOT NULL
 			filter_used.filter_id IS NOT NULL
 		ORDER BY
 		ORDER BY
-			shop_filters.name ASC,
-			shop_filters_values.name ASC
+			fave_shop_filters.name ASC,
+			fave_shop_filters_values.name ASC
 		;`,
 		;`,
 	)
 	)
 
 
@@ -136,7 +136,7 @@ func (this *Modules) shop_GetFilterValuesInputs(wrap *wrapper.Wrapper, filter_id
 			id,
 			id,
 			name
 			name
 		FROM
 		FROM
-			shop_filters_values
+			fave_shop_filters_values
 		WHERE
 		WHERE
 			filter_id = ?
 			filter_id = ?
 		ORDER BY
 		ORDER BY
@@ -170,7 +170,7 @@ func (this *Modules) shop_GetAllAttributesSelectOptions(wrap *wrapper.Wrapper) s
 			name,
 			name,
 			filter
 			filter
 		FROM
 		FROM
-			shop_filters
+			fave_shop_filters
 		ORDER BY
 		ORDER BY
 			name ASC
 			name ASC
 		;`,
 		;`,
@@ -201,7 +201,7 @@ func (this *Modules) shop_GetAllCurrencies(wrap *wrapper.Wrapper) map[int]string
 			id,
 			id,
 			code
 			code
 		FROM
 		FROM
-			shop_currencies
+			fave_shop_currencies
 		ORDER BY
 		ORDER BY
 			id ASC
 			id ASC
 		;`,
 		;`,
@@ -232,7 +232,7 @@ func (this *Modules) shop_GetAllProductImages(wrap *wrapper.Wrapper, product_id
 			product_id,
 			product_id,
 			filename
 			filename
 		FROM
 		FROM
-			shop_product_images
+			fave_shop_product_images
 		WHERE
 		WHERE
 			product_id = ?
 			product_id = ?
 		ORDER BY
 		ORDER BY
@@ -265,7 +265,7 @@ func (this *Modules) shop_GetSubProducts(wrap *wrapper.Wrapper, id int) string {
 			id,
 			id,
 			name
 			name
 		FROM
 		FROM
-			shop_products
+			fave_shop_products
 		WHERE
 		WHERE
 			parent_id = ?
 			parent_id = ?
 		ORDER BY
 		ORDER BY
@@ -298,7 +298,7 @@ func (this *Modules) shop_GetParentProduct(wrap *wrapper.Wrapper, id int) string
 			id,
 			id,
 			name
 			name
 		FROM
 		FROM
-			shop_products
+			fave_shop_products
 		WHERE
 		WHERE
 			id = ?
 			id = ?
 		;`,
 		;`,
@@ -380,12 +380,12 @@ func (this *Modules) RegisterModule_Shop() *Module {
 					main.rgt,
 					main.rgt,
 					main.depth,
 					main.depth,
 					parent.id AS parent_id,
 					parent.id AS parent_id,
-					users.id,
-					users.first_name,
-					users.last_name,
-					users.email,
-					users.admin,
-					users.active
+					fave_users.id,
+					fave_users.first_name,
+					fave_users.last_name,
+					fave_users.email,
+					fave_users.admin,
+					fave_users.active
 				FROM
 				FROM
 					(
 					(
 						SELECT
 						SELECT
@@ -397,8 +397,8 @@ func (this *Modules) RegisterModule_Shop() *Module {
 							node.rgt,
 							node.rgt,
 							(COUNT(parent.id) - 1) AS depth
 							(COUNT(parent.id) - 1) AS depth
 						FROM
 						FROM
-							shop_cats AS node,
-							shop_cats AS parent
+							fave_shop_cats AS node,
+							fave_shop_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt
 							node.lft BETWEEN parent.lft AND parent.rgt
 						GROUP BY
 						GROUP BY
@@ -416,8 +416,8 @@ func (this *Modules) RegisterModule_Shop() *Module {
 							node.rgt,
 							node.rgt,
 							(COUNT(parent.id) - 0) AS depth
 							(COUNT(parent.id) - 0) AS depth
 						FROM
 						FROM
-							shop_cats AS node,
-							shop_cats AS parent
+							fave_shop_cats AS node,
+							fave_shop_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt
 							node.lft BETWEEN parent.lft AND parent.rgt
 						GROUP BY
 						GROUP BY
@@ -428,7 +428,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 					parent.depth = main.depth AND
 					parent.depth = main.depth AND
 					main.lft > parent.lft AND
 					main.lft > parent.lft AND
 					main.rgt < parent.rgt
 					main.rgt < parent.rgt
-					LEFT JOIN users ON users.id = main.user
+					LEFT JOIN fave_users ON fave_users.id = main.user
 				WHERE
 				WHERE
 					main.id > 1 AND
 					main.id > 1 AND
 					main.alias = ?
 					main.alias = ?
@@ -532,33 +532,33 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			err := wrap.DB.QueryRow(
 			err := wrap.DB.QueryRow(
 				wrap.R.Context(),
 				wrap.R.Context(),
 				`SELECT
 				`SELECT
-					shop_products.id,
-					shop_products.parent_id,
-					shop_products.user,
-					shop_products.currency,
-					shop_products.price,
-					shop_products.price_old,
-					shop_products.name,
-					shop_products.alias,
-					shop_products.vendor,
-					shop_products.quantity,
-					shop_products.category,
-					shop_products.briefly,
-					shop_products.content,
-					UNIX_TIMESTAMP(shop_products.datetime) as datetime,
-					shop_products.active,
-					users.id,
-					users.first_name,
-					users.last_name,
-					users.email,
-					users.admin,
-					users.active
+					fave_shop_products.id,
+					fave_shop_products.parent_id,
+					fave_shop_products.user,
+					fave_shop_products.currency,
+					fave_shop_products.price,
+					fave_shop_products.price_old,
+					fave_shop_products.name,
+					fave_shop_products.alias,
+					fave_shop_products.vendor,
+					fave_shop_products.quantity,
+					fave_shop_products.category,
+					fave_shop_products.briefly,
+					fave_shop_products.content,
+					UNIX_TIMESTAMP(fave_shop_products.datetime) as datetime,
+					fave_shop_products.active,
+					fave_users.id,
+					fave_users.first_name,
+					fave_users.last_name,
+					fave_users.email,
+					fave_users.admin,
+					fave_users.active
 				FROM
 				FROM
-					shop_products
-					LEFT JOIN users ON users.id = shop_products.user
+					fave_shop_products
+					LEFT JOIN fave_users ON fave_users.id = fave_shop_products.user
 				WHERE
 				WHERE
-					shop_products.active = 1 and
-					shop_products.alias = ?
+					fave_shop_products.active = 1 and
+					fave_shop_products.alias = ?
 				LIMIT 1;`,
 				LIMIT 1;`,
 				wrap.UrlArgs[1],
 				wrap.UrlArgs[1],
 			).Scan(
 			).Scan(
@@ -638,7 +638,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 
 
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"shop_products",
+				"fave_shop_products",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -750,30 +750,30 @@ func (this *Modules) RegisterModule_Shop() *Module {
 					var count int
 					var count int
 					return count, wrap.DB.QueryRow(
 					return count, wrap.DB.QueryRow(
 						wrap.R.Context(),
 						wrap.R.Context(),
-						"SELECT COUNT(*) FROM `shop_products`;",
+						"SELECT COUNT(*) FROM `fave_shop_products`;",
 					).Scan(&count)
 					).Scan(&count)
 				},
 				},
 				func(limit_offset int, pear_page int) (*sqlw.Rows, error) {
 				func(limit_offset int, pear_page int) (*sqlw.Rows, error) {
 					return wrap.DB.Query(
 					return wrap.DB.Query(
 						wrap.R.Context(),
 						wrap.R.Context(),
 						`SELECT
 						`SELECT
-							shop_products.id,
-							shop_products.name,
-							shop_products.alias,
-							shop_products.currency,
-							shop_products.price,
-							UNIX_TIMESTAMP(`+"`shop_products`.`datetime`"+`) AS datetime,
-							shop_products.active,
-							shop_products.parent_id,
+							fave_shop_products.id,
+							fave_shop_products.name,
+							fave_shop_products.alias,
+							fave_shop_products.currency,
+							fave_shop_products.price,
+							UNIX_TIMESTAMP(`+"`fave_shop_products`.`datetime`"+`) AS datetime,
+							fave_shop_products.active,
+							fave_shop_products.parent_id,
 							spp.name AS pname,
 							spp.name AS pname,
-							shop_products.price_old,
-							shop_products.quantity,
-							shop_products.price_promo
+							fave_shop_products.price_old,
+							fave_shop_products.quantity,
+							fave_shop_products.price_promo
 						FROM
 						FROM
-							shop_products
-							LEFT JOIN shop_products AS spp ON spp.id = shop_products.parent_id
+							fave_shop_products
+							LEFT JOIN fave_shop_products AS spp ON spp.id = fave_shop_products.parent_id
 						ORDER BY
 						ORDER BY
-							shop_products.id DESC
+							fave_shop_products.id DESC
 						LIMIT ?, ?;`,
 						LIMIT ?, ?;`,
 						limit_offset,
 						limit_offset,
 						pear_page,
 						pear_page,
@@ -788,7 +788,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"shop_cats",
+				"fave_shop_cats",
 				"id",
 				"id",
 				"ASC",
 				"ASC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -852,8 +852,8 @@ func (this *Modules) RegisterModule_Shop() *Module {
 							node.alias,
 							node.alias,
 							(COUNT(parent.id) - 1) AS depth
 							(COUNT(parent.id) - 1) AS depth
 						FROM
 						FROM
-							shop_cats AS node,
-							shop_cats AS parent
+							fave_shop_cats AS node,
+							fave_shop_cats AS parent
 						WHERE
 						WHERE
 							node.lft BETWEEN parent.lft AND parent.rgt AND
 							node.lft BETWEEN parent.lft AND parent.rgt AND
 							node.id > 1
 							node.id > 1
@@ -873,7 +873,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"shop_filters",
+				"fave_shop_filters",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -920,7 +920,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"shop_currencies",
+				"fave_shop_currencies",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -978,7 +978,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"shop_orders",
+				"fave_shop_orders",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -1093,37 +1093,37 @@ func (this *Modules) RegisterModule_Shop() *Module {
 					return wrap.DB.Query(
 					return wrap.DB.Query(
 						wrap.R.Context(),
 						wrap.R.Context(),
 						`SELECT
 						`SELECT
-							shop_orders.id,
-							shop_orders.client_phone,
-							shop_orders.update_datetime,
-							shop_orders.currency_id,
-							shop_orders.currency_name,
-							shop_orders.currency_coefficient,
-							shop_orders.currency_code,
-							shop_orders.currency_symbol,
-							shop_orders.client_last_name,
-							shop_orders.client_first_name,
-							shop_orders.client_middle_name,
-							UNIX_TIMESTAMP(shop_orders.create_datetime) as create_datetime,
-							shop_orders.client_email,
-							shop_orders.client_delivery_comment,
-							shop_orders.client_order_comment,
-							shop_orders.status,
-							shop_order_total.total
+							fave_shop_orders.id,
+							fave_shop_orders.client_phone,
+							fave_shop_orders.update_datetime,
+							fave_shop_orders.currency_id,
+							fave_shop_orders.currency_name,
+							fave_shop_orders.currency_coefficient,
+							fave_shop_orders.currency_code,
+							fave_shop_orders.currency_symbol,
+							fave_shop_orders.client_last_name,
+							fave_shop_orders.client_first_name,
+							fave_shop_orders.client_middle_name,
+							UNIX_TIMESTAMP(fave_shop_orders.create_datetime) as create_datetime,
+							fave_shop_orders.client_email,
+							fave_shop_orders.client_delivery_comment,
+							fave_shop_orders.client_order_comment,
+							fave_shop_orders.status,
+							fave_shop_order_total.total
 						FROM
 						FROM
-							shop_orders
+							fave_shop_orders
 							LEFT JOIN (
 							LEFT JOIN (
 								SELECT
 								SELECT
 									order_id,
 									order_id,
 									SUM(price * quantity) as total
 									SUM(price * quantity) as total
 								FROM
 								FROM
-									shop_order_products
+									fave_shop_order_products
 								GROUP BY
 								GROUP BY
 									order_id
 									order_id
-							) as shop_order_total ON shop_order_total.order_id = shop_orders.id
+							) as shop_order_total ON shop_order_total.order_id = fave_shop_orders.id
 						ORDER BY
 						ORDER BY
-							shop_orders.status ASC,
-							shop_orders.id DESC
+							fave_shop_orders.status ASC,
+							fave_shop_orders.id DESC
 						LIMIT ?, ?;`,
 						LIMIT ?, ?;`,
 						limit_offset,
 						limit_offset,
 						pear_page,
 						pear_page,
@@ -1195,7 +1195,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 						custom1,
 						custom1,
 						custom2
 						custom2
 					FROM
 					FROM
-						shop_products
+						fave_shop_products
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,
@@ -1232,7 +1232,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			// All product current categories
 			// All product current categories
 			var selids []int
 			var selids []int
 			if data.A_id > 0 {
 			if data.A_id > 0 {
-				rows, err := wrap.DB.Query(wrap.R.Context(), "SELECT category_id FROM shop_cat_product_rel WHERE product_id = ?;", data.A_id)
+				rows, err := wrap.DB.Query(wrap.R.Context(), "SELECT category_id FROM fave_shop_cat_product_rel WHERE product_id = ?;", data.A_id)
 				if err == nil {
 				if err == nil {
 					defer rows.Close()
 					defer rows.Close()
 					values := make([]int, 1)
 					values := make([]int, 1)
@@ -1656,7 +1656,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 						lft,
 						lft,
 						rgt
 						rgt
 					FROM
 					FROM
-						shop_cats
+						fave_shop_cats
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,
@@ -1780,7 +1780,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 						name,
 						name,
 						filter
 						filter
 					FROM
 					FROM
-						shop_filters
+						fave_shop_filters
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,
@@ -1901,7 +1901,7 @@ func (this *Modules) RegisterModule_Shop() *Module {
 						code,
 						code,
 						symbol
 						symbol
 					FROM
 					FROM
-						shop_currencies
+						fave_shop_currencies
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,
@@ -2025,36 +2025,36 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			err := wrap.DB.QueryRow(
 			err := wrap.DB.QueryRow(
 				wrap.R.Context(),
 				wrap.R.Context(),
 				`SELECT
 				`SELECT
-					shop_orders.id,
-					shop_orders.client_phone,
-					shop_orders.update_datetime,
-					shop_orders.currency_id,
-					shop_orders.currency_name,
-					shop_orders.currency_coefficient,
-					shop_orders.currency_code,
-					shop_orders.currency_symbol,
-					shop_orders.client_last_name,
-					shop_orders.client_first_name,
-					shop_orders.client_middle_name,
-					UNIX_TIMESTAMP(shop_orders.create_datetime) as create_datetime,
-					shop_orders.client_email,
-					shop_orders.client_delivery_comment,
-					shop_orders.client_order_comment,
-					shop_orders.status,
+					fave_shop_orders.id,
+					fave_shop_orders.client_phone,
+					fave_shop_orders.update_datetime,
+					fave_shop_orders.currency_id,
+					fave_shop_orders.currency_name,
+					fave_shop_orders.currency_coefficient,
+					fave_shop_orders.currency_code,
+					fave_shop_orders.currency_symbol,
+					fave_shop_orders.client_last_name,
+					fave_shop_orders.client_first_name,
+					fave_shop_orders.client_middle_name,
+					UNIX_TIMESTAMP(fave_shop_orders.create_datetime) as create_datetime,
+					fave_shop_orders.client_email,
+					fave_shop_orders.client_delivery_comment,
+					fave_shop_orders.client_order_comment,
+					fave_shop_orders.status,
 					shop_order_total.total
 					shop_order_total.total
 				FROM
 				FROM
-					shop_orders
+					fave_shop_orders
 					LEFT JOIN (
 					LEFT JOIN (
 						SELECT
 						SELECT
 							order_id,
 							order_id,
 							SUM(price * quantity) as total
 							SUM(price * quantity) as total
 						FROM
 						FROM
-							shop_order_products
+							fave_shop_order_products
 						GROUP BY
 						GROUP BY
 							order_id
 							order_id
-					) as shop_order_total ON shop_order_total.order_id = shop_orders.id
+					) as shop_order_total ON shop_order_total.order_id = fave_shop_orders.id
 				WHERE
 				WHERE
-					shop_orders.id = ?
+					fave_shop_orders.id = ?
 				LIMIT 1;`,
 				LIMIT 1;`,
 				utils.StrToInt(wrap.UrlArgs[2]),
 				utils.StrToInt(wrap.UrlArgs[2]),
 			).Scan(
 			).Scan(
@@ -2157,17 +2157,17 @@ func (this *Modules) RegisterModule_Shop() *Module {
 			rows, err := wrap.DB.Query(
 			rows, err := wrap.DB.Query(
 				wrap.R.Context(),
 				wrap.R.Context(),
 				`SELECT
 				`SELECT
-					shop_order_products.product_id,
-					shop_products.name,
-					shop_products.alias,
-					shop_order_products.price,
-					shop_order_products.quantity,
-					(shop_order_products.price * shop_order_products.quantity) as total
+					fave_shop_order_products.product_id,
+					fave_shop_products.name,
+					fave_shop_products.alias,
+					fave_shop_order_products.price,
+					fave_shop_order_products.quantity,
+					(fave_shop_order_products.price * fave_shop_order_products.quantity) as total
 				FROM
 				FROM
-					shop_order_products
-					LEFT JOIN shop_products ON shop_products.id = shop_order_products.product_id
+					fave_shop_order_products
+					LEFT JOIN fave_shop_products ON fave_shop_products.id = fave_shop_order_products.product_id
 				WHERE
 				WHERE
-					shop_order_products.order_id = ?
+					fave_shop_order_products.order_id = ?
 				;`,
 				;`,
 				curr_order_id,
 				curr_order_id,
 			)
 			)

+ 1 - 1
modules/module_shop_act_attach_product_search.go

@@ -34,7 +34,7 @@ func (this *Modules) shop_GetProductsListForAttaching(wrap *wrapper.Wrapper, nam
 			id,
 			id,
 			name
 			name
 		FROM
 		FROM
-			shop_products
+			fave_shop_products
 		WHERE
 		WHERE
 			id <> ? AND
 			id <> ? AND
 			parent_id IS NULL
 			parent_id IS NULL

+ 3 - 3
modules/module_shop_act_attach_product_to.go

@@ -27,7 +27,7 @@ func (this *Modules) RegisterAction_ShopAttachProductTo() *Action {
 			var count int
 			var count int
 			if err := tx.QueryRow(
 			if err := tx.QueryRow(
 				ctx,
 				ctx,
-				"SELECT COUNT(*) FROM `shop_products` WHERE `id` = ? AND `parent_id` IS NULL;",
+				"SELECT COUNT(*) FROM `fave_shop_products` WHERE `id` = ? AND `parent_id` IS NULL;",
 				utils.StrToInt(pf_parent_id),
 				utils.StrToInt(pf_parent_id),
 			).Scan(&count); err != nil {
 			).Scan(&count); err != nil {
 				return err
 				return err
@@ -39,7 +39,7 @@ func (this *Modules) RegisterAction_ShopAttachProductTo() *Action {
 			// Check child
 			// Check child
 			if err := tx.QueryRow(
 			if err := tx.QueryRow(
 				ctx,
 				ctx,
-				"SELECT COUNT(*) FROM `shop_products` WHERE `parent_id` = ?;",
+				"SELECT COUNT(*) FROM `fave_shop_products` WHERE `parent_id` = ?;",
 				utils.StrToInt(pf_product_id),
 				utils.StrToInt(pf_product_id),
 			).Scan(&count); err != nil {
 			).Scan(&count); err != nil {
 				return err
 				return err
@@ -51,7 +51,7 @@ func (this *Modules) RegisterAction_ShopAttachProductTo() *Action {
 			// Attach
 			// Attach
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`UPDATE shop_products SET
+				`UPDATE fave_shop_products SET
 					parent_id = ?
 					parent_id = ?
 				WHERE
 				WHERE
 					id = ? AND
 					id = ? AND

+ 8 - 8
modules/module_shop_act_delete.go

@@ -22,32 +22,32 @@ func (this *Modules) RegisterAction_ShopDelete() *Action {
 
 
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_cat_product_rel WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_cat_product_rel WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_filter_product_values WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_filter_product_values WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_product_images WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_product_images WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Delete product attached images
 			// Delete product attached images
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_product_images WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_product_images WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Delete target product with category connection data
 			// Delete target product with category connection data
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_filter_product_values WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_filter_product_values WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_cat_product_rel WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_cat_product_rel WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_products WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_products WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 			return nil
 			return nil

+ 1 - 1
modules/module_shop_act_detach.go

@@ -23,7 +23,7 @@ func (this *Modules) RegisterAction_ShopDetach() *Action {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`UPDATE shop_products SET
+				`UPDATE fave_shop_products SET
 					parent_id = NULL,
 					parent_id = NULL,
 					active = 0
 					active = 0
 				WHERE
 				WHERE

+ 10 - 10
modules/module_shop_act_duplicate.go

@@ -25,13 +25,13 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 		var lastID int64 = 0
 		var lastID int64 = 0
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_cat_product_rel WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_cat_product_rel WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_filter_product_values WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_filter_product_values WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
@@ -43,7 +43,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 			// Duplicate product
 			// Duplicate product
 			res, err := tx.Exec(
 			res, err := tx.Exec(
 				ctx,
 				ctx,
-				`INSERT INTO shop_products (
+				`INSERT INTO fave_shop_products (
 					parent_id,
 					parent_id,
 					user,
 					user,
 					currency,
 					currency,
@@ -74,7 +74,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 					'`+utils.UnixTimestampToMySqlDateTime(utils.GetCurrentUnixTimestamp())+`',
 					'`+utils.UnixTimestampToMySqlDateTime(utils.GetCurrentUnixTimestamp())+`',
 					0
 					0
 				FROM
 				FROM
-					shop_products
+					fave_shop_products
 				WHERE
 				WHERE
 					id = ?
 					id = ?
 				;`,
 				;`,
@@ -91,7 +91,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 			}
 			}
 
 
 			// Block new product row
 			// Block new product row
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", lastID); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", lastID); err != nil {
 				return err
 				return err
 			}
 			}
 
 
@@ -103,7 +103,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 					product_id,
 					product_id,
 					category_id
 					category_id
 				FROM
 				FROM
-					shop_cat_product_rel
+					fave_shop_cat_product_rel
 				WHERE
 				WHERE
 					product_id = ?
 					product_id = ?
 				;`,
 				;`,
@@ -115,7 +115,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 					var category_id int
 					var category_id int
 					if err := cat_rows.Scan(&product_id, &category_id); *wrap.LogCpError(&err) == nil {
 					if err := cat_rows.Scan(&product_id, &category_id); *wrap.LogCpError(&err) == nil {
 						cat_sqls = append(cat_sqls, `
 						cat_sqls = append(cat_sqls, `
-							INSERT INTO shop_cat_product_rel SET
+							INSERT INTO fave_shop_cat_product_rel SET
 								product_id = `+utils.Int64ToStr(lastID)+`,
 								product_id = `+utils.Int64ToStr(lastID)+`,
 								category_id = `+utils.IntToStr(category_id)+`
 								category_id = `+utils.IntToStr(category_id)+`
 							;
 							;
@@ -135,7 +135,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 					product_id,
 					product_id,
 					filter_value_id
 					filter_value_id
 				FROM
 				FROM
-					shop_filter_product_values
+					fave_shop_filter_product_values
 				WHERE
 				WHERE
 					product_id = ?
 					product_id = ?
 				;`,
 				;`,
@@ -147,7 +147,7 @@ func (this *Modules) RegisterAction_ShopDuplicate() *Action {
 					var filter_value_id int
 					var filter_value_id int
 					if err := attributes_rows.Scan(&product_id, &filter_value_id); *wrap.LogCpError(&err) == nil {
 					if err := attributes_rows.Scan(&product_id, &filter_value_id); *wrap.LogCpError(&err) == nil {
 						attributes_sqls = append(attributes_sqls, `
 						attributes_sqls = append(attributes_sqls, `
-							INSERT INTO shop_filter_product_values SET
+							INSERT INTO fave_shop_filter_product_values SET
 								product_id = `+utils.Int64ToStr(lastID)+`,
 								product_id = `+utils.Int64ToStr(lastID)+`,
 								filter_value_id = `+utils.IntToStr(filter_value_id)+`
 								filter_value_id = `+utils.IntToStr(filter_value_id)+`
 							;
 							;

+ 1 - 1
modules/module_shop_act_get_attribute_values.go

@@ -27,7 +27,7 @@ func (this *Modules) RegisterAction_ShopGetAttributeValues() *Action {
 				id,
 				id,
 				name
 				name
 			FROM
 			FROM
-				shop_filters_values
+				fave_shop_filters_values
 			WHERE
 			WHERE
 				filter_id = ?
 				filter_id = ?
 			ORDER BY
 			ORDER BY

+ 1 - 1
modules/module_shop_act_images_reorder.go

@@ -34,7 +34,7 @@ func (this *Modules) RegisterAction_ShopImagesReorder() *Action {
 		if len(orders.Items) > 0 {
 		if len(orders.Items) > 0 {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				for _, value := range orders.Items {
 				for _, value := range orders.Items {
-					if _, err := tx.Exec(ctx, "UPDATE shop_product_images SET ord = ? WHERE id = ?;", value.Order, value.Id); err != nil {
+					if _, err := tx.Exec(ctx, "UPDATE fave_shop_product_images SET ord = ? WHERE id = ?;", value.Order, value.Id); err != nil {
 						return err
 						return err
 					}
 					}
 				}
 				}

+ 17 - 17
modules/module_shop_act_modify.go

@@ -108,7 +108,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				// Insert row
 				// Insert row
 				res, err := tx.Exec(
 				res, err := tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO shop_products SET
+					`INSERT INTO fave_shop_products SET
 						user = ?,
 						user = ?,
 						currency = ?,
 						currency = ?,
 						price = ?,
 						price = ?,
@@ -156,7 +156,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				}
 				}
 
 
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", lastID); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", lastID); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -169,7 +169,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 						`SELECT
 						`SELECT
 							COUNT(*)
 							COUNT(*)
 						FROM
 						FROM
-							shop_cats
+							fave_shop_cats
 						WHERE
 						WHERE
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 						FOR UPDATE;`,
 						FOR UPDATE;`,
@@ -188,7 +188,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 					}
 					}
 					if _, err = tx.Exec(
 					if _, err = tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO shop_cat_product_rel (product_id,category_id) VALUES `+strings.Join(bulkInsertArr, ",")+`;`,
+						`INSERT INTO fave_shop_cat_product_rel (product_id,category_id) VALUES `+strings.Join(bulkInsertArr, ",")+`;`,
 					); err != nil {
 					); err != nil {
 						return err
 						return err
 					}
 					}
@@ -198,7 +198,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				for vid, _ := range filter_values {
 				for vid, _ := range filter_values {
 					if _, err = tx.Exec(
 					if _, err = tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO shop_filter_product_values SET
+						`INSERT INTO fave_shop_filter_product_values SET
 							product_id = ?,
 							product_id = ?,
 							filter_value_id = ?
 							filter_value_id = ?
 						;`,
 						;`,
@@ -222,23 +222,23 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 		} else {
 		} else {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_currencies WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_currency)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_currencies WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_currency)); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_cat_product_rel WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_cat_product_rel WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_filter_product_values WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_filter_product_values WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
 				// Update row
 				// Update row
 				if _, err := tx.Exec(
 				if _, err := tx.Exec(
 					ctx,
 					ctx,
-					`UPDATE shop_products SET
+					`UPDATE fave_shop_products SET
 						currency = ?,
 						currency = ?,
 						price = ?,
 						price = ?,
 						price_old = ?,
 						price_old = ?,
@@ -277,7 +277,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				if _, ok := wrap.R.Form["custom1"]; ok {
 				if _, ok := wrap.R.Form["custom1"]; ok {
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`UPDATE shop_products SET
+						`UPDATE fave_shop_products SET
 							custom1 = ?
 							custom1 = ?
 						WHERE
 						WHERE
 							id = ?
 							id = ?
@@ -293,7 +293,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				if _, ok := wrap.R.Form["custom2"]; ok {
 				if _, ok := wrap.R.Form["custom2"]; ok {
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`UPDATE shop_products SET
+						`UPDATE fave_shop_products SET
 							custom2 = ?
 							custom2 = ?
 						WHERE
 						WHERE
 							id = ?
 							id = ?
@@ -306,7 +306,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				}
 				}
 
 
 				// Delete product and categories relations
 				// Delete product and categories relations
-				if _, err := tx.Exec(ctx, "DELETE FROM shop_cat_product_rel WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_cat_product_rel WHERE product_id = ?;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -319,7 +319,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 						`SELECT
 						`SELECT
 							COUNT(*)
 							COUNT(*)
 						FROM
 						FROM
-							shop_cats
+							fave_shop_cats
 						WHERE
 						WHERE
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 							id IN(`+strings.Join(utils.ArrayOfIntToArrayOfString(catids), ",")+`)
 						FOR UPDATE;`,
 						FOR UPDATE;`,
@@ -338,7 +338,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 					}
 					}
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO shop_cat_product_rel (product_id,category_id) VALUES `+strings.Join(bulkInsertArr, ",")+`;`,
+						`INSERT INTO fave_shop_cat_product_rel (product_id,category_id) VALUES `+strings.Join(bulkInsertArr, ",")+`;`,
 					); err != nil {
 					); err != nil {
 						return err
 						return err
 					}
 					}
@@ -347,7 +347,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				// Delete product and filter values relations
 				// Delete product and filter values relations
 				if _, err := tx.Exec(
 				if _, err := tx.Exec(
 					ctx,
 					ctx,
-					`DELETE FROM shop_filter_product_values WHERE product_id = ?;`,
+					`DELETE FROM fave_shop_filter_product_values WHERE product_id = ?;`,
 					utils.StrToInt(pf_id),
 					utils.StrToInt(pf_id),
 				); err != nil {
 				); err != nil {
 					return err
 					return err
@@ -357,7 +357,7 @@ func (this *Modules) RegisterAction_ShopModify() *Action {
 				for vid, _ := range filter_values {
 				for vid, _ := range filter_values {
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO shop_filter_product_values SET
+						`INSERT INTO fave_shop_filter_product_values SET
 							product_id = ?,
 							product_id = ?,
 							filter_value_id = ?
 							filter_value_id = ?
 						;`,
 						;`,

+ 2 - 2
modules/module_shop_act_order.go

@@ -103,7 +103,7 @@ func (this *Modules) RegisterAction_ShopOrder() *Action {
 			// Insert row
 			// Insert row
 			res, err := tx.Exec(
 			res, err := tx.Exec(
 				ctx,
 				ctx,
-				`INSERT INTO shop_orders SET
+				`INSERT INTO fave_shop_orders SET
 					create_datetime = ?,
 					create_datetime = ?,
 					update_datetime = ?,
 					update_datetime = ?,
 					currency_id = ?,
 					currency_id = ?,
@@ -150,7 +150,7 @@ func (this *Modules) RegisterAction_ShopOrder() *Action {
 			for _, product := range *(*bdata).Products {
 			for _, product := range *(*bdata).Products {
 				if _, err = tx.Exec(
 				if _, err = tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO shop_order_products (id, order_id, product_id, price, quantity) VALUES (NULL, ?, ?, ?, ?);`,
+					`INSERT INTO fave_shop_order_products (id, order_id, product_id, price, quantity) VALUES (NULL, ?, ?, ?, ?);`,
 					lastID, product.A_product_id, product.A_price, product.A_quantity,
 					lastID, product.A_product_id, product.A_price, product.A_quantity,
 				); err != nil {
 				); err != nil {
 					return err
 					return err

+ 1 - 1
modules/module_shop_act_order_set_status.go

@@ -34,7 +34,7 @@ func (this *Modules) RegisterAction_ShopOrderSetStatus() *Action {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`UPDATE shop_orders SET
+				`UPDATE fave_shop_orders SET
 					status = ?
 					status = ?
 				WHERE
 				WHERE
 					id = ?
 					id = ?

+ 3 - 3
modules/module_shop_act_upload_delete.go

@@ -29,15 +29,15 @@ func (this *Modules) RegisterAction_ShopUploadDelete() *Action {
 
 
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT product_id FROM shop_product_images WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT product_id FROM fave_shop_product_images WHERE product_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Delete row
 			// Delete row
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_product_images WHERE product_id = ? AND filename = ?;", utils.StrToInt(pf_id), pf_file); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_product_images WHERE product_id = ? AND filename = ?;", utils.StrToInt(pf_id), pf_file); err != nil {
 				return err
 				return err
 			}
 			}
 
 

+ 2 - 2
modules/module_shop_act_upload_image.go

@@ -55,14 +55,14 @@ func (this *Modules) RegisterAction_ShopUploadImage() *Action {
 								var lastID int64 = 0
 								var lastID int64 = 0
 								if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 								if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 									// Block rows
 									// Block rows
-									if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+									if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 										return err
 										return err
 									}
 									}
 
 
 									// Insert row
 									// Insert row
 									res, err := tx.Exec(
 									res, err := tx.Exec(
 										ctx,
 										ctx,
-										`INSERT INTO shop_product_images SET
+										`INSERT INTO fave_shop_product_images SET
 											product_id = ?,
 											product_id = ?,
 											filename = ?,
 											filename = ?,
 											ord = ?
 											ord = ?

+ 14 - 14
modules/module_shop_attributes_act_delete.go

@@ -22,22 +22,22 @@ func (this *Modules) RegisterAction_ShopAttributesDelete() *Action {
 
 
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_filters WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_filters WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_filters_values WHERE filter_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_filters_values WHERE filter_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
 				`SELECT
 				`SELECT
-					shop_filter_product_values.product_id
+					fave_shop_filter_product_values.product_id
 				FROM
 				FROM
-					shop_filter_product_values
-					LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id
+					fave_shop_filter_product_values
+					LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id
 				WHERE
 				WHERE
-					shop_filters_values.id IS NOT NULL AND
-					shop_filters_values.filter_id = ?
+					fave_shop_filters_values.id IS NOT NULL AND
+					fave_shop_filters_values.filter_id = ?
 				FOR UPDATE;`,
 				FOR UPDATE;`,
 				utils.StrToInt(pf_id),
 				utils.StrToInt(pf_id),
 			); err != nil {
 			); err != nil {
@@ -48,13 +48,13 @@ func (this *Modules) RegisterAction_ShopAttributesDelete() *Action {
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
 				`DELETE
 				`DELETE
-					shop_filter_product_values
+					fave_shop_filter_product_values
 				FROM
 				FROM
-					shop_filter_product_values
-					LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id
+					fave_shop_filter_product_values
+					LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id
 				WHERE
 				WHERE
-					shop_filters_values.id IS NOT NULL AND
-					shop_filters_values.filter_id = ?
+					fave_shop_filters_values.id IS NOT NULL AND
+					fave_shop_filters_values.filter_id = ?
 				;`,
 				;`,
 				utils.StrToInt(pf_id),
 				utils.StrToInt(pf_id),
 			); err != nil {
 			); err != nil {
@@ -62,14 +62,14 @@ func (this *Modules) RegisterAction_ShopAttributesDelete() *Action {
 			}
 			}
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`DELETE FROM shop_filters_values WHERE filter_id = ?;`,
+				`DELETE FROM fave_shop_filters_values WHERE filter_id = ?;`,
 				utils.StrToInt(pf_id),
 				utils.StrToInt(pf_id),
 			); err != nil {
 			); err != nil {
 				return err
 				return err
 			}
 			}
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`DELETE FROM shop_filters WHERE id = ?;`,
+				`DELETE FROM fave_shop_filters WHERE id = ?;`,
 				utils.StrToInt(pf_id),
 				utils.StrToInt(pf_id),
 			); err != nil {
 			); err != nil {
 				return err
 				return err

+ 26 - 26
modules/module_shop_attributes_act_modify.go

@@ -51,7 +51,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 				// Insert row
 				// Insert row
 				res, err := tx.Exec(
 				res, err := tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO shop_filters SET
+					`INSERT INTO fave_shop_filters SET
 						name = ?,
 						name = ?,
 						filter = ?
 						filter = ?
 					;`,
 					;`,
@@ -69,7 +69,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 				}
 				}
 
 
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_filters WHERE id = ? FOR UPDATE;", lastID); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_filters WHERE id = ? FOR UPDATE;", lastID); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -77,7 +77,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 				for vname, _ := range filter_values {
 				for vname, _ := range filter_values {
 					if _, err = tx.Exec(
 					if _, err = tx.Exec(
 						ctx,
 						ctx,
-						`INSERT INTO shop_filters_values SET
+						`INSERT INTO fave_shop_filters_values SET
 							filter_id = ?,
 							filter_id = ?,
 							name = ?
 							name = ?
 						;`,
 						;`,
@@ -101,22 +101,22 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 		} else {
 		} else {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_filters WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_filters WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_filters_values WHERE filter_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_filters_values WHERE filter_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
 				if _, err := tx.Exec(
 				if _, err := tx.Exec(
 					ctx,
 					ctx,
 					`SELECT
 					`SELECT
-						shop_filter_product_values.product_id
+						fave_shop_filter_product_values.product_id
 					FROM
 					FROM
-						shop_filter_product_values
-						LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id
+						fave_shop_filter_product_values
+						LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id
 					WHERE
 					WHERE
-						shop_filters_values.id IS NOT NULL AND
-						shop_filters_values.filter_id = ?
+						fave_shop_filters_values.id IS NOT NULL AND
+						fave_shop_filters_values.filter_id = ?
 					FOR UPDATE;`,
 					FOR UPDATE;`,
 					utils.StrToInt(pf_id),
 					utils.StrToInt(pf_id),
 				); err != nil {
 				); err != nil {
@@ -126,7 +126,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 				// Update row
 				// Update row
 				if _, err := tx.Exec(
 				if _, err := tx.Exec(
 					ctx,
 					ctx,
-					`UPDATE shop_filters SET
+					`UPDATE fave_shop_filters SET
 						name = ?,
 						name = ?,
 						filter = ?
 						filter = ?
 					WHERE
 					WHERE
@@ -150,14 +150,14 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
 						`DELETE
 						`DELETE
-							shop_filter_product_values
+							fave_shop_filter_product_values
 						FROM
 						FROM
-							shop_filter_product_values
-							LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id
+							fave_shop_filter_product_values
+							LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id
 						WHERE
 						WHERE
-							shop_filters_values.id IS NOT NULL AND
-							shop_filters_values.filter_id = ? AND
-							shop_filter_product_values.filter_value_id NOT IN (`+strings.Join(ignore_ids, ",")+`)
+							fave_shop_filters_values.id IS NOT NULL AND
+							fave_shop_filters_values.filter_id = ? AND
+							fave_shop_filter_product_values.filter_value_id NOT IN (`+strings.Join(ignore_ids, ",")+`)
 						;`,
 						;`,
 						utils.StrToInt(pf_id),
 						utils.StrToInt(pf_id),
 					); err != nil {
 					); err != nil {
@@ -165,7 +165,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 					}
 					}
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`DELETE FROM shop_filters_values WHERE filter_id = ? AND id NOT IN (`+strings.Join(ignore_ids, ",")+`);`,
+						`DELETE FROM fave_shop_filters_values WHERE filter_id = ? AND id NOT IN (`+strings.Join(ignore_ids, ",")+`);`,
 						utils.StrToInt(pf_id),
 						utils.StrToInt(pf_id),
 					); err != nil {
 					); err != nil {
 						return err
 						return err
@@ -174,13 +174,13 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
 						`DELETE
 						`DELETE
-							shop_filter_product_values
+							fave_shop_filter_product_values
 						FROM
 						FROM
-							shop_filter_product_values
-							LEFT JOIN shop_filters_values ON shop_filters_values.id = shop_filter_product_values.filter_value_id
+							fave_shop_filter_product_values
+							LEFT JOIN fave_shop_filters_values ON fave_shop_filters_values.id = fave_shop_filter_product_values.filter_value_id
 						WHERE
 						WHERE
-							shop_filters_values.id IS NOT NULL AND
-							shop_filters_values.filter_id = ?
+							fave_shop_filters_values.id IS NOT NULL AND
+							fave_shop_filters_values.filter_id = ?
 						;`,
 						;`,
 						utils.StrToInt(pf_id),
 						utils.StrToInt(pf_id),
 					); err != nil {
 					); err != nil {
@@ -188,7 +188,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 					}
 					}
 					if _, err := tx.Exec(
 					if _, err := tx.Exec(
 						ctx,
 						ctx,
-						`DELETE FROM shop_filters_values WHERE filter_id = ?;`,
+						`DELETE FROM fave_shop_filters_values WHERE filter_id = ?;`,
 						utils.StrToInt(pf_id),
 						utils.StrToInt(pf_id),
 					); err != nil {
 					); err != nil {
 						return err
 						return err
@@ -200,7 +200,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 					if vid == 0 {
 					if vid == 0 {
 						if _, err := tx.Exec(
 						if _, err := tx.Exec(
 							ctx,
 							ctx,
-							`INSERT INTO shop_filters_values SET
+							`INSERT INTO fave_shop_filters_values SET
 								filter_id = ?,
 								filter_id = ?,
 								name = ?
 								name = ?
 							;`,
 							;`,
@@ -212,7 +212,7 @@ func (this *Modules) RegisterAction_ShopAttributesModify() *Action {
 					} else {
 					} else {
 						if _, err := tx.Exec(
 						if _, err := tx.Exec(
 							ctx,
 							ctx,
-							`UPDATE shop_filters_values SET
+							`UPDATE fave_shop_filters_values SET
 								name = ?
 								name = ?
 							WHERE
 							WHERE
 								id = ? AND
 								id = ? AND

+ 4 - 4
modules/module_shop_categories.go

@@ -19,8 +19,8 @@ func (this *Modules) shop_GetCategorySelectOptions(wrap *wrapper.Wrapper, id int
 			node.alias,
 			node.alias,
 			(COUNT(parent.id) - 1) AS depth
 			(COUNT(parent.id) - 1) AS depth
 		FROM
 		FROM
-			shop_cats AS node,
-			shop_cats AS parent
+			fave_shop_cats AS node,
+			fave_shop_cats AS parent
 		WHERE
 		WHERE
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.id > 1
 			node.id > 1
@@ -72,8 +72,8 @@ func (this *Modules) shop_GetCategoryParentId(wrap *wrapper.Wrapper, id int) int
 		`SELECT
 		`SELECT
 			parent.id
 			parent.id
 		FROM
 		FROM
-			shop_cats AS node,
-			shop_cats AS parent
+			fave_shop_cats AS node,
+			fave_shop_cats AS parent
 		WHERE
 		WHERE
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.lft BETWEEN parent.lft AND parent.rgt AND
 			node.id = ? AND
 			node.id = ? AND

+ 10 - 10
modules/module_shop_categories_act_delete.go

@@ -22,38 +22,38 @@ func (this *Modules) RegisterAction_ShopCategoriesDelete() *Action {
 
 
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_cats FOR UPDATE;"); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_cats FOR UPDATE;"); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT category_id FROM shop_cat_product_rel WHERE category_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT category_id FROM fave_shop_cat_product_rel WHERE category_id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT id FROM shop_products WHERE category = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_products WHERE category = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Set root category
 			// Set root category
-			if _, err := tx.Exec(ctx, "UPDATE shop_products SET category = 1 WHERE category = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_shop_products SET category = 1 WHERE category = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Process
 			// Process
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_cat_product_rel WHERE category_id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_cat_product_rel WHERE category_id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT @ml := lft, @mr := rgt FROM shop_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT @ml := lft, @mr := rgt FROM fave_shop_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "DELETE FROM shop_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_shop_cats WHERE id = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = lft - 1, rgt = rgt - 1 WHERE lft > @ml AND rgt < @mr;"); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = lft - 1, rgt = rgt - 1 WHERE lft > @ml AND rgt < @mr;"); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = lft - 2 WHERE lft > @mr;"); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = lft - 2 WHERE lft > @mr;"); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE shop_cats SET rgt = rgt - 2 WHERE rgt > @mr;"); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET rgt = rgt - 2 WHERE rgt > @mr;"); err != nil {
 				return err
 				return err
 			}
 			}
 			return nil
 			return nil

+ 20 - 20
modules/module_shop_categories_act_modify.go

@@ -12,24 +12,24 @@ func (this *Modules) shop_ActionCategoryAdd(wrap *wrapper.Wrapper, pf_id, pf_nam
 	var lastID int64 = 0
 	var lastID int64 = 0
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		// Block rows
 		// Block rows
-		if _, err := tx.Exec(ctx, "SELECT id FROM shop_cats FOR UPDATE;"); err != nil {
+		if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_cats FOR UPDATE;"); err != nil {
 			return err
 			return err
 		}
 		}
 
 
 		// Process
 		// Process
-		if _, err := tx.Exec(ctx, "SELECT @mr := rgt FROM shop_cats WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
+		if _, err := tx.Exec(ctx, "SELECT @mr := rgt FROM fave_shop_cats WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
 			return err
 			return err
 		}
 		}
-		if _, err := tx.Exec(ctx, "UPDATE shop_cats SET rgt = rgt + 2 WHERE rgt > @mr;"); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET rgt = rgt + 2 WHERE rgt > @mr;"); err != nil {
 			return err
 			return err
 		}
 		}
-		if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = lft + 2 WHERE lft > @mr;"); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = lft + 2 WHERE lft > @mr;"); err != nil {
 			return err
 			return err
 		}
 		}
-		if _, err := tx.Exec(ctx, "UPDATE shop_cats SET rgt = rgt + 2 WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET rgt = rgt + 2 WHERE id = ?;", utils.StrToInt(pf_parent)); err != nil {
 			return err
 			return err
 		}
 		}
-		res, err := tx.Exec(ctx, "INSERT INTO shop_cats (id, user, name, alias, lft, rgt) VALUES (NULL, ?, ?, ?, @mr, @mr + 1);", wrap.User.A_id, pf_name, pf_alias)
+		res, err := tx.Exec(ctx, "INSERT INTO fave_shop_cats (id, user, name, alias, lft, rgt) VALUES (NULL, ?, ?, ?, @mr, @mr + 1);", wrap.User.A_id, pf_name, pf_alias)
 		if err != nil {
 		if err != nil {
 			return err
 			return err
 		}
 		}
@@ -50,7 +50,7 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 			// Process
 			// Process
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`UPDATE shop_cats SET
+				`UPDATE fave_shop_cats SET
 					name = ?,
 					name = ?,
 					alias = ?
 					alias = ?
 				WHERE
 				WHERE
@@ -72,25 +72,25 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 	// Parent is changed, move category to new parent
 	// Parent is changed, move category to new parent
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 	return wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		// Block all rows
 		// Block all rows
-		if _, err := tx.Exec(ctx, "SELECT id FROM shop_cats FOR UPDATE;"); err != nil {
+		if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_cats FOR UPDATE;"); err != nil {
 			return err
 			return err
 		}
 		}
 
 
 		var parentL int
 		var parentL int
 		var parentR int
 		var parentR int
-		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM shop_cats WHERE id = ?;`, utils.StrToInt(pf_parent)).Scan(&parentL, &parentR); *wrap.LogCpError(&err) != nil {
+		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM fave_shop_cats WHERE id = ?;`, utils.StrToInt(pf_parent)).Scan(&parentL, &parentR); *wrap.LogCpError(&err) != nil {
 			return err
 			return err
 		}
 		}
 
 
 		var targetL int
 		var targetL int
 		var targetR int
 		var targetR int
-		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM shop_cats WHERE id = ?;`, utils.StrToInt(pf_id)).Scan(&targetL, &targetR); *wrap.LogCpError(&err) != nil {
+		if err := tx.QueryRow(ctx, `SELECT lft, rgt FROM fave_shop_cats WHERE id = ?;`, utils.StrToInt(pf_id)).Scan(&targetL, &targetR); *wrap.LogCpError(&err) != nil {
 			return err
 			return err
 		}
 		}
 
 
 		if !(targetL < parentL && targetR > parentR) {
 		if !(targetL < parentL && targetR > parentR) {
 			// Select data
 			// Select data
-			rows, err := tx.Query(ctx, "SELECT id, lft, rgt FROM shop_cats WHERE lft >= ? and rgt <= ? ORDER BY lft ASC", targetL, targetR)
+			rows, err := tx.Query(ctx, "SELECT id, lft, rgt FROM fave_shop_cats WHERE lft >= ? and rgt <= ? ORDER BY lft ASC", targetL, targetR)
 			if err != nil {
 			if err != nil {
 				return err
 				return err
 			}
 			}
@@ -113,13 +113,13 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				// From right to left
 				// From right to left
 				// Shift
 				// Shift
 				step := targetR - targetL + 1
 				step := targetR - targetL + 1
-				if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = lft + ? WHERE lft > ? and lft < ?;", step, parentR, targetL); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = lft + ? WHERE lft > ? and lft < ?;", step, parentR, targetL); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "UPDATE shop_cats SET rgt = rgt + ? WHERE rgt > ? and rgt < ?;", step, parentR, targetL); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET rgt = rgt + ? WHERE rgt > ? and rgt < ?;", step, parentR, targetL); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "UPDATE shop_cats SET rgt = rgt + ? WHERE id = ?;", step, utils.StrToInt(pf_parent)); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET rgt = rgt + ? WHERE id = ?;", step, utils.StrToInt(pf_parent)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -127,7 +127,7 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				for i, _ := range rows_id {
 				for i, _ := range rows_id {
 					new_lft := rows_lft[i] - (targetL - parentR)
 					new_lft := rows_lft[i] - (targetL - parentR)
 					new_rgt := rows_rgt[i] - (targetL - parentR)
 					new_rgt := rows_rgt[i] - (targetL - parentR)
-					if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
+					if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
 						return err
 						return err
 					}
 					}
 				}
 				}
@@ -135,10 +135,10 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				// From left to right
 				// From left to right
 				// Shift
 				// Shift
 				step := targetR - targetL + 1
 				step := targetR - targetL + 1
-				if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = lft - ? WHERE lft > ? and lft < ?;", step, targetR, parentR); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = lft - ? WHERE lft > ? and lft < ?;", step, targetR, parentR); err != nil {
 					return err
 					return err
 				}
 				}
-				if _, err := tx.Exec(ctx, "UPDATE shop_cats SET rgt = rgt - ? WHERE rgt > ? and rgt < ?;", step, targetR, parentR); err != nil {
+				if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET rgt = rgt - ? WHERE rgt > ? and rgt < ?;", step, targetR, parentR); err != nil {
 					return err
 					return err
 				}
 				}
 
 
@@ -146,7 +146,7 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 				for i, _ := range rows_id {
 				for i, _ := range rows_id {
 					new_lft := rows_lft[i] + (parentR - targetL - step)
 					new_lft := rows_lft[i] + (parentR - targetL - step)
 					new_rgt := rows_rgt[i] + (parentR - targetL - step)
 					new_rgt := rows_rgt[i] + (parentR - targetL - step)
-					if _, err := tx.Exec(ctx, "UPDATE shop_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
+					if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET lft = ?, rgt = ? WHERE id = ?;", new_lft, new_rgt, rows_id[i]); err != nil {
 						return err
 						return err
 					}
 					}
 				}
 				}
@@ -157,7 +157,7 @@ func (this *Modules) shop_ActionCategoryUpdate(wrap *wrapper.Wrapper, pf_id, pf_
 		}
 		}
 
 
 		// Update target cat data
 		// Update target cat data
-		if _, err := tx.Exec(ctx, "UPDATE shop_cats SET name = ?, alias = ? WHERE id = ?;", pf_name, pf_alias, utils.StrToInt(pf_id)); err != nil {
+		if _, err := tx.Exec(ctx, "UPDATE fave_shop_cats SET name = ?, alias = ? WHERE id = ?;", pf_name, pf_alias, utils.StrToInt(pf_id)); err != nil {
 			return err
 			return err
 		}
 		}
 
 
@@ -206,7 +206,7 @@ func (this *Modules) RegisterAction_ShopCategoriesModify() *Action {
 				`SELECT
 				`SELECT
 					id
 					id
 				FROM
 				FROM
-					shop_cats
+					fave_shop_cats
 				WHERE
 				WHERE
 					id > 1 AND
 					id > 1 AND
 					id = ?
 					id = ?

+ 1 - 1
modules/module_shop_currencies_act_delete.go

@@ -24,7 +24,7 @@ func (this *Modules) RegisterAction_ShopCurrenciesDelete() *Action {
 			// Process
 			// Process
 			if _, err := tx.Exec(
 			if _, err := tx.Exec(
 				ctx,
 				ctx,
-				`DELETE FROM shop_currencies WHERE id = ?;`,
+				`DELETE FROM fave_shop_currencies WHERE id = ?;`,
 				utils.StrToInt(pf_id),
 				utils.StrToInt(pf_id),
 			); err != nil {
 			); err != nil {
 				return err
 				return err

+ 3 - 3
modules/module_shop_currencies_act_modify.go

@@ -50,7 +50,7 @@ func (this *Modules) RegisterAction_ShopCurrenciesModify() *Action {
 				// Insert row
 				// Insert row
 				res, err := tx.Exec(
 				res, err := tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO shop_currencies SET
+					`INSERT INTO fave_shop_currencies SET
 						name = ?,
 						name = ?,
 						coefficient = ?,
 						coefficient = ?,
 						code = ?,
 						code = ?,
@@ -85,14 +85,14 @@ func (this *Modules) RegisterAction_ShopCurrenciesModify() *Action {
 		} else {
 		} else {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				// Block rows
 				// Block rows
-				if _, err := tx.Exec(ctx, "SELECT id FROM shop_currencies WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+				if _, err := tx.Exec(ctx, "SELECT id FROM fave_shop_currencies WHERE id = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 					return err
 					return err
 				}
 				}
 
 
 				// Update row
 				// Update row
 				if _, err := tx.Exec(
 				if _, err := tx.Exec(
 					ctx,
 					ctx,
-					`UPDATE shop_currencies SET
+					`UPDATE fave_shop_currencies SET
 						name = ?,
 						name = ?,
 						coefficient = ?,
 						coefficient = ?,
 						code = ?,
 						code = ?,

+ 2 - 2
modules/module_users.go

@@ -32,7 +32,7 @@ func (this *Modules) RegisterModule_Users() *Module {
 			})
 			})
 			content += builder.DataTable(
 			content += builder.DataTable(
 				wrap,
 				wrap,
-				"users",
+				"fave_users",
 				"id",
 				"id",
 				"DESC",
 				"DESC",
 				&[]builder.DataTableRow{
 				&[]builder.DataTableRow{
@@ -135,7 +135,7 @@ func (this *Modules) RegisterModule_Users() *Module {
 						admin,
 						admin,
 						active
 						active
 					FROM
 					FROM
-						users
+						fave_users
 					WHERE
 					WHERE
 						id = ?
 						id = ?
 					LIMIT 1;`,
 					LIMIT 1;`,

+ 8 - 8
modules/module_users_act_delete.go

@@ -22,30 +22,30 @@ func (this *Modules) RegisterAction_UsersDelete() *Action {
 
 
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 		err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			// Block rows
 			// Block rows
-			if _, err := tx.Exec(ctx, "SELECT id FROM blog_cats WHERE user = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_cats WHERE user = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT id FROM blog_posts WHERE user = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_blog_posts WHERE user = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT id FROM pages WHERE user = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_pages WHERE user = ? FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "SELECT id FROM users WHERE id = ? and id > 1 FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "SELECT id FROM fave_users WHERE id = ? and id > 1 FOR UPDATE;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 
 
 			// Process
 			// Process
-			if _, err := tx.Exec(ctx, "UPDATE blog_cats SET user = 1 WHERE user = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_blog_cats SET user = 1 WHERE user = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE blog_posts SET user = 1 WHERE user = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_blog_posts SET user = 1 WHERE user = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "UPDATE pages SET user = 1 WHERE user = ?;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "UPDATE fave_pages SET user = 1 WHERE user = ?;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
-			if _, err := tx.Exec(ctx, "DELETE FROM users WHERE id = ? and id > 1;", utils.StrToInt(pf_id)); err != nil {
+			if _, err := tx.Exec(ctx, "DELETE FROM fave_users WHERE id = ? and id > 1;", utils.StrToInt(pf_id)); err != nil {
 				return err
 				return err
 			}
 			}
 			return nil
 			return nil

+ 3 - 3
modules/module_users_act_modify.go

@@ -62,7 +62,7 @@ func (this *Modules) RegisterAction_UsersModify() *Action {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 			if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				res, err := tx.Exec(
 				res, err := tx.Exec(
 					ctx,
 					ctx,
-					`INSERT INTO users SET
+					`INSERT INTO fave_users SET
 						first_name = ?,
 						first_name = ?,
 						last_name = ?,
 						last_name = ?,
 						email = ?,
 						email = ?,
@@ -98,7 +98,7 @@ func (this *Modules) RegisterAction_UsersModify() *Action {
 				if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 					_, err := tx.Exec(
 					_, err := tx.Exec(
 						ctx,
 						ctx,
-						`UPDATE users SET
+						`UPDATE fave_users SET
 							first_name = ?,
 							first_name = ?,
 							last_name = ?,
 							last_name = ?,
 							email = ?,
 							email = ?,
@@ -126,7 +126,7 @@ func (this *Modules) RegisterAction_UsersModify() *Action {
 				if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 				if err := wrap.DB.Transaction(wrap.R.Context(), func(ctx context.Context, tx *wrapper.Tx) error {
 					_, err := tx.Exec(
 					_, err := tx.Exec(
 						ctx,
 						ctx,
-						`UPDATE users SET
+						`UPDATE fave_users SET
 							first_name = ?,
 							first_name = ?,
 							last_name = ?,
 							last_name = ?,
 							email = ?,
 							email = ?,