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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$m5M6ij.oHuUfW/b7fRlHfH.BjUfxCuUh5mD2k7/zKNbrtYyGm75dX','admin','ak_2e5e702c95aec17b','2023-07-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$g0Vq.g2jW1QQzp70gAgiPD.hIHG7pbl/FNlBdZv3xyXzZlQs11N7F','user','ak_3bcf2334cd9d79ed','2023-01-18 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$PGOFnUvFBGsnJ2I6Csog6XWYfQy6MMZB4.fesoLkb1zuuXBk0YP18','admin','ak_c1fa823e7c552446','2023-08-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$C.XVKEKmGrEeVcPofyqSYmJWrEIie3EEeHwKtqbSBN8kjFqVPFRVu','user','ak_3a65faeb01967948','2023-04-22 10:21:00',NULL);

