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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ylYI/sLQm5vBYfz9u6pfQbh6yONbg5oLLlbwfoXVUA0Ep.i/vMhp7','admin','ak_342ceeb32783fd32','2023-06-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$lMVZnwfn8bu63mu3zm.rIchQgZsdZ.mhkVDXRENpvRZgP3h4sC6m.','user','ak_ef24cdeca94acf98','2023-03-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$1sKhnBSKLasdeTPeC4uCxhUKdfAQNjztjsoD1X4.OSIHpckuF3EGJ','user','ak_c7715313d7d2da46','2023-03-14 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$snSnA/yHgBhrr3xOnzMFwiZsvGq5zXXWhQrxgb1Xj4.Jb8.hKhY4a','user','ak_69e103be77d63e0a','2023-05-01 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$0WIwscKAzrmXEaXO6Y4mNzwTgvO8GtS.f1nGrLv5seEJwjlezQ/BR','user','ak_74a249c1c7cf7fd9','2023-09-23 10:01:00',NULL);

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

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

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


