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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$7UDdLU4bQj2831kMQeT/gNGBET36sW04Ef55b2hOJhYkOS4.QtMzc','user','ak_a43737bea517f4c5','2023-01-17 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Zdj4DhTiT8eCCvYmeVJXHR36W98.lJIqNjc5D2cQQSuUUWTNu/6nb','user','ak_8a2f79a875315b02','2023-10-06 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$7vJKw1OCbryT1lNAb.TVvK/QaS2kgOvNZp/jrJLz/kYC2WC5OlhmW','user','ak_5b0cccbf0f2778ec','2023-06-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$wMBJPZTNs4Uw/5AdoYh/bpHG.pq/6LZOUkD.KacjrL8uO0rv7xGKK','admin','ak_baf02d2969f37867','2023-08-28 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$S0hJxDQVKdIGCrCotwhszomnD7MpK07NGq8WdxdWDhApLrLHCOzzv','user','ak_4c2710bc4655b4bc','2023-08-03 10:19:00',NULL);

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

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


