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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$xkI2TdNOhObZ9K4QwjG..emGqvg3iaf5OKDF0.9PoYBLv9u9JUzav','admin','ak_18907f116419743a','2023-10-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$XFSljBSJB7wtKc83r1Rul5IqVcYy7mbkTVazgGvnIIz36ftIqtlSB','user','ak_f2b5d921182fac0f','2023-05-09 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$OGxM46q4zGoHwcJpTG9M5xFCtXLp2rGGlBv/f1Zv1bcH38JqnVgNy','user','ak_8df5bccff473892d','2023-04-17 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$lhmRDoj/zPipDXhdEItj9svyXDLlYO69fKkrq2qvSCsdDO/eHLdsA','admin','ak_5f6d4848e6338fa7','2023-06-03 10:01:00',NULL);

