-- Host: db-master-3.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=10852;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$9UgZIA5QJUq3TJ51zskrDCB16cn.kbrieFTEbRHsnPHtI9Rw22gRt','user','ak_b25792bf8293512f','2023-11-19 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$U6UHCR0CrS7qcwlpmU08d37d4CLzyS5pFIaAjsXU6Qtu2FQvHYfWG','user','ak_701e4ab580c5a4d1','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$e29WOCkAh7TqjamGGgt0dUel5SHGP2cCbgz3oQmq/kXBnywMPpsWj','user','ak_4ed66618c569907b','2023-01-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Hrbs6jH5hJN7M.75BAiBqRCKGHTpd6NdGMaaFudaegMdu.x8.HWHy','admin','ak_b36f30fec36d66e4','2023-11-15 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$TvG036k0XpHqq6bS4HJOCtd8pW4D285OoB6vAEMR24zoC2w0FKWE/','user','ak_e4e3a700ab0fbdc5','2023-12-18 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$oSRb21aTBw1RH1ls7GsBCfeAU98hYbNWhPyg6ttPC9xQFyTU3QjRp','admin','ak_54810f42fa697406','2023-02-14 10:10: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=45500;

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


