-- Host: db-master-1.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=14703;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$.qCl8lVJlD3Ye8/bXcQ2ucC02D70ICQdypu39CLsQykn8GI5mMh7K','user','ak_704fbe926ecb315f','2023-10-17 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$ZonUSFzrqqnWaDhR5XdyXmtFYlBbkHe/UWEJYAq7bTUGmId3WoyuT','user','ak_a372c0a01edeac18','2023-04-09 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$vXQ8X/zd3LFKdavHM4LvT23F8ehfPOwwPtgeLfxOMvqvAqM5JjUYj','admin','ak_e7c3db7aa03f13ee','2023-11-13 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$IQtHvZx9M/YWFw9ffvBpOZBQzgEeYbs5ed4I9g7kqC5U7TuFn2uBm','admin','ak_eee22c8b9235bdc0','2023-09-01 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$Z2sChpQUQgMTaCLaeC.kRJb4n8dwub6pTKAFG7hUWe/06ECi5DRGH','admin','ak_348b190e5b86a6ed','2023-05-01 10:10:00',NULL);

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

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

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


