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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Rqu0vMCTj8pzeRauxVBsFymOXo12JD2uknmOJkDjHsZeEQdPOfzpf','user','ak_37cd3e1f836d98c5','2023-04-25 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$7gNt0S2Ro5VLA.97b8rLzmqrNcFa.fb5KRrQLx2vBy2wM4pjHlM52','user','ak_b286bedafd916dbe','2023-04-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$zRja0Yr2GfXedNHM/orMQHpg6hmgcRDgN49cXIBHLIw4wZBdnGwxU','user','ak_2d1a074b144f9aaa','2023-01-10 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$AD4axyFZEj3OzmZR/xiedDvZKFgSFdTEXtUbLfK1n/mqscD0xFTzT','user','ak_b975042ec7d52cb5','2023-06-28 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$vnVPtrma47OkRNe6yg1mrcWrQY2CPctk06/Jct7lWI3PLxL8btD4U','user','ak_73765a568476213f','2023-01-06 10:07:00',NULL);

