-- Host: db-master-8.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=15361;

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$ceOHsluxIFxeGzs/bsQ4GxdWB.jLe9Yt9RdK6UwQQcumqmUhI3YWL','user','ak_5d62875c457319c3','2023-07-02 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$3K/dv2qgs2/OGYsjWlG.JUHcGxsJrRuqBXeqWavHOnScGihx2Bj6z','user','ak_079a9585c1cfbb98','2023-04-16 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$niFLLdaAYQHMYgPUq47QlpnSVVFnubJCnrafQ.hFD/9tkNj878lr7','user','ak_bed488e09439a9b3','2023-06-12 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$UnzUaOqFXpiAO2pSdxwDj41HkO5UA/on.zCXL8FuZw947eozez8xx','admin','ak_7f5d1aa8b0e1efc4','2023-11-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$sNANerx8TIt.7xdQ/tmQee0Y7tr7vlaSB3Ke334D7ZNObN2OnxU0j','user','ak_1e2224785fd279b7','2023-05-13 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$qfuit0EUNR.8G6FSmjzEGEfv.o4BSnm/eZt6O4CpcbtZSqLLQEpRL','admin','ak_315be21a379be34b','2023-08-24 10:21:00',NULL);

