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


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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$2gDWpziE8TKdcql3q7JkEsMPW.771GJzTt7Y0Ian9cetUr9hr2Bvp','user','ak_540390043c3ee74c','2023-01-26 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$cG4c0jgCJP25SxhEGYTv0VVxDXugOHNU4ko3hOyfPyUmxqnAfai1r','user','ak_b30d8c4d11c9c1a5','2023-02-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$udLMrtHkn4D4bife//2hakdMoUwvFIjZfF7J8dDjFmgHcyn7mpGxY','user','ak_b8d18ddb83ec29ac','2023-04-17 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$dIcsWxmTImUSvFRQBFPPYgmFR/Hpo1WNxmy2CrkuqxDAOa6FrLe2y','user','ak_aa1189e0514ceb41','2023-01-08 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$fZ3kxOYOss6svVxICRYMsnIcCHwjRzmyPFbl4EJv/cUeB.vwoe7KT','user','ak_850292735f2c769c','2023-09-23 10:14:00',NULL);

