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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$ygc7LCvo0i6bw2HTY0RGsD3f8i3EeLTV2u2IIHTb2Beh9s.ua/6iS','admin','ak_887a79e2d6bb612e','2023-07-14 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$KQ5JwJiTw06Pf91Ekm1rVNnn6Kx29lN8/twSbUb/Cuc4PcvKXHS6X','user','ak_07448c02e9aa7bf3','2023-07-21 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$NVED0BGBooioVftQE9MzTXwtqTrqWrZFroXOYuxlnt2dyvcYgQK60','user','ak_1dd741a5eda5fb3c','2023-07-18 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$O/IwAcLa82dmg832xVSVQPKLrW8WN92TRjlfys56OSUOXCq5te7Fr','user','ak_1624ebf2debdb7f0','2023-01-20 10:22:00',NULL);

