-- Host: db-master-3.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=39025;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$HPuZE2ccmgeHclMJ94s0IwARryolFd8MjAwDUQHOb8crYGMi7US.G','admin','ak_6917ad73727bd61f','2023-03-07 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$6pJErxdyPzwyRjqz1ri.AucZikGe5yd6a8zQ1Mo1h5XTnnn7M9dPn','user','ak_0964932097350226','2023-10-22 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$4u5rb2tOV91QlA2rwfNDwuqBuWnAObPMMImliThKdL2ZWTfjk0tjM','user','ak_bd17a7858eaab613','2023-11-08 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$1tnD58NILeF87dQFF1UKoyrQmeLqDfMNZNiCYv7IFGDaY8UeAvp0A','user','ak_c8a566841c32c2f3','2023-05-27 10:17: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=45563;

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


