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

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=39623;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Gyceh3Qe1EKVFTmZbzEMHWMrvqkgqjQzaPOv8izuxblqMP.SOU2rD','admin','ak_9682def8e868acde','2023-01-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$vMVd5WySHDk.5DD4R720MxNtMZWjvyF3ZjkMroeLZiVPi/H7baarN','user','ak_24479f5776fee5e9','2023-10-13 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$/iEfTa1P.D3myQJcGtzDzIk2MoOu6ywIo0EU69brXReNQPGIg7FKq','user','ak_43bd5ed7c44a0422','2023-07-08 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$7/Z7HmvchOJmnl7ytbok2/Nv/b5u/hpGbCkQh8f8njqdRJHH3J2zK','user','ak_aaa9faaa28c1499b','2023-05-08 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$n/A/JWtFoRuoNzlBDDmFG4L7euE5dnslwWCf0cDF95oLQPc3sqYTI','user','ak_a107b5cd87d5d732','2023-11-22 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$MnriYtTVzY7PLQjegM5ztiBkFUL/E.secEy0hVUhTUzmJEbWY4S1r','admin','ak_b8c1cc5c724f99a0','2023-05-28 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@company.com','$2b$12$yAC54MnNLZJedIE5DGz4x8zA3ujRNnETmPB2uSPaHrRhN1AjRRN3R','admin','ak_c815ad47a02ad502','2023-09-25 10:14:00',NULL);

