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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$STLxoSP27ZC/NSJWxRVeUPUsx1pYnP20VthVE4bJ/hhq6JWvCnBgF','user','ak_8a09ced810d3a554','2023-02-17 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$flsYv.0BI/RL3cFCLTvNv6JSS4.Yhcfw9yIEYcl.6UQ.qkxX5fE.Q','user','ak_1df895836cf3b63e','2023-12-15 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$hEDPO1PCl2ciMUAinePao8BdmRGhjY8xEaBfjnZOmtmSx0977GtCz','user','ak_5b63d0f92f51e442','2023-05-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$vUi2cVJVYFyaJ8RX9e0X6cF/zpviUVWzE/WotmPXsDKYBqOhQFDoF','user','ak_8a828a832005efea','2023-06-06 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$RO1AexEQVeGn9K.KI839JwLCBp8uoTGlw/jNKkaBZNJhKdtCMtKLS','user','ak_dba933704d8034b1','2023-07-14 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$bWClwgukxEBBB3L31LJbOsZh9mM.DM89VEb1aoLNsU1mD7ujEhKMT','admin','ak_6a4e9c7fc6832a02','2023-08-25 10:18: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=20255;

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


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

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


