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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$H5Lc7AA6RyfUXmwc8U9BB86fzQ3gnMwJMKX/b/33pog6OIOw2Nota','user','ak_d9b21c1c5e22bff6','2023-05-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$lNEtvELiVaNfpP1G.6KHJbdDzh/8fGAsz6o9Xp3ITWnwwofcKGQf9','user','ak_f6f3028c52b7b475','2023-11-23 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$1HjjECejiQGfNZOZFlnpCCS58OKZ3icYfIVkATqS7nLF/NPwz8XZ3','user','ak_099258ae8681b56c','2023-04-25 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$aadtIKZOUmInXjtDKuEF7JN6O0WRrr63RtAaLjHXvzzmBZursqxiV','admin','ak_0ac721a8d161f2b2','2023-01-21 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$FDaZxvpZKj73kcjP1HP6ikCB04wehMPMfgXr2am2643tub98HqSsb','user','ak_95af003a6dc72c4f','2023-05-23 10:11: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=31670;

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


