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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$0uL7gCMFIvOWDxOIIOXRLBMqUr6QTf439Bped8Z.DEKXxxbvS6sb7','admin','ak_c46b9887bd85a61e','2023-09-24 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$k6EefcBc1FygcEAN2/KHI04/FBXOilgFkYTcKymV4xbTeoo6I5.LU','admin','ak_579bf6ab3808d5c7','2023-09-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$Yf33VilDyHVHbJOXii6bCOJVEt4MbzNuio8J1wMdn4C.a7MxPVI6B','user','ak_47c7f051d3f6635b','2023-04-27 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$s/FO4UbBZJKan7gbQtA.Cr.lY7NHUvz4AIiCZyYEXBArWgEjghdoX','user','ak_7cd2e269cdbb276c','2023-12-11 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$Yb6TPgcEPDMKlDbz7kMHxL/NvCJJknlgRrJuMs7k3uvj.NywqIgoU','user','ak_1898283a331226e7','2023-10-07 10:18:00',NULL);

