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

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=5211;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$b8UhMSvKm9Ch11x0x0h5xHj.StHRZ1OyHNyZ0xJBNmVkVYMsGX2y4','user','ak_48a9489ea2413928','2023-07-03 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$awJOSCY.aD2J3P7yYkVtgfKLAmQnrnlwpk1m0U5yiBAzupX.iwnI5','admin','ak_23c52c53e642f1d5','2023-01-23 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$BiefBRRvJfIU6uPCOX0Q2y5QFtTe2IcysrAKMKMxu4cfLqx/snOIA','user','ak_3c59315e2d361078','2023-07-17 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$Ys37Jq7DGOQdOK7UKsMilhaZcb6iDv/a4za/pfVm0H6rKDs58LYES','admin','ak_730cc95d663eb91c','2023-02-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$PnjAdbN9MD0Rq4eIRVpEG.RlVoIMt3bYmYlThkU/VJck4knbBTKFF','admin','ak_57329a7f5f04f866','2023-10-15 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$6.WHYAPt7lv19Sa9ia7BO5RlN1ANAFll4KBsWiE3vX9G8gV0roFSt','user','ak_9dd9758cb036307a','2023-10-20 10:02:00',NULL);

