-- Host: db-master-3.internal    Database: main_app


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$rNEDmMR.X711EwBds3K1jThs6UVsSj5AYTTQhNXrlNQqcXDcrZFEE','user','ak_b38576dc7248f394','2023-11-06 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$yW6jXxy4ns8KM0LSMOFSeMff9oauQFmmvyckjG3OfRAy9N52PJOd0','user','ak_a6a3ad18e5836ce8','2023-11-17 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$qLUqmBfTux8ejT7w9gru6HOsM3rxltkS6e0rlot5vDdiDMpFKjvCX','user','ak_f3f188a428c95dac','2023-02-23 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$MZyhkG/.gGVp1cpqRPO5EBwdPN/8ZJt/lqJ31Tphh17WufpFysO1x','user','ak_786f546e4bdb170c','2023-02-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$6e4MxljKYmjKVx3CgMP4ZOa5XWlIfcEkKmRVj6mk9STFYpCIIAHHz','admin','ak_e7c90854234fdaf4','2023-02-28 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$ixWBECImf8626yL/XpTPps/bzPbPaH2pNWwgWAwrRj939HYTuHaZc','user','ak_1554a6e43e0c33d0','2023-10-20 10:17:00',NULL);

