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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$J2kHQOVoHCLQiLNZk/VEx/wPYmoeDPngI03954da/Dxej6QXKlvwi','admin','ak_adda2b64ff3e8fcb','2023-09-03 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$gnqVU2gPkaRyZBPIY/4UgO5fotHC7UEg3vQK3/FDUa71v01qdrqOT','user','ak_732762d94835486f','2023-04-19 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$05Ne7aPE6Nf6x3P9uTph6X8lUqcJQTLyYZ48lyYjMECda//oVSoem','user','ak_e3c178fb37137194','2023-02-09 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$BOauFtZTdsjde3J0q5xSVWI1Lec1.eq7lZulhZGIeJHHnf4fchv4E','user','ak_e86a2a027c10b85f','2023-05-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$KTiwH839DjWBSYIlLhHsauVbAr2QV4aYeYbKegO0..PRj4EymD.yE','user','ak_6b6ac5428304e709','2023-10-02 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$5oAUaE6aZTWXfuIGEKhjmnLruawKIpSo346IZx9rTqv0G31UpPPSM','user','ak_793c528c6bd6e572','2023-10-23 10:03:00',NULL);

