-- Host: db-master-2.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$.76ChBdgA1rmEfHaZ7Zs20Yv2ERwCgXbOX7ueIUR5Fr8ibcfj9qKH','user','ak_c293957f0e7534e4','2023-11-01 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$tB91HvumJ9uVlchlYyNKnTKL9s/DdGczSQlffUMvOao23y/acq.Lq','user','ak_25e33b9f276819d1','2023-10-16 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$vFjK/n6fHUFGr/3u7dU.MyDfW2/askZJO/oYId7q5MFkQLgRUEayw','user','ak_b3d218ae299e9d8b','2023-03-15 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$c2pw2jLXAMPVSHJEL36Y9DkgI9zkHqzdLpXZ9u7P2DtEDzzusbrc.','user','ak_48d3aefb5cb8016b','2023-03-03 10:05:00',NULL);

