-- Host: db-master-9.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$XTsVBhG.3m.PLKA/TtiloyRrdr/ewuCPhn3Ci8U9AUZWiAQZPflZu','user','ak_6592d9d0aa338475','2023-04-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$GsPoVTR1EDJzAdDgs/w0/nCKsKk1dK5MBN4qQ9Y1MHLuEVYyrcoRJ','admin','ak_8336bc98c3425dfe','2023-10-02 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$ngsfXwy3Uo0zlFMIyCjuKsUCVKmAHZbngdTTk4FJPwWKF7yiiZXE6','user','ak_fa50a5bc259feac2','2023-06-28 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$FUMFmWmTOaq9oEFPv1B7TAn3JBwmtII7L7mjcOt0F0hO6Fg5201kr','admin','ak_5ca6f72d0e49e45f','2023-07-09 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$rHqATPxsKphziaNKInYtXdcja1XOj1zxZB4SPgtxVNE9be50vp8e.','user','ak_7c8ba81c549228bc','2023-08-28 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$UHsCRo4lpu7YVUazNW010jiZakxTwE1LBhqY9zR1HIDen8pEXh3H4','user','ak_385601d3c3a9298e','2023-11-16 10:17:00',NULL);
INSERT INTO `users` VALUES (7,'jane.smith@internal.io','$2b$12$dmWVod7p2K/7a3F9qpVvtQhuPFWnxpluf5CNJUFqh7kaqSXbj9cpB','admin','ak_8358430aa66c0932','2023-07-11 10:10:00',NULL);

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

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


