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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$ct.qv5gnjWQEHMVyqTdpWD7iJEpUmMMa1TtyJbvuiKmWjXLxa/5jc','user','ak_c7eb82e01c0a8421','2023-08-14 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$Hk27ommkm2FkUn2hbouG6/xhwxQqbVLt2QxtGvK1Pva0SILmxf0Ip','user','ak_1d256ac7d5f5a933','2023-12-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$qsD3Gh88tZ10bn46R0bQKPHswjOJH3mEfnvRf7YzLn0Duhq4AT.N2','user','ak_add36d6d4217048e','2023-08-13 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$A.r8uMheZwhez.GIRl6sa0E5dJWBPvuUD7Ode19LCn9UVYIWUiOD6','user','ak_d22c7dcef15cdd1d','2023-06-25 10:14:00',NULL);

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

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


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

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


