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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$XkTT737KGhQm.HCR.TzHViUb7m.YlzZ8/434nLzsoLRV8iLLxDq72','user','ak_189c43ec2d55bd40','2023-07-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$vFvuoSYghW7UPD2RV0f5m43/H45Gsj19e.yScvGLuwikFvLX9TWyt','admin','ak_d5d925b28b193975','2023-07-01 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$qIOl7w7CCHTdrBlc/wvP25YMCyoeEO8ofoSmBN12hAacri5Z8dbIo','user','ak_0f472efdb2d0456d','2023-04-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$g8d9f.1r4eEhzmujbc4ndFqKKO/uAVABrwNm170V5RYUM74UauMeV','user','ak_9586a115b6e90b94','2023-10-13 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$UKt0a.u8oxwNEjhOJG.JwW2Tw0A4XhoBT7YzB3SKupVqEGNQTsXzF','user','ak_21d10919acbc47e8','2023-08-19 10:16:00',NULL);

