-- Host: db-master-0.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=49709;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=34025;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$39GNdE6zOCP/DzMb7C3YE.kL.wafra9mYJ/OIV14gMeLTqe3ty/nU','admin','ak_1321aa9ffde0f6dc','2023-07-15 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$Ez2VdGldjs0.TXBpIL7Gf7BV7XKIJFPyHZSQDUKapqBOYebjHDw/P','user','ak_437c1c50303c02f4','2023-08-03 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$ekbFpr85JGNLbRDaDCjX8027oN6A4nlLF6PGU8bi3HRgUFOu/U7Hd','user','ak_9de3e86cb6d5104c','2023-03-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$8wCh82BGhsvAUHE8.Xjxj05PCQYxj7IEn.HdwCXaHoITz8dfEEkYK','user','ak_dbad640e50249e03','2023-08-01 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$mIP/eACpolM0MTixSGa.tMdh.KYR367Vu1CCtirq4nt9y2n.9QdWz','user','ak_e5131cbdc0a8e128','2023-11-15 10:19:00',NULL);

