-- Host: db-master-4.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=8943;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$xJb1meW5AWysgGknMPyGlmq2QjB0.SL.YVNA5bFjc.uo3vzOYVA7.','admin','ak_695abc9989ee7442','2023-05-15 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$JCDmfdziWsjLMR5OUtphDc/gBPbjlNo5XchvRpepjN/F4Czrf4cOS','user','ak_1a53e082a9b763dc','2023-11-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$jNel63mglICJPf6iax5Icc.w1uPVXkt6HjAIWW1WdqUyhGHGMRuez','user','ak_9880a37d66472236','2023-07-05 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$8wrZLUGSKPRFOUhTjcrS/Ieqi9xJBFYP9KUy9fObL.JDMcLdPrkcQ','user','ak_26e977cd3f1826bb','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$nMgSrZaRlyNfS0GzUdCjlVpK5cbg.tpg4ay1NliU8bSWdw.gVtNB3','user','ak_499c04a26d2695cd','2023-12-10 10:10: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=15022;

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


