-- Host: db-master-7.internal    Database: main_app


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$tE8EcZ058eLgQ3.yyQxpj1yb3vLjTt/S45TLfMS2eNFCU/gBqzT5Z','admin','ak_18941b19fe868103','2023-09-16 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$2mR3QYyFHFXbE1MVd0v0p8.F5XUy3M8BJBt9w54MhYCrD3F7S3DcE','user','ak_b980bdc9445df473','2023-02-05 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$h.LX9GPZiquFNyjas2svpfWVDX0hEGsfZkoQ/FHqx9oPuQxlrS7p8','user','ak_1a715ef0a206c6e4','2023-12-08 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$wPO7jsP7fMZIP3l5r.F08QXOjIKBcR9lI3wcFUNsghCudvJLtzxtR','admin','ak_f19e9da8737b76e1','2023-06-21 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$p.UaNRkT3TmX5kjQi.U1/F.WHEhrrvjeQyVIbhaeBc3Ku9l1Rknfq','user','ak_445fd7a4555fc19c','2023-11-03 10:15:00',NULL);

