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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$suVqQhOj6wWPFLTtfnJqP4V/ynsQCpmDShGaOcDrCilGnmE0g9D6l','user','ak_6a1c3482b6e0b0c6','2023-07-28 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$P3E3TM9nV3CvL.6Mh0MxKFlhlBMtYYwzj0J/c660Fw4RROK4t17e/','user','ak_2463bacfdd3f1b4d','2023-06-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$mE7Yy5E//cUhHMWk4TuSAPsgIYzQV7iZkuSZbCe8LwSgzoDTW5rzX','user','ak_b8e92a5885de9a3e','2023-02-16 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$qKInfqnhw.bLxQq/7qI7SiSjRuLbWSQOjuJpQ2tYjvMEkIy0rPTbI','admin','ak_dc6392a49e30d9a4','2023-10-23 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$MZGBVhZKpuJBll4gw/nSheZozNsTRyyS7qVKCp01oqktaNhfbkaD5','user','ak_d32fcab9fd01bac2','2023-02-04 10:08: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=18058;

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


