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


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

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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$AWxZIhgHGCxahVXZtBaA3iiP2GkmAlRZu7jxX7EdbduQPlf7aLBXz','admin','ak_ee16cf7bb30398b0','2023-08-20 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$7plgiYxozzs1OIiU8/WA1BIegmlTo7wZPpWRdqSsF533.sz.g6uYU','user','ak_32fc906f42689ce6','2023-08-19 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$ymGCzGuWHP9IwtPNy1Vi.4SR23GeAy.8Rr3YtQt0MKXMNEDV1gxwZ','admin','ak_646f6e5bed8ce5d8','2023-09-14 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$6mkyi8sjA93xxzLThDNiDAb6SdGzUHxVkqnYpKwXcy0Y.y7sxCImj','admin','ak_2a00f8b00f072959','2023-10-11 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Tz/IltTIoxvP0PbU9jJcFTgTC8wTvNKiXHkAxEGUwk4wqt.0ijbMF','user','ak_3bd33cf05c1633e3','2023-06-13 10:11: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=22718;

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


