-- Host: db-master-6.internal    Database: ecommerce


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=49193;

--
-- Dumping data for table `sessions`
--


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=16516;

--
-- Dumping data for table `products`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=11156;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Z4qrh3afc1YXHyLpOlkB5Sz33bpLRdiXBju.phhkTIpRp34kt9bsH','user','ak_e264a584559d79ee','2023-09-07 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$w7cLP85aNvuHy1za59YQExTlZlFDdyp1a43gWp9QHlA1p5eXa4Ckr','user','ak_8aee7bd3df5397ee','2023-05-12 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$9cJuPaRvUHQyJ2zpTD.Q9CmU8lDpk5nwK/QfRxeKFgqRyryE/0AUa','user','ak_97c1418d2fb1798b','2023-01-25 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$FZiqG7dXCeR9DYgLXjDvYOgO1kwfTQqCqEn6feuG.0vTtQdd.4Smx','user','ak_6905f18cce523742','2023-10-18 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$KCooEHUana2/zL5qFM5WU5c.wNB.YTYAU8UPl9lwaOvP1OTOffoQu','user','ak_62c627db11a62aea','2023-02-28 10:18:00',NULL);

