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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=49586;

--
-- Dumping data for table `sessions`
--


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$uWNd2EJB9AS3fRVSHUYTVdCS6uh0sBG1uSPmskiyR7llTCd7u4zo4','user','ak_e71c74728e572b6b','2023-11-03 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Oljhl8Iy9kxI58Tr2TXPY3HO70NNdOzNm7SdbuZqGh3CX0SWqAtyy','user','ak_20c6ff0ed8759ed2','2023-01-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$MDxkxOF5ynazHNBExkWnBnN1grD8i7gXH1mvhmjDZNEuXs/zG33OI','user','ak_6553f747dbc7bf87','2023-01-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$FeeXSWzAwgVEtSBENWIOPY9jz6uO/WHeGI6uY9YABN.Uu.hV453p4','user','ak_2db000a4215b2193','2023-02-17 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$ppSXU0/7UcPOlkPOjdr3II4wHPAJDPHm8TLZ03TmZB1oBIw33ml51','user','ak_0b23db5d4e673639','2023-07-04 10:15:00',NULL);

