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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$T.b4/2ONfFI4VFMWpaeAKpcSqVmJVZK.xZhvIzWr90a7P4DN15rfC','user','ak_f1b56f5dd331e5fe','2023-10-19 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$muxZy2wRDTQqI4hf55slZMQW5psoH.mMX1yhfz0wdP2lnIexGY7Uf','user','ak_19987e0c33468a1e','2023-05-02 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$2uqcOT3oPXiH5ye.i9HQaBHt8JI.qCGKm8kzfCUjbK78iys4gFBct','admin','ak_9f7db32b75ca6288','2023-08-04 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$JOJ/bRO1LcnbIiWGRWrh1cjUiaChEW2/jKcI6N811FnNBHtQZC8Wt','user','ak_20a402aad7955f67','2023-02-08 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$Zu8/Nw8VTAAAi/AO/VZUQG00hLZFiZYVPUcP8eNA4xK6RRGiI6bEY','user','ak_a68be086a1521386','2023-01-27 10:12:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=43596;

--
-- Dumping data for table `sessions`
--


