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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$kIW42I.5X92usXczdOqcirdtwaWt478ik8vl.kqLntS0.niOHypoM','admin','ak_b7a530f2028b5559','2023-01-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$F3AybCjwCxHIG9y7VlIzXdClHCxec8fM5g9y6zORjTPhXV/7aZtWx','user','ak_cc2d8877beaadb83','2023-03-12 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$RXs0cqqKrTztFwuzow/EWDmr6bDXIuzEQPO/Z5tWukermd2i7HoHU','user','ak_e63cf58c5ea3dce6','2023-08-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$Do4W8xmx4UD9uuMW5j3Ecn7V0icGSGXKnUJHYruo0SrYabb44w/Qo','admin','ak_a5ff1d3e060c38cf','2023-12-05 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$wnRStELlt8bgR8EgpYXk7KAWsOULr/8QvQf5c7vFxGPL7odPzTpOF','user','ak_76d17d1d0671fc21','2023-06-27 10:04: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=4253;

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


