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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$g4RP3.J30Z7JLHxYIT8Ro3HB8JsHi2/wx5cI6pPxBP7cX/W564RuL','user','ak_3c90690b16f15d15','2023-07-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$VHfOn.0XN1PFvks6ba3UILBoNoqCzzjc3dIVsj3hirds1zAa.fqEX','user','ak_0de6d9224691e8a5','2023-01-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$6HHAhZ2/L5l3lruulsvZlFM4EBVQRJaLcExuymlrG6.vRbVlJ5lXT','user','ak_766b25ca4e05ea42','2023-01-12 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$PKnjRhTxd9hhMa6O69dTgY49pokFpgDBqdLsPHeP.Q7hoCiRY903D','user','ak_80c11ad7d7d3209e','2023-03-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$Eba3Uj2MZGTQ458pmzhKtOITU9/fj7OJb40md1zVez0OB3oFijbvq','admin','ak_64ba980abc403d5b','2023-12-15 10:23:00',NULL);

