-- Host: db-master-9.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$ukYu.NB1L7xJBkNsRS9.oK7icxHS2HX0TxuQUgzfEU/I3B1Jc3i1v','user','ak_59a3c4f457e0cf37','2023-06-13 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$h5p6o2fKGl99imiCLstmSiUnJrdGgTJ.CHKXO2/E5HRKgOAS5HKbp','user','ak_755a6599b2e8c305','2023-12-04 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$3dS.1mT3EkcN8SriKK53wNT2gnWl8RYrJiG4xATh0h3PzkoA3hNpj','user','ak_ba5868c403dbf4e9','2023-05-22 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$rObyDR7iaZfW1n.3TkgSl2HUyJhjQvLh4ucbCi03xZhbldJEqfPWY','user','ak_4fd2b9b8f4052e65','2023-01-14 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$nUlTDYEvenu1RD7.JPFYz315m8EJHwH.6O8hlTGXHUtb65pxNlNj2','admin','ak_686ef587656ff795','2023-04-19 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=25800;

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

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


