-- Host: db-master-3.internal    Database: webapp_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=5799;

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$J.73C7sxVY7LXZx1fZDloK2Nk9GNiN8rjKn6JX9s5r7jPrezUoOde','admin','ak_06951c8d124aaab6','2023-11-27 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$eGua4UIoNzgXRVzah5QkX3Fv6uElY1y7LR7ge3C9ARf30nQvWQAME','admin','ak_a48614fe1c778724','2023-06-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$U5U7l9XKepwWuoWM8/1McV/K7XNTGhO.jxxYvN3e074txYhetmHhL','user','ak_ea242e73f3a2cccc','2023-08-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$DQv1VSWRYo7JxS7pWuuPrZzELF95Yh3CZnLMv1IxC7oo6KmEYU/oU','user','ak_51682431c13c80bc','2023-12-02 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$QgAVfQBbPx.fjqtsK2FbqfDsJKtxbTGllNAwhVcMHS6VNq9B5ixEv','user','ak_7ad5d4df95141f47','2023-03-12 10:16:00',NULL);

