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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$38uVzfxKLs3xv8YDEl48EmBtjk/QtXK8jTcy5FZ8Q8lDPs0yZ3oda','admin','ak_5fc7f59a8caf49d2','2023-12-12 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$kHFGWp0RfTz1FuQIRTTWF0yTXm5Gq8xNgnLItDP8DPfEoPUM9buZX','user','ak_1a93e1ec5a0775f3','2023-12-04 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$sGmZs9AnuNZjT9P3lMqTCIVRUdEHiNlBHVAmIQI.3zrhuQFTE/zs9','user','ak_10114846424bab86','2023-11-07 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$3te6qkriYhd/m1cEcoBsjx88WVwryXs4kqmEpjLpXko6YBUflqo5M','user','ak_34d3f454abbc12a6','2023-08-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$qizh0jmWTtO8IRe4Ra0JlltR1XHWB/EjDd/ZhUkkbi9eKSUij0wEM','user','ak_065e1e99fb6ac782','2023-07-27 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$rleSuK5FEFJQB5.oCW99jhN2L7a.4OJ9Xv8LO8uFw6qZdeJI5Q/Wy','admin','ak_019f36b49ba0fcf9','2023-10-02 10:00: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=48181;

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

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


