-- Host: db-master-5.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=35246;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$MMlH49PwtTcajuiWZT9N3wMJXeeAJR4WFuSQU8G.2lQXV7rMTt8Ag','user','ak_cc320da3b5a974f3','2023-12-24 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$QMqKX.RGolEEEFl77zETlslI.J2XexxbcyJidM8HzK1CRmHXHtacL','user','ak_92ea155d8483acf9','2023-06-12 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Vs8TTW2.xEkgWaiPeJxy8bZiPBEfxdMGnEbNIX7aJUHOuYIy.y8r2','user','ak_b3dbbe1db7d622ea','2023-05-22 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$pP3WegWZv7gO0NrPmSoMcteifcjjwPC2PNUMIOUWeNDmR8Aig1Qjq','user','ak_078470ebc43c2f9b','2023-01-24 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$cfyEfx/tU2mUvpZKzGj3QZlCZiLonGIRkpLDkMNfYAdj3HMrhzVq1','user','ak_ad1f8d313259f3db','2023-09-02 10:15: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=24012;

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=38592;

--
-- Dumping data for table `audit_log`
--


