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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$B8yklL0EO8OrunU77xMJ9YC.JBn8RYmXs/swzm1Ze/UhY6dZQC0BA','user','ak_1417085664d82989','2023-12-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$wDcce/0FE5zgf9hn7oaxqCdBAeDEgbZHIt8VOdwuQsqw54Nq69Fiz','user','ak_f0f8845d59f26ff2','2023-07-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$h.UimTvGXL4.7PiwKup6JAe20k/Nh2gYBJX.9XXnlkzc52sveTEPK','user','ak_4dc5850394d59479','2023-05-03 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$6VhhaXXUFbN/EtggA4SQOZ71EsVTjOh8mWiRau.WEGk.OMbMp/GDO','user','ak_404ad9f11dcd72d8','2023-11-17 10:16: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=42751;

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


