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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$L9Pd2ZJMemUejAaffc6dUrCNx5HWXWoO/hk7bkqsuwmyi5esVTYMF','admin','ak_a649157142d6faa5','2023-09-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$6S9OGOYY1iyxILJjVHexvjjCkt7NEFtpyrRCk4.GIiD/xyPOwHI8S','admin','ak_6e63fcac71457833','2023-05-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$80pIrf5WelT.YHrz9X8nqdbHEIxJnuNz8U4DEcAqoGgAgf8rqR6fg','admin','ak_ac04a9e1cf30d42d','2023-01-26 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$6AgUZc9YNuKL2yoeUN1GQ04q01I0NHaBfixPMMxH5p7vGvb7dGM/k','admin','ak_ca8e8b22208825c0','2023-07-21 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$qB8d6bgNSiDmj7MmB3ZbG20aGSHWsBhyl5vGua.qD7oE/DZPPciMv','user','ak_5be955c3721f4df0','2023-11-12 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$US0dsjiOSluHI6Hxrc1fblRJ9I1RgLPdSsHGnqtJO9z7Vv.oMXDbM','user','ak_a8702a79fd14f178','2023-04-12 10:08:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@company.com','$2b$12$1pWQLVGXv4wnYM6Ztc4AgIc2J2B2SFtTs1iGW7JkrB0Ks6NMbzTSX','user','ak_2369f9c6635bc3ac','2023-04-12 10:03:00',NULL);

