-- Host: db-master-9.internal    Database: production_db


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=20025;

--
-- Dumping data for table `orders`
--


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$wEcsfJp2kmcRS3JCyQpIrMR0FnfVj041WxPuNvZf4E0SYF5W9m4LF','user','ak_856bc67b25755269','2023-04-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$H6yzGIWqTy.4765kJMY5at77Cboi3xw8E9aqj7CUOAthjfuaGFC4x','user','ak_b6d993550e68608a','2023-07-06 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$GT85SAa5VOtJGuMgzr.nhHL1CtEj.Bn4JG.uqA/nzEniEasTyX5vC','user','ak_01a11967e975667c','2023-07-03 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$s6tISQHxduDw2MAFL88bMAI/yFmSESdE8x79G8vmWD3qrpbz3t9us','admin','ak_13692c4e61a46221','2023-01-01 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$YbfTA/wV2MtREaJLUZPSU3vdqpSTPogj/zYLhfc7K1alw.SbzJkBe','user','ak_c5f0bf95668729e4','2023-09-14 10:06:00',NULL);

