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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$M8P9kqm0u2Chmoxx5WWOehd1IhU2LZ9MhrmnfP4qmrZaYjypiRd0d','user','ak_d1e01f0018929402','2023-07-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$.UY4oFTrCs89.nDqgLf7MYJXzcL9YpdAHBPuSAECLZUerwUYkg.rO','user','ak_e5ec1370a6b130ea','2023-03-18 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$Pa1FSWHlx8r/YLgPwCIRyR2/iIz06esaXM1WJrGkwDw5/MrAoMVQf','admin','ak_5729ffc0b36114a6','2023-12-14 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$pQkGHCSwE0imdjOS/L4FFjWvMIFuJcCjfmkDIJZtNKe.sPWPZ0djS','user','ak_d9f075e7c7ab26b6','2023-02-11 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$rbCXCk1ook4huAWuCXJVaBxRkmcwGwjjg4Lm6mLCHt.oYATphTI1.','admin','ak_d12a761c5a75491e','2023-05-02 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$lEkpfvp7wMk6.rvl0iS5AJszH94FB9WVGXsTswMYbjekb.s1XBvAW','user','ak_1ac4d580f8376641','2023-08-21 10:21:00',NULL);

