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


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$1oTlyXANkfrdaWc/zwCOpx0NoUkkck7UkmtzQ22zNN/AcTl1DD334','user','ak_820ed45036e5348a','2023-04-27 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$bXUacwEihT.3kRwumyDrEvumI/iBSsvZaRbpg6noE3EJgMwHRJs1m','user','ak_b9ae6f6c4512ef63','2023-09-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$MgeefMn7/Eq.GJEeSPWFY3Ix6dWsGHL5B3Af5LH2tyD2o1h.wD3K6','user','ak_09d3b42bd18f9175','2023-01-27 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$0Bc.cls8V7GzvvkkukJN3sKjYaqkq1BsAioMVEwkzF69bvNEJcDXM','user','ak_7a2f41cee17da2f0','2023-04-16 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$K84M.cazw1GmQcMkBRwP1BYPhoN.W70uLTmGvZnPh0FrXbQ9eMH1H','user','ak_2e435dfa1d169e2e','2023-01-12 10:10: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=47695;

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


