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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$l4gG2s6ReJOfJqjooaT/5Sm1JUJm2zsd2SiMOXNJzIl3uLWZ9R9tJ','admin','ak_6088f96e840c5db3','2023-10-22 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$buhm7ISpcVYgwdzZD2H20KKaTceFCSAXYIJcJvFjkOYrn/tn.OWKP','user','ak_4f3a079b96612eee','2023-08-17 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$MdRsPrLUb2vJnDQN.bqVsD5eWwo2lPJNv63u6OgwMFk9yFaBMzyaD','user','ak_43167a3bffc930d0','2023-02-18 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$JKlODFObIGWWvBg1tPMGSUNdAmoTZp1ZtPr1klteSDP/3OYihtHEO','user','ak_1ae68764ef8ba6a3','2023-11-10 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$R.Oc0ZAxfNjYTNTRgmwTqOqnKvEto2/hPvNRASmscLbVJaI6sAYoR','admin','ak_e00b91c025c08763','2023-01-05 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$1tI7S1a7luW8Z735DvsbqOAX.F6TRKIhwPff4Y5KIGfCVAp3wt0zj','user','ak_9c44942269b7b7e1','2023-08-26 10:09:00',NULL);

