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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$dNiWi.OXEywGx/7VzYrhOOEDwog5GQuckN83E.C4sXI3KujKMLiMI','user','ak_0f6f35fef455bfc0','2023-06-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$tG1GtAvOD9Ygp0hyK2qwWvzrbA1PXoddwBRKdbx5bnCkqQbWBGRZ8','user','ak_afad596943b64b25','2023-12-08 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$10plBs/wWvGhwmdvKy8ZImUuixjaPYC0TcfxeWFU35z4V/9qU8Xe/','user','ak_4d63fb5caefefc9e','2023-02-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$TLgSSI3OiBwHBi/gIO10naOmwhftt0lxbNjpL8Q5U5I40EZv78o0C','user','ak_b72271f4040834aa','2023-01-13 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$EdbQOa8eE826cyqH25OCWobCswBiWol6DhsvnQ0Gd096ZqzIZc2ID','user','ak_84edd2f00961176a','2023-09-16 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$njtjxra6jp80z9Vt59mwoN6L1xZszMiWzgwT9WBpLOwkVWAHgqdyU','user','ak_fabfd10d611fd5a5','2023-02-16 10:20:00',NULL);

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

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


