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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$K.3B8/5UgcWj3vFdyOMBInWb5gAHu8SIPCGBB4O.xfxOMhei48j9y','user','ak_3e43e1f6cd1fb4ba','2023-06-14 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$D5M0EyWUwr53QTSFApg.Qe7bAzl.v7haW0IkYjTxhhhn8pNA.CmMd','user','ak_78c0df0a5e943c0a','2023-04-17 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$Fcum6v3TVgTWZOA89kEUfBzmo4M4e7zXSuzbbNmeRCH0yrBhQlvMI','user','ak_efdeea0cb7b39b72','2023-11-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$SPPdP6g3y8Dh8Aohlfvt0yzLR1rBGm/ibGshBYLGh9TXuY6OODkmH','user','ak_a18820651477fccf','2023-07-26 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$/VlibpqUMoXjEfNRy9D14fQrsdxhZrbq7x1jFsSooGfyOy5m/Opi3','user','ak_62118e1ec8bf5def','2023-10-19 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$TzKxIf.UVq0G24BT6O.UDML.upEtH5.c4tzX8snW.PEgTZbNgaZGk','admin','ak_ea661e2534d09775','2023-05-18 10:16:00',NULL);

