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


--
-- 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=27187;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$5HqY7HQx46fgmuQs2qo1gTXiMset1FmfAozjUSMWUjhxPKImsDWIc','admin','ak_f21c700507cfa0bb','2023-09-14 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$vkGQlmFvmoIBnVzaDBhHcf36o.b8742o0.U/egUzXgBUMOXUVSd/A','admin','ak_5a94775299a6d9f4','2023-10-27 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$DLgbbPCumQaTZQREWNx9qSw2ZLHBWeZUs6JBILSpdIA3iyDo/eXzG','user','ak_2524c57710938f13','2023-07-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$QghQgPjvjQCWi2hP3XEUn2TKNhBMrhLcIL3/7Aw8X5m75uqqNErjr','user','ak_7de18f87e75db3e6','2023-03-26 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$c6cuDrVZnc5qfAfu7rVlTgTwTlBK4ONLyrdpjfqVTDHZYlUYEyuSM','user','ak_bf180ccda792ec16','2023-02-13 10:21:00',NULL);

--
-- 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=5068;

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


--
-- 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=35183;

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


