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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$OvLzYB61OFIY/JJ5f//ch0PZ48XYQvsMMayVQ.JK/cHrfBOAC3TRM','admin','ak_bebe176cf3295f4a','2023-11-09 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$.jgS0FrkyUM32y7rN4geT..mRr/9wRol8Q2YFAvMMuq5uF2pOl7Lc','user','ak_f12573d89aa4cbfc','2023-11-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$kTjlNkHN5VtASFq6YWV0U0C0bTPjroAJU79AyI2ScJno7n9QvInSc','user','ak_ae4c77f74115ff40','2023-12-25 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$H2X.rKKD17GRztAmB9XFqTrzJFxdG.CUD8z7LE.wDw.hmScO0OX4h','user','ak_d0dc8adf6810236c','2023-06-07 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$HAiC5fvZv49zKqNxuUg1xSGhUe9MsRUN2yFprFMclSrHrDdZ0VR8A','user','ak_b5a58e7e3cf5b206','2023-09-14 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$UQs.5aApagd2tvjkai1AlQ6ZFWIycC5AapfYfZZJi.9IdjXnLd3Z6','user','ak_446fc9731664e3db','2023-04-13 10:10:00',NULL);

