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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$0UG1RHxPIkrvyWvkImD6FQTWUTk7HnsjqZmq3gqAaLFntaY2tQlJn','user','ak_5bc727280b7f58b0','2023-12-18 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$APek.c8bxYNBZfsh7pPESCuuEADuZq9q9Le4hQSd5qpxyB.VL6/5S','admin','ak_631d77d50f56a260','2023-08-09 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$4FNdZ4S0sDRTl5iQXTLizeX9YO9tw2QSQPazUAoc9LG4g.jqUKVD.','user','ak_93f0e83e2022c645','2023-10-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$3thrwgqZ5/eaz6cu11dVED5w4.PcnqNCAeWZ1w6juKn/m46i/4lTU','user','ak_254df333f2279209','2023-09-19 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$pvqZY4FFIqMRQ451eBw/dh.VomCTFTWmMmpKG0pNq0UgZ1GGyniob','admin','ak_ceff858da578e924','2023-12-26 10:08:00',NULL);

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

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


