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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$mFIcS2r3dBCtCeRTxikj0JvZNBy7C8/21rvmB1ScjgOH6nEUOD21S','user','ak_2b341e1d8ff13630','2023-05-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$tD9hHl.mrQPN5dsopz7Bvj.WOASD16g02xLfSvHdoBvGmDzqpoYfy','user','ak_54e8e61925335569','2023-11-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$XM.QvceTqClCsAvPl2HoPzXQ0pG0o9BqEaFDhNd3nmuW16qQyQJ/u','user','ak_83996a9106552392','2023-12-23 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$S0RV1dmCAmuqjZmeNxnV/7zkfD6DSJTuLSUQlfIhfjBa/IAlNxhrx','admin','ak_d444086205f54528','2023-11-28 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=10123;

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


