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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$l2UmpV3y4ILJ3mgFdFYJDKb5ZeMrkKGMeTv4L3SyXVCL60bYbV1Rw','user','ak_6b019e63a7c6f039','2023-06-26 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$MUk.dyfZC4FFab1sy.kOZP99KM98qDWLUCJ9M35XHPSTRZkL2d3j5','user','ak_2ca3f5fe28cd4cfb','2023-08-11 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$d1yn01mqeNtExCAuNxuoTNwdauq9yE5fvINVSVXV4VjIlmp4lu6af','user','ak_d393c1c52966a011','2023-08-19 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$JqJnOVIL.Bqg5b4wvkYT7kUCvGTKppKu1Rc/OCYBG6Qvnk.5KOWvp','user','ak_0a1a30846d761f4c','2023-10-03 10:13: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=23550;

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


