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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$Lqy3.O8pGGTKkXjMSx3DfYfn8W0zYHSgidUU5CgunBffU3y8P0pZQ','admin','ak_526bb8232792dc8a','2023-02-04 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$bclIXwsRcyVTzhHJywP26mkSHnOPJGh/MPVnSDbEWScNIfdB9YesQ','admin','ak_7bff9c25ca71671e','2023-05-06 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$XMXx2mL.Com0R/keb1t6l5VYimjz5pO5BCfzK3o434EhpWBOD4oKA','user','ak_4e40b76d2d5fe462','2023-07-08 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$MYf/lLLA1pLQkwYd6mBg3dd6c9o2mJf.j3FYsaXetsc.GaDG/O6I9','user','ak_432025d98b467501','2023-11-24 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$xd2Yyiz0lA1a/YvTbFJiqJf2Rqd2uSETGHB2vG4DC3vyAzIbfel7t','user','ak_afdc4e7901a3e95c','2023-06-12 10:02:00',NULL);

