-- Host: db-master-5.internal    Database: production_db


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=7382;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$LIIEZcozDluHDhzl9KLhkqPi/e.d/Em87AqoJhWAQxjI7/Nvw4b1T','admin','ak_0bda9d8b82d94835','2023-10-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$q/ZpKZ3/7EvN3Ho699NNyLhJyehD98H.DRFyyGlwzt7oyqaXlZwvJ','user','ak_ad1c73046dfb061d','2023-12-16 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$vbx7/wl1IM4G6MQVAoxYpTHrkj4vLX6QAqcsZaMKxmbIY31ddLGWy','user','ak_b3d1bedfcdfa3800','2023-07-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$oJ9wG86rqIZ1.3dg7TXEJK1PSlEM9PPXvG7RmD6rmwOJgCvDsosYX','user','ak_fa08aecc159c9e59','2023-01-13 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$cDwsqOHrcNaz8s5VRFUu1V7cUUPXikSL.Lku9PZd2kSvTvi0nbVC4','admin','ak_e26116a4fb7c0671','2023-05-02 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$wF/bv4h4woNbdv0WCX34AsHf/OLhxkrtsImu9yFYYuzfUbARroNpN','admin','ak_02d158b1180339f2','2023-09-22 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=34752;

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


