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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$u0x45gp7JLfw1BWE/bgiBZl7v.0IHrwjDoCsiMkWtIIAKtibLHk27','admin','ak_d290846abd78d15e','2023-07-04 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$pgNlN0iyAhiXuHR9ocRe0/DyU/gNCFO.Dg7/NKRrP8JUuU2.FQ.oW','admin','ak_2e54ee0bb8dbc71e','2023-06-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$yahZwy3Biw7Jy4KSWQdwHmXCeajYOxZ3AYQmLDqChIyYSpgLq2e5f','user','ak_10aafde00037cba5','2023-07-21 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$EIGa23i8yNOXrBE575PgBVnv2NKfKsJ8V5wHPsb.IscJZ3OWukQz8','user','ak_d682460369a8c12a','2023-04-01 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$9fjZJ4X/KPWtGNbp2SB1zjwSqP2pVPCbqI.q7TBRtBA5qvO5z/zQl','admin','ak_60785a3a0bce6685','2023-11-21 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$y2LD.1Iiy/xqahZCVPSMC6weIAoeNvYQeqILYxbP7Bp3XPNrGIV8w','user','ak_853acbdadb6ea882','2023-11-18 10:19: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=40699;

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


