-- Host: db-master-5.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$.FIDF3pSZi3Zg70k.kM8tnRrBiCIHr.iv0G4qDHPAor/By5GTlR8v','user','ak_2b4d701636ac93d5','2023-05-05 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$F/y5R9VV6AXPq6xIWFoRrUcaBD5zhsDk8f1s9o.0AM/5dmiISGJkE','user','ak_c48c371ed851e7cf','2023-07-03 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$cVaUuHOlROwt2Ds91eExYNPHqWE3XiPQ.PBXOizDuO/Nb.TwK/uAk','user','ak_cad06a915519fae0','2023-06-02 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$8VufMwMSH3oFS9bK44dGLyBLntivviBrI2M9Ld0L6Vi6qU3pdAVc8','admin','ak_9e63980469900c5f','2023-02-24 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$vT0Hd36MgTfX0TqXl.RAL/7ClZxVE2SdAThSCsecw9M3dDMNhkA0G','user','ak_f34275b4eccac562','2023-09-14 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$qm2XoaNIQqKl2jUgsLa02SJaU.hObbfQc6m8pVKUgU3Pm2wxDaeqa','user','ak_77d07a6a5ff7c359','2023-07-20 10:05: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=44778;

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


