-- Host: db-master-9.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=1082;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$/y85sWlEcLfIstd9ToX/d05D0UEqoovjk..FxHXrC/oi0GLTS1xTF','admin','ak_d9fad54754025761','2023-03-14 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$C6WYM43fJl69V0VnJr1m.fKF.QLrjy0uMz5kDXnHmnIHp6lgZ47q0','user','ak_53c291723ce1d4d4','2023-07-20 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$0Kdoy/txEeZATZY0jImyLB0xz8CB0miJBa/czVgHJHQYITZ.e.ycQ','admin','ak_ea6af3f318d20d89','2023-08-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$eSFT1nzIDL8KRSiub8Xkp7fXB71N/X6VjrQCfULi6nFDsWR.7/eYS','user','ak_f343b14c44cc8a6c','2023-12-09 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$8qS0wZr9qASyNE5MUg4yy4yXV0fK5pX9w3BzhMcx1rh7FnkT22DX2','admin','ak_0ffb8b09a6faae10','2023-06-21 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$.33hKrbDudYEF8id1CxEpCvCl70hTUdbVF/8OkvGGcTBFle2Md63Y','user','ak_4e9a24de886fc110','2023-05-20 10:09: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=22922;

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


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

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


