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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$8tnIY2sUxwb2zmsr.OjCYP07RzHb/GZg0Z85YCIJETALUVQVhAKvM','admin','ak_2d0abfd65f1fadf9','2023-11-04 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$mw3QYVDkJGHeWmVyNBnbuW1UgFGXFph6AznKqEAMLTWZdVcCytrQV','admin','ak_23ffa603749e2bf0','2023-06-02 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$ofwM5xrfEFzusAh8FeRBdnvU67hZOzwAFMsKvbb62phue57TLsWDM','user','ak_48d99e671d4ad32f','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$UA9bcNH3.jnnhDGqHUnLqwGe1SkCrv7ltsQIGSXBFu4fwmCNuuX1j','user','ak_67915fa18cb071f5','2023-01-27 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$9HRLl90EbaOpVVuSaJg1U7BnGLIyMQ4y9jAONys2yc9Hf.f95rhiJ','user','ak_8e639d8eda9ce7a5','2023-08-27 10:10:00',NULL);

