/*M!999999\- enable the sandbox mode */ 
-- MariaDB dump 10.19  Distrib 10.6.23-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: lean_shop_net
-- ------------------------------------------------------
-- Server version	10.6.23-MariaDB-0ubuntu0.22.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Table structure for table `leanps_category`
--

DROP TABLE IF EXISTS `leanps_category`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8mb4 */;
CREATE TABLE `leanps_category` (
  `id_category` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `id_parent` int(10) unsigned NOT NULL,
  `id_shop_default` int(10) unsigned NOT NULL DEFAULT 1,
  `level_depth` tinyint(3) unsigned NOT NULL DEFAULT 0,
  `nleft` int(10) unsigned NOT NULL DEFAULT 0,
  `nright` int(10) unsigned NOT NULL DEFAULT 0,
  `active` tinyint(1) unsigned NOT NULL DEFAULT 0,
  `date_add` datetime NOT NULL,
  `date_upd` datetime NOT NULL,
  `position` int(10) unsigned NOT NULL DEFAULT 0,
  `is_root_category` tinyint(1) NOT NULL DEFAULT 0,
  PRIMARY KEY (`id_category`),
  KEY `category_parent` (`id_parent`),
  KEY `nleftrightactive` (`nleft`,`nright`,`active`),
  KEY `level_depth` (`level_depth`),
  KEY `nright` (`nright`),
  KEY `activenleft` (`active`,`nleft`),
  KEY `activenright` (`active`,`nright`)
) ENGINE=InnoDB AUTO_INCREMENT=33 DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `leanps_category`
--

LOCK TABLES `leanps_category` WRITE;
/*!40000 ALTER TABLE `leanps_category` DISABLE KEYS */;
INSERT INTO `leanps_category` VALUES (2,1,1,1,2,31,1,'2012-07-27 12:24:16','2019-07-24 17:04:21',1,1),(5,2,1,2,25,26,0,'2012-07-28 10:18:05','2020-07-16 20:59:59',1,0),(6,2,1,2,17,22,0,'2012-07-28 10:47:45','2019-08-19 17:27:23',3,0),(7,2,1,2,3,12,1,'2012-07-28 10:49:27','2019-08-19 17:27:22',0,0),(8,2,1,2,23,24,1,'2012-07-28 10:50:15','2019-08-19 17:27:23',4,0),(9,2,1,2,27,28,0,'2012-07-28 10:51:21','2019-08-19 17:27:23',7,0),(10,29,1,3,14,15,0,'2012-07-30 11:39:01','2018-11-18 18:11:06',1,0),(11,30,1,2,3,4,0,'2012-07-30 11:49:01','2014-09-10 08:58:44',3,0),(12,30,1,2,5,6,1,'2012-07-30 11:49:31','2013-08-02 13:55:10',4,0),(13,7,1,3,8,9,0,'2012-07-31 14:00:45','2019-08-17 10:06:26',3,0),(18,30,1,2,9,10,1,'2012-08-01 11:49:29','2013-07-13 20:57:01',6,0),(19,30,1,2,7,8,1,'2012-08-01 11:50:10','2013-08-02 14:01:08',5,0),(20,21,1,1,12,13,0,'2012-08-02 14:39:35','2014-09-10 09:04:52',3,1),(21,0,1,0,1,14,1,'2013-07-11 18:44:16','2013-07-11 18:44:16',0,0),(22,7,1,3,10,11,0,'2013-07-13 21:01:28','2019-08-17 10:06:30',4,0),(23,7,1,3,6,7,0,'2013-07-31 10:13:49','2019-08-17 10:06:23',2,0),(24,7,1,3,4,5,0,'2013-08-02 18:18:20','2019-08-17 10:06:19',1,0),(25,6,1,3,18,19,0,'2013-10-08 15:13:16','2014-09-17 11:36:53',1,0),(26,6,1,3,20,21,0,'2013-10-08 15:14:50','2014-09-17 11:37:23',2,0),(27,2,1,2,29,30,0,'2013-10-30 15:16:43','2019-08-19 17:27:23',5,0),(29,2,1,2,13,16,1,'2014-09-06 16:50:47','2019-08-19 17:27:22',2,0),(30,21,1,1,2,11,1,'2012-07-27 12:24:16','2019-08-16 10:01:09',1,0),(32,2,1,2,0,0,1,'2019-08-16 21:10:48','2019-08-19 17:27:23',6,0);
/*!40000 ALTER TABLE `leanps_category` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2026-07-01 21:35:41
