-- Host: db-master-1.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ftzOSnw/xz8R9mUV1JLRxD/veoW2rMY3cX.Zi46oHO0/RDqrlIQXj','user','ak_3ea86fd8ceda13a4','2023-05-04 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$BsTx/bu3wJf164u1sg8mTgrcaKKPFgNfz5T0Urw5/q5zYwYOYpYbS','user','ak_8a246d1ac12c07a0','2023-11-25 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$9Sw.FmGkxh2kMFGOtHRH5biH3AS6BIu9ZFgh3UNSqGQq5ACGvqfpF','admin','ak_e653f1e5801abc70','2023-11-08 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$rguAstATCfj6FN43zACUnqktfqQmMJbnHlW.m81QMchSSeuJrEp/T','user','ak_5974f540fdf9ee0d','2023-01-23 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$BiGsdelMYmmsGnUoRjQ80FSoP.VtuPl0bhMWSXDjVVIc1Z7qd8iVm','user','ak_16461f0b05891d11','2023-03-16 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$IAmBDigPntiadT0oHEaNVu74.68N7.123pobUp1aNOH6dYUeCCUkI','user','ak_54e8dd65faaa0f34','2023-08-01 10:05: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=2337;

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


