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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$qMVHkvFR2r4ybt52.MwAnCAlqxYtAyH3IALI7qEUWzB9k89ai55w6','user','ak_7fb4b39be37d5e06','2023-04-18 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$k6BJGOJ4MsheXDJW6EQve.71ekQP.2KclMx4.Ya1vHiXgeuVMw72e','user','ak_5398043b5ecedd2c','2023-02-10 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$.8RHWMmmaz/E45WVjxhP4g6IY1Nx73TIAqZrxM2/2SSu9.p/VBhWM','admin','ak_46340b2b93429a9f','2023-09-17 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$uwfa3hJlj8LRr54CRgrgM1MnUJ7YAMLMQCH6eEtA4xuCzt02iAhdu','user','ak_126957191b940da7','2023-02-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$w9ZZYJYpYwAgXy06GeQWG2UQyZjQ8s4KIM0lW6hg7KTSm2BhwQJZG','user','ak_e737b1f8e366136f','2023-11-23 10:01: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=41509;

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


