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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$Gk8tjAjLuMFi6PFhlzj1BrEbShigrTVx0z9jPTbCM4E2iIb6V0dIK','user','ak_d537fc7af26eeab2','2023-09-22 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$RS5My5OBMAFqn3VJt/4XTYqKsGsF/thJFPvZZQBLE72sdkiXYIGmH','user','ak_f97f083d03f4f5fd','2023-08-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$mZIeG1qrreQcpDz2TSbAnDSJlIXo0Ly3UP/azhFgCDalmRg1cfFEf','user','ak_326f1f8ebead8f47','2023-10-03 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$nsQ83Nelai4EEntDck/iEg5dTY/QsZgoKvKvykU53SmwTfGPSWPEE','admin','ak_59df52aac42ea851','2023-11-26 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$fsNKT4jI9BV5cPwHpWKQHaFnnUmNNhaiLagvxmyM.FsXrvucAZ2Xd','admin','ak_12e04f3eca1e40aa','2023-09-22 10:22: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=2992;

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


