-- Host: db-master-3.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=18985;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$zBw3dbl3V2OqTWLRbYjgWBn/CH1R4SG3vnlqLjAI9T0HHh0RlnA5m','admin','ak_66ab9ff10dba65a6','2023-01-22 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$DHL7GA5tKUOMkoFSWlRUeFclxKk.6QgASWgRWH11nLRq9/6eOnGXF','user','ak_47fb6702e6605820','2023-09-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$SJR6e1HtMNUGTBNThqwT3oNGFJQLRJ3SITMl1Rrx9ynoe1bmBWlAZ','user','ak_d12092ace001b9a3','2023-08-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$9RXaM35m/fA3MRxqyNCzMm0ANfbsY3Lg.MiAjBH9HYXreXNazI4/r','user','ak_08df7cbc51bf94bd','2023-08-15 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$3QahTL5Wnd5pSChVihwnRTfuL5BOhB5eR0sgLPAhiJEvago1feX5H','user','ak_e63355f49387ad15','2023-06-14 10:09: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=47684;

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


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

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


