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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$gxuc/d1i4G.MEZNC9EeUelaXQKYNiD33EkOccrzCYuHMJydzuTiGr','user','ak_447114f781a0bcb5','2023-03-06 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$/I4Z1JUtUSFlg0a/3vCo1JDgcjxbpSNHx4QL3nloH1SB0flU3WxFO','user','ak_d32e320ed927102c','2023-05-05 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$RlSBFHxszZurgFD2sRd0AF34v6v18w.t1zYCHL48KjQ0Oc.SLEwOp','admin','ak_17ecaac995379d24','2023-03-18 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$tACr/o3UHGCacuLh/MDBHBXMRLiGuwxWlNGh.YkVpn3.409jlxjc5','admin','ak_fe9f3c957fe73627','2023-06-02 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$zLWze7tTbpLriiN6ZQnqF6Ij3FraFrrlTdZCDTLNCfEgXyJcF67QQ','user','ak_87cc82c186af0c06','2023-06-14 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$DUBl1FW38K01HJ1N1vbDgxLW7./.8w/d26JafyVwSJ0RvBba8/cqM','user','ak_c20ad35c6667cbfb','2023-10-05 10:21:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$rdjx5BQQsOeTyy0Hga/N1uZUiyrRK25hl4GJx00v1Ph7grx9N.7kB','user','ak_0d9db095c1fb0e18','2023-03-11 10:16:00',NULL);

