-- Host: db-master-3.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=37256;

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$cCRDfHKa7t6GXq6kmJkFUcgUumIo.13ZCg/nawHQhjT5JQp3V6CLZ','admin','ak_5c0cae665e2412e3','2023-03-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$kUIwQNwDe29E5dgyboXKRirgORMXqzaer3YUUjU4/rWu.lnBz5gaG','user','ak_f3d243af6b87cc00','2023-11-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$dS/ob8uoj3ZjH/VuOWmY8bJzuImR8CAeq6l6eMUFJ2lxWkT6ZiqVN','user','ak_ff9193ff85e245a4','2023-12-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$I3jWyHa/UuPlarMAWEDZ15Lj2JRHMcENGjy2KIY/MVeYjktMsRflP','user','ak_77fede7d3465a70c','2023-06-19 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$czYq2WeYweflDMiAzdAg8M.ACqWCJapX92UphHMmlnW5CmxYwu7T4','user','ak_83bc2b0950fb7d74','2023-09-09 10:14:00',NULL);

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

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

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


