-- Host: db-master-0.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=17820;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$bLut8qJGpHhQbZoVd1b7G0dvcORSkb0.WjSgwajMi6aK7ziqB/jPG','user','ak_2e6f2dc5edaaa96b','2023-07-23 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$QeMDy9BP92UdrNt.AG.X6w.DSo4kufbamm4b6EoAB.TwyvQ/YgHRc','admin','ak_a5ffee500676dc18','2023-11-08 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$oM1iy2vy6xIu.ghKUHLsv8CXDPTsJVo7ZcHm1ZsirL87A7koHf1Q0','user','ak_37438141ca1e9b0f','2023-02-21 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$Vrq/2nz01mJvN4LvOrq3Da1gulvwVsHhR6jhzEY1KfVqf9f/kRgfE','user','ak_205ce8a50c828a7d','2023-05-24 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$l6P5QBNhpVSNBsulaKE09J40vfXOGoqRMDmN6l1HIW5g.AM3s1RZ3','admin','ak_d68af67f1c13326f','2023-08-09 10:14:00',NULL);

