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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$6BYkl9SOWF/fZO6vcu6gOO1jONFJzTtobWOk8KDvE6Td5yqCS.sRG','admin','ak_0559a5d16ba541f7','2023-04-11 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$lM9IvSA4PdkPBQUGTHQmCArYJ.aiSNf3bxZbXUVQNOC2TR8wSE.Rw','user','ak_431f8464741a6e62','2023-02-04 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$wnL.LN1nBl..CYZqRfJBQ/8n2NMl1xUObwwz3c.qUd9NA9VVyqv9G','user','ak_e7762c6b6d884c72','2023-12-27 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$UONSsbwBf93W9ViIYt472O1NijjTeEMI7veCFyMRIIMTCworWB1u8','user','ak_11e666e98a53637e','2023-02-19 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$Cxt5/ASHG5/KTzFwGNAZOdmRgZNFKAMRG19uMMSMLhxthXul98K/p','user','ak_734283d62b60c629','2023-04-08 10:04:00',NULL);

