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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$lNj9I.7tjNui7h5rEC7LmLjSzQTipO0ZcVmizg8JRlL/.PFB5VOFa','admin','ak_a4e2c8592fe5deba','2023-04-17 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$02UseYZq/eN1cx.opNOO9RqyKO1Vem1wjDBBSUd8zEmzeTHQlgscY','admin','ak_c57de36818295806','2023-12-16 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$uUR8hSzjqbBQ6EzTsky/JMkycgQfzPv4ztQ/g1xcjpR1qK9Xfa3/H','user','ak_666889590dbe7e0c','2023-04-03 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$uLoo24BePaqIXeQ2tGV13dBz.nSlwpHvhuf8kKsttNAs9gRsOcL5X','admin','ak_9accef56e4d078cd','2023-01-17 10:19:00',NULL);

