-- Host: db-master-6.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=33255;

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$kvEC1x9pvXojr4CdI8Um4SZahbyZkTCPvPXp4SCAfY0ce1LnGUIiu','user','ak_abf2967538ac417d','2023-08-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$H3UUltFJqyawaS2tzAz7ct647EbI9w9Ih73/1Xubx2egLcN56Cucl','admin','ak_d429ef30eb32b63b','2023-06-13 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$GMEb4r1Hi79ZT2hR44NRMquFZmNFFJ8TEPZaVeauwbOGYjk3o8wb8','admin','ak_5f043d9db72824dc','2023-12-21 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$nZcgBfaBywO/9i0SxnJX5sWpC1QNRfETf5KvB3KXlX5FXAhtCu737','user','ak_07cf49df0ae5e09c','2023-09-22 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$q3JqItySbBoINBe6pckz4GyZEPheBV8XPPqk9aT0P6WPSC/qKAhUF','user','ak_1862b2ac534f3a47','2023-07-09 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$3M4/LYKgOEuyH6xbqXAtYSeGHTFj61kOs7mFGVmEHOsfqXQWTQcmq','user','ak_169d13aeadc81216','2023-02-07 10:19: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=17447;

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


