-- Host: db-master-1.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=8654;

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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$h11tmRILKYBa9IB7jqPcN4kJgxoYivwCSxZbQtHx.cWoLV78Qy1Tr','admin','ak_9c398202a466d309','2023-10-09 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$iycplAiyoApeoOM.ogDsYwtvt.XUqi96qdzTwbR7X9TkK1y4QpgrW','admin','ak_862ea84abca50b21','2023-02-24 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$8eYQyLy6jaqMwF3nvVM2Tsa8rRpJSW2XkxP8/0.ZfPD6xEmDfmMka','admin','ak_763cd8505127cfd7','2023-10-16 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$KuWr5q4yx1LFV8o4yHu/Ah8pnfq.aI6CAsirA3jBPRJrZxOPt6h6p','user','ak_565a533f3322ec3e','2023-07-06 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$eqx47Y7BTbzb.9p.pIom6cAZzF3jX9RZFZxKLRM7JeqekuWmpMGDR','admin','ak_1eb0cc8e655ac1e3','2023-04-17 10:01:00',NULL);

