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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$saOBI9X52OG0sfVKNG2QpcbRczjByHBEmAEf1Y9adYC3gi9rz3GSh','user','ak_a6568726ae4ecc32','2023-02-08 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$xDxbj8.YX9wSkev5uLskfCrMwbm/r4s6prlQIrj0AbmdGg2YnqTP8','user','ak_8f2d4f4a5f1b9fb3','2023-03-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$268pmWxe2U0WXW0TJHR1Kz3Yp1pDi47Bl9z1r9dIJAOyU5em.iu.d','user','ak_0b612fa62b8d6028','2023-03-21 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$KDLk/oTATcMtM5kb8pIJqUgDh7kkQ9zRBpRAVPlUw869FacNBlKpz','user','ak_dc11192ef4a01f69','2023-05-20 10:01: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=38076;

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

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


