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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$jMWhhZpBE1ofhBweHmL7S/kw40jGXF4GSOB1uOhB7XkqZFtsfLX1y','admin','ak_d5c80fb8c26e79ad','2023-09-02 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$j2SOOpRvuoCW8DjrcR/2eKjVCorTO3rX0G.gpTu042oYp1dxhf9Xd','user','ak_3bc00d5bb5a2af0d','2023-11-11 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$aXT0ekZhRCBaj7K0pk.DacdhITSm.Z9FTx5kYiptuKr2PSp0kazE.','user','ak_1b03c53af1a1634d','2023-02-15 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$cN7FFhMvpRc/kFMM9koYwO1DWBcnfGG0xU6o6YBtollqR57YPf8Ki','admin','ak_11a57427b2d1c890','2023-09-01 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=15958;

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

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


