-- Host: db-master-0.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=44794;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$hQukYwtzhjoY6d9pTClUFqIpxgef6T2SvY7dE3Svjgq89V7rYO4uq','user','ak_9d666b9d29a548f3','2023-10-26 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$p7HyJXUuOvnWujIqpswpVobsR5WoZh1/WmCvYBFYREK9KldmB65CJ','user','ak_0b92a317a4f1e495','2023-05-18 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$0.UXCXielq6qNIaTAOjBD/hn6VF7hOEjoYBY0WwgoiBbhaQGAvj2k','user','ak_96582e909b9d8590','2023-02-25 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$4b0.OJVr3pFzISsLJnKflbSYEWsVF0ZpzsrrE74YvgbcIC2/z08tM','admin','ak_7085c5ef6c40a942','2023-08-04 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$D7D4K/6kJD9cFuOoILByNuazBOM4shkD13scFWhbJxXMjdjGzefaC','user','ak_bc7984dd5d080ef6','2023-04-03 10:12:00',NULL);

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

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


