-- Host: db-master-0.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=14863;

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$kJruKRgQD3YDDKwURjJ0tPa/vnbpSOpmITUft93tA/Ce2HnXXmxuy','user','ak_b570b9ccb7384969','2023-09-15 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$Nsj2BPls7sRZz.1ivC8mwJ2FcZ3oFgDLoa.zBfKa.tebyPSDYN7Xr','admin','ak_0e95d0e5f9cd834c','2023-07-03 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$BWgr.YhUtkgN2CJaffemwBfShX9c0H/w69rj3keqJtP2dk3f8VD.l','user','ak_e579fb8398e35de8','2023-07-18 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$JXax8wc7aAFtmPJLIvn1bmLKim99cSjRNTfcR4u/k0CRWDtSZIdYY','admin','ak_de412ad1c951de92','2023-01-11 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$/dqj4sL8Gsy7AzEezBBvqUc1WERH5giED.TND6bS0qMqTFo8RHC5Y','user','ak_5f683aca56c6e736','2023-11-17 10:04:00',NULL);

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

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


