-- Host: db-master-1.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=29807;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$CsNstqbXJ.0I7GHJhfe5J/CLU1FtVZJKNDId5Om6mKPCnQ01d/ems','admin','ak_6e5ddf22d656bd5e','2023-02-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$lH9CCp02PWWxgzsphfbSaknBMl/lGolTeHZc02LC4mbnIzOH/D4T9','user','ak_34ada6091e3b801f','2023-06-14 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$VNtdLj.ZrkFT5kEqt31SGzKhfOturxBzDShP/lyUvbMh7/Wdq8WJu','user','ak_05a12c2263257491','2023-12-23 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$bsq0vKYdzoFGNxKOqjGBXneTGLcpxx9Lezk5cgzexfbQ7PhSxtr8m','user','ak_adb0f948b80590f1','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$vYXN6JOivaJEtuKAPTe4.5KIZtR3JyeyOXiazZqLy4tsDKXOMy8Zc','user','ak_3160caee2a0eb453','2023-05-24 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$8iOPO3ca3hxv6qtp6te0gQRY3ebfcEu51E67ZmciJ9nklySyOP2JB','admin','ak_dfe44b8d768477dc','2023-09-14 10:18:00',NULL);

