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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$jcCLASR4j.wdraewR4uzEEUMMEH28smjzkEMoF9MprgMoWBCDvTxC','user','ak_a353e6c742d13143','2023-02-19 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$vMxK7jSKnI0Wc7MZd.7LtnYaIjnQPEbq6nTPnUKvvzITdBbFHPVp5','user','ak_46907855fa10876c','2023-09-06 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$9.IZ6wlICwZ2D4fJoCb9Ou/zI8SRPUIADCQmCt9b6DTCzjAppaJY8','user','ak_1d20341bfc85cf9b','2023-05-13 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Cu49AQBY5IHvOmddNPJOTL1PBOyZxXzuYQM5KpPEPngUkyhJMxd0U','user','ak_7f1b706fc134383a','2023-03-12 10:13:00',NULL);

