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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$SwvoFRAEILAEQx24Mtj03JsAFe7O273bZp1EEJMe5mTZj9Wqvni4z','user','ak_25d78f1915c927bb','2023-08-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Azh58W.Dk/I9lUjytjQkotXFoWITaga.gyAbtOLv00zGlWofYR7Uu','user','ak_9176e96c7c222f73','2023-07-07 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$bEkEaY2My77CCErjuh/SfcVG.RcJ2T06xIMBhVpV5wFSM.X78.dus','admin','ak_490014a717cc22d9','2023-11-26 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$U1prJRIj8hdNb9MuDjoVorImPDjVnWRec6OS/7Ye15rKP/frhdXxw','admin','ak_dcb0b1bce814a779','2023-08-21 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$NKRfDdNAq55XpN6TD/fH8mKN3WkQA0Ppwb9zCZ6/Bjz8Kinu2HK0G','user','ak_08df5b4ebe9b345f','2023-12-18 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$DxRnp3XmDxy3/MBSINSLt9LIpPJSAmEtQ7KMbbxO5Rdg4/utSvw9k','admin','ak_964e0c2acaad79ef','2023-04-09 10:13:00',NULL);

