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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$M2e5XUE.agsbfr8RwNZ6D7JfxpeQD12Q9zhGw5taruvsJR/9Ntr9u','user','ak_b65fddcd8bfcf0c8','2023-12-17 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$OJI0d3wcJdz/Yb0iWYJshranhwu2HkCYQKrCdzbadgajFGdNQoLB8','user','ak_d74e0893200b4c10','2023-11-20 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$PT75FdNbfoB4ppv1sVYEo25.lkLI/V.STX/piGPtofaSACCbmM0q/','user','ak_ecef4f7446f71296','2023-03-07 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$UJTgPwuAfa0cHnzx0365Bmf4VnBKiPchrG8ZyPNKKz8TO81YpUnBF','user','ak_b085a17016c4a8a8','2023-11-20 10:21:00',NULL);

