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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$Lj4O.OGjqfmQJLZnITVLFtFpOUyP4hpcMZC58bWuq3/gfopYYioIb','user','ak_1db893dbe0ee5a17','2023-01-02 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$7psLCGro442hxpm84GOyYzUyrdxAi09UnbF4qMaTJvMkNMZp6avZi','user','ak_15a3f23c63425d82','2023-03-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$lGc6Dq05j0ZZkiLNpCYCIkKqsa112/GNZF.ZjSBatoH6RV3reo1d0','user','ak_9bf6e2a8a475ef7d','2023-06-09 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$ZoqQKZ9bDrJZFhRSVu5oC2c53sEQwxQfcQsivajZ9.C5GKABIr7Do','user','ak_c7d7ce218ec49f7f','2023-03-12 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$us5DrAlIsBAP8r0drX69stAlYH04xGzAr1tjnkTqULhnSkB2RATub','user','ak_3fe1adbf75348c12','2023-08-06 10:03:00',NULL);

