-- Host: db-master-4.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=30727;

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$Cepoo2ktAAozRT3s3Mql9iFedCn2rPChBPBWgyuvcNqdMB1.3kIMX','user','ak_cfb983cee1f607df','2023-03-09 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$BcRi0Upf9d/dMITAzkxc7Hbgaosi5iFXUxdSennBBpJ5KFLmaFGUx','user','ak_7efe3926c0f9ff7b','2023-09-21 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$qITtqHukxRQXeu7CpSHLjK1..LnkBjiZgZAsfDLCN.2c8I8gLmuPF','admin','ak_a21b8327afdfbd2a','2023-10-01 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$B4pW3i7A5j3VTncu0lNvWE56atwhFf2uQuv.IZ.02ChnFHB1YOrD0','user','ak_65016ec60004e9b3','2023-05-25 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$VL.JzbN.TtGA8TSAVfviegElOzbTIdqQ2yRq6HVc43GHJu77TYaDl','admin','ak_2c9693e1fb72d02f','2023-11-03 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$1uJbTQg.bI0Dfyu76OgzxRbVAmvG2k.Vj2rtV4qhoae/bRKlyBvaS','user','ak_191c7b746b1b8c03','2023-11-27 10:09:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=44232;

--
-- Dumping data for table `sessions`
--


