-- Host: db-master-1.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=46832;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$HQc2KAk3QGOd0RaAKIWLLsnC.mJMBOLsIh8gBGI6iEXhA/2V4eNAC','admin','ak_757dd74080dbe2d2','2023-05-03 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Aq/tOUWp3Ng5sTNxXgKHgfEujxHiv5L3MZJT8ry6rIJ0A.KZkYZ.2','user','ak_60c985d811cadafb','2023-09-25 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$afzPUM3n8UZX3ErSkWwEtVYhMb.t07A485bhv2EJIyceXWLFq5Khx','user','ak_b61c9fbf196f2088','2023-12-26 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Bb9r/tACm19ITACWRMR4Gn.wNZg3p54IxFTO9pslTWnyCOH5vneRb','admin','ak_0685931539739e37','2023-08-22 10:17: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=48463;

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


