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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$n5iHFHvYHcM/C/NtvhNQxf1KZYRokgHToOHeWW6SN/S5LytRrovQP','admin','ak_85e4da9c1a94b6b7','2023-08-06 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$podsIHLhrUKDmrdsp7RSQ9DxKY0U37Xmslxc9z3GPizk9lQJTdJ9w','admin','ak_d014d6b73e2ecb42','2023-12-16 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$VVPYFjRJZMuVHDLcizEe1IgI6mm2riGinnA3Cyh3W0lFrMG4QRQc2','admin','ak_f5b1ea9c905c5d79','2023-03-10 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$3hRrF8w1.J0pHzjX0b.9xYDXOJwUEG/q5qK9BcAnOnbVOexP543c5','user','ak_cb434b5e095d420a','2023-11-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$qsW79YOEhM8.eDvxwWFvsYf1sEymvvCSdLzpkkGpyXXHWNdr8b30S','user','ak_65288c2eb7e52dc3','2023-04-28 10:14: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=24493;

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

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


