-- Host: db-master-8.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=35802;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$poCx8l/KwdnACf6KXZRS9doIFjLVXwoSwbBZQ7xDmMGsnfr5i4W6S','user','ak_3b0a59ac04cfa287','2023-02-11 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$UDDCqFnY3OPJsG6CSuDKRxYqUYCpgOX.krBYkZhZhPcW48GKG.geZ','user','ak_745c73db48f9737f','2023-12-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$EGmgajncZpjTOzzZ5pPXZRZokiWkjVqrQxCW7zKteyaX4j2L78Ew7','admin','ak_fbada6e712fbcd61','2023-12-14 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$6XGnN39ZgEjmC64IKr0K7oumikgiiYUTF65zvERnpjXkFuQc7i3LK','user','ak_6aa3e14033b411a5','2023-04-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$oJJzgg5.70SbFpW7hImcfsq3iiD0wifhuYCvmka6bl3YT1WSCwArO','admin','ak_443aab828d820de8','2023-03-18 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$oi/ajIzyT2jg.Yzh410F8/Pq2zO1mIjhzh7aasNumWnALLmunEJZN','admin','ak_0df675159fefaeba','2023-10-05 10:22:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$NeXM.hnun2TL6mcSVIXoK9HMkywJGU0lJfRkdrzz6OrJkbtAWQ0Tl','admin','ak_ad1383637a0bf425','2023-07-22 10:18: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=18810;

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

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


