-- Host: db-master-2.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=10542;

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$HGq91FRlLcSFLuYQgSmrT7fL4HWz5BR7WO1SgGtRZOeXqCAwX1WW0','user','ak_5033b76dafa6f2c1','2023-06-20 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$4hNxf82erFUFEQreO8qN3A27WRAVYrcGQQ.NDOgKlDIH446a.jgtm','user','ak_b1523a19de9a661b','2023-06-07 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$9ub4J.njrGH0n8pcd0hOR2Z.khoSXhiuT5jQnapRmDRg3PFxbKz.e','admin','ak_c55d9b01defaf4e8','2023-07-20 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$mg86QXoJNePu8qK/VHI.bLXhxheMwqdwJ.am8t1..kmI/I6Ok01ls','user','ak_ec12b4184f9f89d9','2023-02-25 10:14:00',NULL);

