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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$4uRqUy92NLGy9bScI/BX/ciqN6zjKVGNn34dLVb.wBbY4MSP4fkCu','user','ak_4b726a7811858921','2023-08-04 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$mMCURGyjQAQ9O0IAlLUauKHtvflfbSzvJdYe4no8XeuUpVbPNeRb5','admin','ak_1348f9c59a546cca','2023-02-23 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$PM93IoSVovg68lQMrCQ6X1BFrGZ9m92OR9jwplZJ9rbfOUz6NGaMh','admin','ak_dfc13ef01b1dedbd','2023-04-08 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$MRlwlVWrqNdkQH.m7hNZZSC.l.iHaY5cBrnIrg84VCq5M7rI8smQo','user','ak_c72da48ac181d234','2023-04-09 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$yyvKiKbGI9I3RZseh2UxUO2/KfGED/mx0STUf3CJGehAmcMIFF9mT','admin','ak_d49f2cdcc7e41102','2023-06-11 10:20: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=38597;

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


