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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$BBKGS1oWNdLDWlnIg5uoBJzrV.TiFuZ7UUJpc18EMXp.iJwaPQfAV','user','ak_866665bfa7b237e7','2023-08-10 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$M45QNOQL0/q4KDR28ziKDVZVF12dVid6ZIF13yqCMpyPTGQxEVUti','user','ak_eecbcfda59218b25','2023-08-13 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$8.5BaXXC1DleR2dvc180azwHOEh4t2tFwto4lRpadgBuGUVP2bfA2','user','ak_f47946361be69d79','2023-07-23 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$p.T4/8Agft8PjtlkcouRL9FQy5Zpumbx0Xh.w8d6THvGiQ7KuQ0S1','admin','ak_38781b4d374f29f7','2023-12-17 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$CZKmaVLd81IFQBY0Wj4yrLOxLfCtx37NamHq/FoqKTs8Jht.AO69N','user','ak_ed30235e02214ade','2023-06-07 10:20:00',NULL);

