-- Host: db-master-7.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$vWGGw2tA9zK.vCGKuiTTNktGp5PI5SyRHOFJPmhnoJhiUPDRJ46Gh','admin','ak_1ebc106cbc8544a9','2023-11-26 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$APDuGpATOhzTMk4n/rJjDcfnO8t7lGMgBtfVtYicT3x3ghhdPQmhh','user','ak_72fc09d9676a9d83','2023-08-19 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$63H8Mh59ToPMFkkOamkyAsA.ZYM9DfMf/6tfWOjEtabrQFxPcYQe2','user','ak_2704cd70d1db4d7d','2023-10-28 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$odUhSA0iuDSplS4BOUcvc8CX4v9iIXUUziMhlwpKLELKba6a0z.vl','user','ak_285f3ff025f254c9','2023-10-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$i.C.C/lyk/pYUzxJGH3td.fAAMuHUHtP3Cz9v9WWO5rU8qxmsNatT','user','ak_f33d9dd1215e449f','2023-09-15 10:09: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=5624;

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


