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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$oaI72Yrm8fAROkAn8uheWQtaEtFGjinuuUDtYumACclodifqIODA4','admin','ak_96e836378ed674e7','2023-09-06 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Tm7oluAVUHYU6nPsaPvGLb0gVyeEdvAiMMODSEwaxRf3TCUKgfJc4','admin','ak_ecfff576a39333c4','2023-06-20 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$WUyxq/s.QGtIQKMEk8xiszmzqXLTy16XGMSX/wVO3IFwDAnxVXYje','user','ak_cd5006abc5343979','2023-09-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$hkEZXQAryXhFy4XLOIIb/cMgmuXb6KJRw99aqM2r88LXyM1vm76cm','user','ak_24668f7cb2cd1d38','2023-09-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$3DaqTdZ1y74fTCMIfCne2d6Aot7hx9bTAjUZHoIBSHU5WHIrHAG12','user','ak_45bec3d098385b9a','2023-03-25 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$U0poDh8PCw6/I6pzDM9dvwBo6MSohT78IvDlqhMh7NR4u1E62xzE8','admin','ak_3fe024a6aecdd6a8','2023-12-05 10:15:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$vNcnoTHT/Y/za6Kty7rE3suObSM5aE6N.59QWvV5tqSqgbuyGFIUb','admin','ak_675259c8cf12214f','2023-12-25 10:17: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=49268;

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


