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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$JBmcG5RgwL4urfZPbcR0j0zac4YoBh6P3ygvV/P/O.4QCwRG/Fa8c','user','ak_a893a33e10fd5f5f','2023-09-01 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$JGKPfpQw8gcABMT5..o0GO9AVbmmcfBnCj9RUHTzQD41mWzlLH/I1','user','ak_18c81f6016182add','2023-11-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$g2/FlUSYNTo5uv9HLrynInkXhH5Y/6DjFtHYw913XBdV5CJm6Vs9m','user','ak_2cdeaa0a37710372','2023-02-28 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$8XLgT4tceH8yP.gKP4FpuLjTAYaxwaZYYsi.WHdGNcdGk9XIk7iNE','admin','ak_a30330ce712b3cd8','2023-02-17 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$vQGJ0SvZYsh3sN5yMAR5rA0ysQ5hhnOaY5Vs5G6D4W/74bMWLpe65','user','ak_13a6d6621e64ace9','2023-03-04 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$8/F7MmWxUXkj56LGRlLjNbk3TAaOvBCHnrrP4U5ooRruQVhIrQdxe','user','ak_59e36c28e1053ef3','2023-03-25 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@example.org','$2b$12$VWla4HRSLVkvLvVNNSv/bWJQVnR4IOBrTm0PpUGEdE8PvLNwgJ/bX','admin','ak_d51e6434936c5d84','2023-06-10 10:14:00',NULL);

