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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$vzIs5jJJZHU2txgG1qErN2J4pZ0odKep2nD39ZFEeBg3A.9YmmsUo','user','ak_ad425fe28fddf281','2023-10-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$caw49LsUbYxmHvY8mYtRfxV4UoGaBL25JCVJ5NPUxsQKQ6sDiXczW','admin','ak_f158cbdcc153f943','2023-05-01 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$krUOq1S1rgx91rr2oc2hQA04bfD6u83DU9amBa4v1K6pBLaaSqOLw','user','ak_d2b33502381c4553','2023-09-26 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$c6.VJRoVhxAh/O5QGAOx.kov7ABJ7Uc3XgkfZWIxzsvXMDv2qR.J.','admin','ak_a2212712ff6c9924','2023-12-23 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$7Kqwd/cI5ZR0/kP.05m/MUNEZ72lXCEypl1Kz4xq.FWktvuaNIHY1','user','ak_949383b0b31a55ad','2023-09-21 10:03: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=25417;

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


