-- Host: db-master-4.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$HVQn4wYz8dmpKYJQs3iRGz9Fk0ApdH5lNRah/yVGqAFJXttsFl7vR','user','ak_a9e75b531e1ce600','2023-06-13 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$rvgfAyz9p/OTxYOkBEBsGbeveqJj6onbk2TRmjPTZg60ElTtma2Jk','user','ak_499581698ecf23a7','2023-04-26 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$FwpOcc8Ne1zVWwufNlvOT.O/T4QTCy0aUWCCjtcgdP.bFFOlNltMW','admin','ak_496099253bf761c1','2023-11-25 10:21: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=7992;

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


