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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$OSHLYqfQf.qE5kW1IGdg2225Eg5svzjku6FTuarkhRe1Y4fL/NMaJ','admin','ak_526e954786a93f60','2023-02-07 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$094/4NGoMNWsWAzIn3HbNrr25awOeaP5qgQFixsWukMpJw79lObvc','admin','ak_98435577c815da82','2023-06-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$9La.nSIo9YJaAhmNqFPrwMvD/t1Qykrb0FQtIC9TlrOS1RQlxMmfK','admin','ak_8edaa42698bfcf5a','2023-05-18 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$m8R1jf4ZNBCAjbrNLq/ZlRCQXz2Nu7ybcbwqf8YQI72L.h.kqu1Ad','admin','ak_6c99ca5d0b5a1bd8','2023-02-19 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$S4xQAhZnl4Ayvm2wkQhpMpGe8QX1CnzgLqydd9G9KCvHTpekH45Iq','user','ak_ba3dc847dc6cb54d','2023-04-09 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$sXy0GlQ7TEjwgE2.A4dgPZVbW/NRacuw.biu1SEx1mC/rdRUOBm5s','user','ak_0d55877f4fa564ff','2023-04-23 10:06:00',NULL);

