-- Host: db-master-6.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$x3Wo3Sr4tg50o5CDsXGOtIaIDi58NGR.VHdusmKE8pGsKAS/UGyDX','admin','ak_b4ca62442c865d64','2023-09-21 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$xdzDwCnp4el4zNeBi6D3AcHJTl4kVPO5rA9DT2mQsj.o4AEn.tnv7','user','ak_0c36597a5a82bc81','2023-12-10 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$R2PsBGMx1m17cwMb7i4sOJHpn2QlPhkltjdwrYFffVWDT2RH9WyxR','admin','ak_b8833a419fe39dea','2023-09-11 10:06:00',NULL);

