-- Host: db-master-9.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=44179;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$CibvG9tBf3s.IkVLv/pf6r93JDdY2aNfJmgCZt0J7Hz1tJJNKS5CZ','user','ak_7a6de4a4e053a37a','2023-02-01 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$d8zWzQC.TO5nFVsCY94Q3oWRTFJ.t5BcPlP1KYzDt36Nw1X/GnWA5','admin','ak_11d6686b8f0fadc1','2023-10-05 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$usxC/wbbNH.jmQGQMk3MVeioajoScMJJ6IRXktG5n6hkdFRO2YhC.','admin','ak_cd1c23d9f0663516','2023-07-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$654jwmSY4UrWZ7FNTi5oLjszHyotgLKCY6TrqszCq.LWUZGLIEjVL','admin','ak_fbeb2f3d4a15d03a','2023-03-06 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$GerpaBQEZy/GS7Bxh2Iqh7APd.37yxmwNyf0xFTrmt6G/yePSIjKi','user','ak_304193c282fc1193','2023-07-10 10:00:00',NULL);

