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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$QkZGphCgTLmq8kCpT2mwnqUqJh9M5d/6tUALNFyDcsybdeb7J1.jH','user','ak_b33d092f17d076c4','2023-11-23 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$/pFcVXlH0dphR9Bw1Vqm0fFc5qpIhheq4j2u85uzH7UgdUX3VJTSM','user','ak_8d15cbc203ff2ae9','2023-01-02 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$2G9Ugc1vEPokeVWHn.kNB1UPmTCK0DGdVD3FBtXs.KzBo3AwG4wW.','user','ak_2c4bdd230ccca232','2023-10-02 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$S7lYhE8F2lJdPMDLKFJLNzX7e1fkQ9Hb12oV9tiNcoFdGHYrWB4xl','admin','ak_6e275e37a1776577','2023-06-16 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$KVdMNzJ0AgSIJEbHcgAQNg2Di8XPlZvKXn7CpqWFYX1Eq7oPJiY07','user','ak_0d0ab63dda34c739','2023-08-18 10:21: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=12698;

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

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


