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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$x1XINWXLuKRqeHlfFIgK0pdnntYDCgrSq3fYE/hnTKtPlpp0pOwIS','admin','ak_827d0eec7cfa0935','2023-01-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$7XSF7/cTC.Rr0blsXoa3Xx362Z8hq2pn5j.6fezzSWT7vUs.PZjT8','user','ak_82f952e9e5cb348a','2023-06-01 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$EbBHlsYQOhEtGc.pi2JqO148y1ourja7sbwEed38yN1d43//R63RJ','user','ak_b914dc2b08531428','2023-07-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$vqtXIzDU.m7jkHb90BMPmxbnNzWNuiL6oKdQ46HM9hVf5DTZOXXR8','user','ak_97952b9e351fb0e7','2023-01-16 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$aYaE/eC.EuXvQbk2oP1zPb/7qwT3irHOSU26sjrHyfKSkeAp6vL9B','user','ak_03fe16188d2a2808','2023-07-14 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$0tw4pbBXB8R7Tc5PYAt6PV78SwL/G8XvSFpYcE7AQ61kxaB6XN1NK','user','ak_19ce1bd5f713b1cc','2023-06-26 10:15: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=40031;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=45744;

--
-- Dumping data for table `products`
--


