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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$y4r9HOFWqsD3IraVSOKU3kCkjQ7E.nVvBZwaRFan3EQsswUfhMqHL','admin','ak_e1404eee93656f36','2023-12-26 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$7J27adI/zhJRcqxD4trn/8ZlEyp.gknaug5io6m0wJb.9BZc5q8NJ','user','ak_788740cabcbcc637','2023-06-01 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$RiGpqnkf4feFsYk07iMIXZfqKAo/AIjTBZbugb6eg8u2NL0xD5M/V','user','ak_38f72dc52fe4af63','2023-02-14 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$Z0T2PLjmZ.DttGI1wwr06bnbj4L1.2bF/xk5JO4IaFssVahdmnkBK','user','ak_1f67edddf782da41','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$yQSf/GBmhYq./cT9wgb6q7L1H9ITsZ2g2KdtOeirFUUcu.YkFuB5A','admin','ak_7579c0761ad6ea0f','2023-04-22 10:05: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=27646;

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


