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


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$YflEfKBPvh.94/6Lvw6c7ftolzNEjwT2T7KdI5DML9PG/cawqQRiP','user','ak_7c92cff4365859c9','2023-06-19 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$R8rl6/x.9RC61Pc5UVbsENBN3qptNffcZ9bENjm4WLuQV2MVFkxgE','user','ak_67abb384a649c9a9','2023-04-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$MJCtFXAs1H9ZGffNqiQE2jxbHQVdRtrCQvP0j9xlzaRWbP4cCo7vM','user','ak_7aafebfe831b50b4','2023-08-16 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$Bzq0PN3Zh.psP.PQQHgSHzLqw3W2UrVGZ0nqeXGRB32JJWPKqCqdA','user','ak_ac46db2a29b5adc9','2023-09-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$R2xuBw3ZhVUcbIua2vCPa03eMk6RLXhx7QvkwNNBwSr/ao5vRsvCC','user','ak_f02725096ff5893a','2023-07-26 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@example.org','$2b$12$nWyRKW.ZobSuLFklUc8tO.o3QQUJz6SFx66RiuNzXR1x0v8xdeaQt','user','ak_ded0c3e4e9397ac7','2023-03-11 10:10:00',NULL);

